Zerops CLI Commands Reference
Basic Usage
All commands support the -h, --help flag which displays help information about the command.
For detailed information about configuration options, environment variables, and logging, see the Zerops CLI Configuration page.
Command Groups
Account & VPN
login
Logs you into Zerops using a generated token or your login credentials.
logout
Disconnects from VPN and logs out from your Zerops account.
vpn up
Connects to the Zerops VPN.
Flags:
--auto-disconnect- Automatically disconnect from VPN if already connected--mtu int- Set custom MTU value for Wireguard interface (default: 1420)-P, --project-id string- Required when you have access to multiple projects
You can set a default project ID for VPN connections in a .zcli.yml file or via the ZEROPS_PROJECTID environment variable. See the Configuration page for details.
vpn down
Disconnects from the Zerops VPN.
For more detailed information about Zerops VPN configuration and troubleshooting, visit the VPN Documentation.
Project Management
scope project
Sets the scope for a project. All commands that require project ID will use the selected one.
scope reset
Resets the scope for a project.
project create
Creates a new project for a specified organization.
Flags:
--env-isolation string- Environment isolation rule [service, none] (default: "service")--mode string- Project mode [light, serious] (default: "light")--name string- Project name--org-id string- Organization ID to create a project for--out string- Output format using Go template syntax--ssh-isolation string- SSH isolation rules (default: "vpn")--tags strings- Project tags (comma-separated list or repeated flag)
project delete
Deletes a project and all its services.
Flags:
--confirm- Skip confirmation prompts for destructive operations-P, --project-id string- Required when you have access to multiple projects