Global flags
These flags are available on every command:| Flag | Type | Default | Description |
|---|---|---|---|
--config | string | ~/.zwrm/config.toml | CLI configuration file path |
--api-url | string | https://zwrm.io | Control plane API URL |
--verbose, -v | bool | false | Enable verbose output |
zwrm init
Initialize a new zwrm.toml configuration file.
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | current directory name | Application name |
--dockerfile | string | auto-detected | Dockerfile path |
--no-prompt | bool | false | Use defaults without prompting |
zwrm deploy
Build and deploy the application. Guide →
| Flag | Type | Default | Description |
|---|---|---|---|
--app | string | from zwrm.toml | Application name |
--context | string | . | Build context directory |
--force-build | bool | false | Bypass build cache |
--replicas | int | 1 | Number of VM instances |
zwrm status
Show application and machine status. Guide →
zwrm scale
Scale to a target number of machines. Guide →
zwrm destroy
Destroy machines or the entire application. Guide →
| Flag | Type | Default | Description |
|---|---|---|---|
--app | string | from zwrm.toml | Application name |
--app-id | string | — | Application UUID |
--machine | string | — | Destroy a specific machine (prefix match) |
--all | bool | false | Also destroy the app |
--force, -f | bool | false | Skip confirmation |
zwrm logs
View or stream VM console output. Guide →
| Flag | Type | Default | Description |
|---|---|---|---|
--app | string | from zwrm.toml | Application name |
--app-id | string | — | Application UUID |
--machine | string | — | Specific machine ID |
--follow, -f | bool | false | Stream in real-time |
--lines, -n | int | 100 | Number of lines |
zwrm ssh
SSH into a running VM. Guide →
| Flag | Type | Default | Description |
|---|---|---|---|
--app | string | from zwrm.toml | Application name |
--app-id | string | — | Application UUID |
--machine | string | — | Machine ID (alternative to positional) |
--direct | bool | false | Direct connection (host access only) |
--user | string | — | SSH user override |
zwrm secrets
Manage encrypted application secrets. Guide →
zwrm secrets set
zwrm secrets list
zwrm secrets unset
zwrm secrets add
--app and --app-id.
zwrm volumes
Manage persistent volumes. Guide →
zwrm volumes create
| Flag | Type | Default | Description |
|---|---|---|---|
--size | int | 1024 | Volume size in MB |
--mount | string | /data | Mount point in the VM |
--no-sync | bool | false | Don’t update zwrm.toml |
zwrm volumes list
zwrm volumes destroy
zwrm volumes limits
zwrm volumes snapshot
Manage volume snapshots. Guide →
zwrm volumes snapshot create
zwrm volumes snapshot list
zwrm volumes snapshot delete
zwrm volumes snapshot enable / disable
zwrm volumes restore
--app and --app-id.
zwrm routes
Manage custom hostname routes. Guide →
zwrm routes list
zwrm routes create
zwrm routes delete
zwrm postgres
Manage PostgreSQL databases. Guide →
zwrm postgres create
| Flag | Type | Default | Description |
|---|---|---|---|
--size | string | small | Preset: small, medium, large |
--database | string | postgres | Initial database name |
zwrm postgres list
zwrm postgres connect
zwrm postgres destroy
zwrm postgres stop / start
zwrm postgres presets
zwrm postgres backup
Manage PostgreSQL backups. Guide →
zwrm postgres backup enable / disable
zwrm postgres backup create
zwrm postgres backup list
zwrm postgres backup delete
zwrm postgres restore
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | — | Name for the restored database (required) |
--backup | string | latest | Specific backup ID |
--pitr | string | — | Point-in-time recovery target (RFC 3339) |
--size | string | same as source | Size preset override |
zwrm postgres restore status
zwrm postgres scale
zwrm postgres link / unlink
zwrm postgres links
zwrm auth
Manage authentication. Guide →
zwrm auth login
zwrm auth logout
zwrm auth whoami
zwrm auth token
zwrm agent
Manage coding agent VMs. Guide →
| Flag | Type | Default | Description |
|---|---|---|---|
--template | string | — | Template from registry |
--size | string | — | VM size preset |
--shell | bool | false | Start plain bash |
--cmd | string | — | Override startup command |
--instance | string | — | Named instance |