Authentication
login, logout, test-auth - Manage your gateway sessions
The rack-gateway CLI is the primary way developers interact with Convox racks protected by Rack Gateway. It handles authentication, wraps Convox commands, and manages multi-rack configurations.
The standard Convox CLI authenticates directly using the rack’s primary API token. With Rack Gateway, authentication goes through OAuth instead:
Standard Convox: convox → Rack API (primary token)With Gateway: rack-gateway → Gateway (OAuth session) → Rack APIThe rack-gateway CLI:
# Login to a gateway (opens browser for OAuth)rack-gateway login production https://gateway.example.com
# Run Convox commands through the gatewayrack-gateway appsrack-gateway ps -a myapprack-gateway logs -a myapp
# Set up a convenient aliasalias cg="rack-gateway"cg appscg deployAuthentication
login, logout, test-auth - Manage your gateway sessions
Rack Management
rack, racks, switch - Configure and switch between racks
Convox Commands
apps, deploy, ps, logs, etc. - All standard Convox operations
Gateway Features
api-token, deploy-approval, gateway - Gateway-specific features
When you run a command like rack-gateway apps:
~/.config/rack-gateway/config.jsonThe CLI stores configuration in ~/.config/rack-gateway/:
~/.config/rack-gateway/└── config.json # Rack URLs, session tokens, current rackYou can override this with the --config flag or GATEWAY_CLI_CONFIG_DIR environment variable.
| Command | Description |
|---|---|
login <rack> <url> | Login to a gateway via OAuth |
logout | Logout from the current rack |
test-auth | Test authentication (optionally with MFA) |
| Command | Description |
|---|---|
rack | Show current rack configuration |
racks | List all configured racks |
switch <rack> | Switch to a different rack |
| Command | Description |
|---|---|
apps | List applications |
build | Create a build |
builds | List builds |
deploy | Deploy an application |
env | Manage environment variables |
exec | Execute command in a container |
instances | List instances |
logs | View application logs |
ps | List app processes |
releases | List releases |
resources | List resources |
restart | Restart an application |
run | Run a one-off process |
scale | Scale app processes |
| Command | Description |
|---|---|
api-token | Manage API tokens |
deploy-approval | Manage deploy approvals |
gateway | Show gateway server information |
version | Show CLI, gateway, and rack versions |
web | Open the gateway web UI in browser |
| Flag | Description |
|---|---|
--rack, -r | Override the current rack for this command |
--config | Override the config directory |
--api-token | Use an API token instead of session |
--mfa-code | Provide MFA code for step-up auth |
--mfa-method | Specify MFA method (totp or webauthn) |