CLI Commands Reference

Everything you need to manage projects, deployments, and workflows directly from your terminal.

🔍
git init Project

Initialize a new .git project in the current directory. Creates configuration files and sets up the local environment.

# Initialize in current dir
.git init --template nextjs
git deploy Deploy

Build and deploy your application to the global edge network. Supports preview and production environments.

# Deploy to production
.git deploy --env production --auto-purge
git deploy --preview Deploy

Generate a temporary preview URL for your branch. Automatically expires after 24 hours or manual cleanup.

# Create preview link
.git deploy --preview --branch feature/auth
git config Config

Manage local and global configuration settings for the CLI, including aliases, telemetry, and default regions.

# Set default deployment region
.git config set region us-east-1
git auth login Auth

Authenticate the CLI with your .git account. Supports browser OAuth, SSO, and personal access tokens.

# Login via browser
.git auth login --provider github
git env set Environment

Securely store environment variables for your deployments. Supports encryption and per-environment scoping.

# Set encrypted variable
.git env set DATABASE_URL postgres://... --env prod
git logs Deploy

Stream real-time deployment and runtime logs. Filter by timestamp, level, or deployment ID.

# Tail latest deployment logs
.git logs --follow --level error
git status Project

Display current project health, deployment status, active workers, and region distribution.

# Check project state
.git status --verbose