CLI Reference
Complete command-line documentation for the .git platform. Automate deployments, manage configurations, and monitor your infrastructure from the terminal.
git init
#Initialize a new .git project in the current directory. Sets up the repository structure, configures default branching, and connects to the .git cloud pipeline.
Flags
| Flag | Description | Type |
|---|---|---|
| --framework-f | Auto-detect and configure build settings for a specific framework | String |
| --region | Specify the default deployment region | String |
| --env | Set the initial environment variables from a file | Path |
| --dry-run | Preview initialization without creating files | Boolean |
Examples
git deploy
#Deploy your application to the specified environment. Supports automatic preview URLs, zero-downtime rollouts, and instant rollbacks.
Flags
| Flag | Description | Type |
|---|---|---|
| --prod-p | Deploy directly to production (overrides branch rules) | Boolean |
| --preview | Create a preview deployment for the current branch | Boolean |
| --wait | Block until deployment is live and healthy | Boolean |
| --timeout | Max wait time in seconds | Number |
| --force | Skip pre-deploy checks and force push | Boolean |
Examples
git config
#Manage project and user-level .git configurations. Handles API tokens, default regions, deployment strategies, and plugin preferences.
Flags
| Flag | Description | Type |
|---|---|---|
| --global-g | Apply configuration to all projects | Boolean |
| --local | Apply configuration only to current project | Boolean |
| --format | Output format: json, yaml, or table | String |
| --unset | Remove a configuration key | Boolean |
Examples
git logs
#View deployment history, build artifacts, and pipeline execution logs. Filters by status, date, or environment.
Flags
| Flag | Description | Type |
|---|---|---|
| --status | Filter by status: success, failed, running | String |
| --env | Filter by environment | String |
| --limit-n | Number of logs to return | Number |
| --tail | Stream logs in real-time | Boolean |
| --json | Output structured JSON for scripting | Boolean |
Examples
git secrets
#Securely manage environment variables and API keys. All values are encrypted at rest and injected at build/deploy time. Never commit secrets to version control.
Flags
| Flag | Description | Type |
|---|---|---|
| --mask-m | Mask value output for security | Boolean |
| --file-f | Import secrets from .env or JSON file | Path |
| --scope | Limit to: all, production, staging, dev | String |
| --interactive-i | Open secure TUI for input | Boolean |
Examples
git rollback
#Instantly revert to a previous deployment. Preserves database state and supports graceful traffic shifting.
Flags
| Flag | Description | Type |
|---|---|---|
| --to-t | Target deployment ID or version tag | String |
| --gradual | Shift traffic in 10% increments | Boolean |
| --force | Skip health checks during rollback | Boolean |