Skip to content
Press.js Press.js Press.js Docs

Managing Deploys

Once you’ve deployed a document, use the deploys command to manage your deployments.

All deploys commands support both interactive login and API keys via --token or the PRESS_CLOUD_TOKEN environment variable. See Authentication.

See all deploys in the active workspace:

Terminal window
press deploys list

Output shows each deploy’s ID, slug, type, title, and creation time.

Get details about a specific deploy:

Terminal window
press deploys get dep_abc123

Create an empty deploy before pushing a version:

Terminal window
press deploys create --slug my-report --name "Q4 Report"

The slug is a human-readable identifier you’ll use when deploying:

Terminal window
press deploy report --slug my-report

Create a URL deploy when the Press.js document is already hosted:

Terminal window
press deploys create \
--slug hosted-report \
--name "Hosted Report" \
--type url \
--target-url https://app.example.com/report

URL deploys are rendered directly from the configured target URL and do not store deploy versions. See URL Deploys for the full hosted-target workflow.

Change a deploy’s name or target URL:

Terminal window
press deploys update dep_abc123 --name "Updated Name"
Terminal window
press deploys update dep_abc123 --target-url https://app.example.com/report-v2

Remove a deploy and its associated cloud data:

Terminal window
press deploys delete --deploy-id dep_abc123 --yes

This permanently removes the deploy resource and its associated deploy data.

Managed deploys store an immutable history of versions. Every press deploy creates a new version.

List versions:

Terminal window
press deploys versions dep_abc123

URL deploys return an empty version list.

Aliases let you point a stable name (like production or staging) to a specific version.

Terminal window
press deploys alias dep_abc123 production v_def456

This makes production always resolve to the latest approved version, while you deploy new versions for testing.

Aliases apply to managed deploys. URL deploys render the configured target URL using the latest pointer.

production → v3 (stable, live)
staging → v4 (testing, next release)
preview-42 → v2 (feature branch)

Set aliases during deploy or afterward — they’re pointers that move independently of version history.