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.1.tar.gz (4.5 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.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zcp_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 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.1.tar.gz
Algorithm Hash digest
SHA256 fbdadea36e73bb4fd9fe19f66820def7960b571141f38581ccdeeabe5ba494f5
MD5 0ae90b7a519b562d9839ee46cb7b208a
BLAKE2b-256 1b74678f3fd1e8b5a5676673ec81e5465ae8f8d8223ce9fc47a1c6b000fe47e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zcp_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e012a60536012294fe1fd20e82ec42efdb2a25879bb86d11a5eb4cbf4380c843
MD5 0ebdfc749fe5726f9c8ad189089915ac
BLAKE2b-256 3846d483f42ddb9286d9c598970b42c1c577349d3336bd60885e6456181008dd

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