Skip to content
Open console

CLI Quickstart

Get authenticated and manage your first resource from the terminal.

This quickstart uses CLI v1.0.1. Install or upgrade with the installation guide.

zcp profile add

You’ll be prompted for:

  • Profile name (e.g., default)
  • Bearer token: get this from the portal under Profile → API Tokens
  • API URL: https://api.zcp.zsoftly.ca/api
  • Default region (e.g., yow-1) and default project (e.g., default-9)

The default region and project are saved to the profile and used by every region/project-scoped command, so you don’t have to pass --region/--project each time (like aws configure).

Verify authentication:

zcp auth validate
# List available regions
zcp region list
# List available plans
zcp plan vm
zcp plan storage
zcp plan network
zcp storage-category list
# List your projects
zcp project list
# List available templates (OS images)
zcp template list --region yow-1
# Create an instance
zcp instance create \
--name my-server \
--template "<template-slug>" \
--plan "<compute-plan-slug>" \
--blockstorage-plan "<root-storage-plan-slug>" \
--root-disk-size 100 \
--network-plan "<network-plan-slug>" \
--storage-category "<storage-category-slug>" \
--billing-cycle hourly
# List your instances
zcp instance list
# Get instance details
zcp instance get my-server
# Power off
zcp instance stop my-server
# Reboot
zcp instance reboot my-server
# Delete
zcp instance delete my-server
# JSON output (great for scripting)
zcp instance list --output json
# YAML output
zcp instance list --output yaml
# Pipe to jq
zcp instance list -o json | jq '.[].name'
# Use environment variables with no config file
export ZCP_BEARER_TOKEN="your-token"
export ZCP_API_URL="https://api.zcp.zsoftly.ca/api"
export ZCP_PROJECT="default"
zcp instance list -o json

See also: Configuration, CLI Reference

Ask the ZCP docs

Type a question and pick an assistant. The assistant opens in a new tab and reads this page and the full ZCP documentation, so its answer comes from our docs.

Example questions

Ask with

Your question goes to the assistant you pick, under its own terms.