Skip to main content

ZCP CLI — deploy apps to the Zamp Control Plane

Project description

zcp-cli

CLI for deploying apps to the Zamp Control Plane.

ZCP provisions databases (Neon Postgres), caches (Upstash Redis), and compute (Modal) from a single zcp.json manifest — no infra credentials needed on your machine.

Install

pip install zcp-cli

Quick start

# 1. Login with your API token (grab it from the ZCP dashboard)
zcp login --token zcp_...

# 2. Deploy (reads zcp.json in current directory)
zcp deploy

# Or point to a specific manifest
zcp deploy --file path/to/zcp.json --org-slug my-org

Commands

zcp login

Save your API token locally (~/.zcp/config.json, chmod 600).

zcp login --token <API_KEY> [--api-url https://your-zcp-server.com]
Flag Default Description
--token (required) API key from ZCP dashboard
--api-url http://localhost:8000 ZCP server URL

You can also set ZCP_API_TOKEN and ZCP_API_URL environment variables.

zcp deploy

Package your app source and deploy via the ZCP server.

zcp deploy [--file PATH] [--org-slug SLUG]
Flag Default Description
--file ./zcp.json Path to manifest
--org-slug name from manifest Target organization

The CLI zips your source (excluding node_modules, .git, .venv, etc.), uploads it along with the manifest, and the server handles provisioning and deployment.

zcp.json manifest

{
  "name": "myapp",
  "services": [
    { "id": "db", "type": "postgres" },
    { "id": "cache", "type": "redis" },
    {
      "id": "api",
      "type": "web",
      "runtime": "python",
      "start": "gunicorn app:app --bind 0.0.0.0:5001",
      "port": 5001,
      "env": [
        { "name": "DATABASE_URL", "fromService": { "id": "db", "value": "connectionString" } },
        { "name": "REDIS_URL", "fromService": { "id": "cache", "value": "connectionString" } }
      ]
    }
  ]
}

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zcp_cli-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zcp_cli-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file zcp_cli-0.1.0.tar.gz.

File metadata

  • Download URL: zcp_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for zcp_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 33909310f1cf668c3dac24e3eff111dd5049c04996c1c85b3718667113b2a253
MD5 17cbc275de43119996f02d8c32bcd913
BLAKE2b-256 adb76c996b9632487ecbf8094b03aa3d7ae3e82da9582153c0a28f585aa58c23

See more details on using hashes here.

File details

Details for the file zcp_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zcp_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for zcp_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0528c4453bac438fa566284b3e9acdb0f77ecf200967900dd3518ca138e63963
MD5 5d767a024fe214bb64b155688064ef08
BLAKE2b-256 034d32ee6811a67332901b25b09d6eecafbe469fb1d10d78f6550f497bcf2859

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page