Basic Usage
Command Groups
Account & VPN
Authentication and VPN connection management
Project Management
Create and manage projects
Service Operations
Deploy and manage services
Utility Commands
Helper commands and tools
Account & VPN
login
Logs you into Zerops using a Personal Access Token.Your Personal Access Token from Access Token management
logout
Disconnects from VPN and logs out from your Zerops account.vpn up
Connects to the Zerops VPN, allowing secure access to your services.The ID of the project to connect to. Can also be set via configuration.
Automatically disconnect from VPN if already connected to another project
Set custom MTU value for Wireguard interface
Required when you have access to multiple projects (alternative to positional argument)
You can set a default project ID in a
.zcli.yml file or via the ZEROPS_PROJECTID environment variable to avoid specifying it each time.vpn down
Disconnects from the Zerops VPN.Project Management
scope project
Sets the default project scope for subsequent commands.The ID of the project to set as default
scope reset
Resets the project scope.project create
Creates a new project in your Zerops organization.Environment isolation rule:
service or noneProject mode:
light or seriousProject name
Organization ID (required if you belong to multiple organizations)
Output format using Go template syntax
SSH isolation rules
Project tags (comma-separated or repeated flag)
project delete
Deletes a project and all its services.The ID of the project to delete
Skip confirmation prompts for destructive operations
Required when you have access to multiple projects
project env
Displays environment variables for the current project scope.Prepends
export keyword to each environment variable in outputRequired when you have access to multiple projects
Service name to get environment variables in its context
Output template
Exclude all non-user environment variables
project list
Lists all projects you have access to.project project-import
Creates a new project with one or more services from a YAML definition.Path to the YAML file containing project definition
Organization ID (required if you belong to multiple organizations)
Sets a custom working directory
project service-import
Creates one or more services in an existing project from a YAML definition.Path to the YAML file containing service definitions
Required when you have access to multiple projects
Service Operations
service list
Lists all services in a project.Required when you have access to multiple projects
service create
Creates a new service in a project.Environment variables to set (comma-separated or repeated flag)
File containing environment variables (max 1.0 MiB)
Environment isolation rule:
service or noneService mode:
ha (high availability) or non_haService name
Creates service only if none with the same name exists
Output format using Go template syntax
Required when you have access to multiple projects
SSH isolation rules
Start service immediately without deployment
Sets custom working directory
Sets custom path to zerops.yml file
service push
Builds your application in Zerops and deploys it. This is the recommended way to deploy.The service ID or name to push to
Creates a tar.gz archive with application code at the specified path
Include the .git folder in the upload
Disable logs during push
Upload entire working directory as-is (cannot be combined with —workspace-state or —deploy-git-folder)
Required when you have access to multiple projects
Required when you have access to multiple services
Choose which setup to use from zerops.yml
Log additional debug data to the debug log file
Adds a custom version name for this deployment
Sets a custom working directory
Defines which files to push:
clean- pushes the HEAD without local changesstaged- pushes only staged filesall- pushes all staged and unstaged files (default)
Sets a custom path to the zerops.yml file
To avoid specifying
--project-id and --service-id repeatedly, set defaults in a .zcli.yml file or via environment variables. See the Configuration guide.service deploy
Deploys your application to Zerops (similar to push but deployment-focused).service push
service start / service stop
Starts or stops a Zerops service.The service ID or name to start/stop
Required when you have access to multiple projects
Required when you have access to multiple services
service delete
Deletes a Zerops service.The service ID or name to delete
Skip confirmation prompts
Required when you have access to multiple projects
Required when you have access to multiple services
service enable-subdomain
Enables access to your service through a Zerops subdomain.The service ID or name
Required when you have access to multiple projects
Required when you have access to multiple services
service log
Streams service runtime or build logs to stdout.Continuously poll for new log messages (like
tail -f)Log output format:
FULL, SHORT, JSON, or JSONSTREAMCustom log format template
Number of recent log messages to return (1–1000)
Select log type:
APPLICATION or WEBSERVERFilter by minimum severity level
Required when you have access to multiple projects
Required when you have access to multiple services
Show build logs instead of runtime logs
Utility Commands
env
Displays global environment variables and their paths.version
Shows the current zCLI version.show-debug-logs
Displays debug logs for troubleshooting.support
Displays information about how to contact Zerops support.completion
Generates shell autocompletion scripts.Shell type:
bash, fish, powershell, or zshGlobal Flags
These flags are available for most commands:Display help information for the command
Specify project ID (can be set via config or environment variable)
Specify service ID (can be set via config or environment variable)
Enable verbose output with additional debug information
Next Steps
Configuration
Learn how to configure default values and environment variables
CLI Overview
Back to CLI overview and quick start