Skip to content

Reference

Quick-reference tables for all CLI commands, REST API endpoints, and MCP tools. Click any row to open the full detail page with arguments and examples.


CLI Commands

Base: cpctl <command>
Auth: cpctl login --token <cp-api-token>

CommandDescription
cpctl loginAuthenticate with Compute Portal
cpctl logoutLog out and revoke credentials
cpctl whoamiShow current authenticated user
cpctl initInteractively create cp.json
cpctl link <service>Link directory to a service
cpctl unlinkRemove .cp-link
cpctl open [service]Open service URL in browser
cpctl listList all services
cpctl deployDeploy a service
cpctl redeploy <service>Re-trigger current deployment
cpctl rollback <service> [id]Roll back to a previous deployment
cpctl machine listList services
cpctl machine start <name>Start a service
cpctl machine stop <name>Stop a service
cpctl machine restart <name>Restart a service
cpctl machine destroy <name>Permanently destroy a service
cpctl machine status <name>Show service health
cpctl logs <name>Stream service logs
cpctl status <name>Check service health
cpctl scale <name>Scale replicas or resources
cpctl exec <name> -- <cmd>Run command inside container
cpctl ssh <name>Open SSH session
cpctl ps <name>List running processes
cpctl env set <service>Set environment variables
cpctl env list <service>List environment variables
cpctl env unset <service>Remove environment variables
cpctl variableAlias for cpctl env
cpctl environment listList environments
cpctl environment createCreate an environment
cpctl environment deleteDelete an environment
cpctl environment switchSwitch active environment
cpctl deployment list <service>List deployment history
cpctl deployment status <service> <id>Show deployment details
cpctl domain add <service> <domain>Attach custom domain
cpctl domain list <service>List domains
cpctl domain status <service> <domain>Check domain/TLS status
cpctl domain remove <service> <domain>Remove domain
cpctl volume list <service>List volumes
cpctl volume add <service> <path>Attach a volume
cpctl volume delete <service> <name>Delete a volume
cpctl db create <type>Create a managed database
cpctl db listList databases
cpctl db url <name>Print connection URL
cpctl db destroy <name>Destroy a database
cpctl connect <name>Open interactive database shell
cpctl metrics <service>View service metrics
cpctl gpu listList GPU inventory
cpctl gpu status <service>Show GPU utilization
cpctl gpu reserveReserve GPU capacity
cpctl gpu runRun a one-shot GPU job
cpctl node listList compute nodes
cpctl node status <id>Show node health
cpctl region listList regions
cpctl billing usageShow billing usage
cpctl billing historyShow invoice history
cpctl pay setupLink a card or USDC wallet
cpctl pay statusShow linked payment method
cpctl pay authorize <service> <amount>Pre-authorize a per-call charge
cpctl pay historyList per-call payment charges
cpctl sandbox createCreate a sandbox
cpctl sandbox listList sandboxes
cpctl sandbox destroy <id>Destroy a sandbox
cpctl docsOpen documentation in browser
cpctl upgradeUpgrade the CLI
cpctl versionPrint CLI version

REST API Endpoints

Base URL: https://api.computeportal.io
Auth: Authorization: Bearer cp_live_<hex>

Services

MethodPathDescription
GET/v1/servicesList all services
POST/v1/servicesDeploy a new service (image or repo)
GET/v1/services/:nameGet service details
DELETE/v1/services/:nameDelete a service
POST/v1/services/:name/startStart a stopped service
POST/v1/services/:name/stopStop a running service
POST/v1/services/:name/restartRestart a service
POST/v1/services/:name/redeployRe-trigger deployment
POST/v1/services/:name/scaleScale replicas or resources
POST/v1/services/:name/rollbackRoll back to previous deployment
GET/v1/services/:name/logsFetch recent log output
GET/v1/services/:name/metricsGet CPU/memory/network metrics
GET/v1/services/:name/gpuGet GPU utilization
GET/v1/services/:name/deploymentsList deployment history
GET/v1/services/:name/deployments/:idGet a specific deployment
GET/v1/services/:name/envList environment variables
POST/v1/services/:name/envSet environment variables
POST/v1/services/:name/env/unsetRemove environment variables
GET/v1/services/:name/volumesList attached volumes
GET/v1/statusPlatform health check

Domains

MethodPathDescription
POST/v1/services/:name/domainsAttach a custom hostname
GET/v1/services/:name/domainsList all hostnames
DELETE/v1/services/:name/domains/:hostnameRemove a custom hostname

GPU & Nodes

MethodPathDescription
GET/v1/gpu/nodesList GPU nodes and availability
POST/v1/gpu/reserveReserve GPU capacity
POST/v1/gpu/jobsRun a one-shot GPU job
GET/v1/gpu/jobs/:id/logsGet GPU job logs
GET/v1/nodesList compute nodes
GET/v1/nodes/:idGet node details
GET/v1/nodes/self-hostedList self-hosted nodes
GET/v1/regionsList available regions

Databases

MethodPathDescription
GET/v1/databasesList databases
POST/v1/databasesCreate a database
GET/v1/databases/:nameGet database details
DELETE/v1/databases/:nameDestroy a database

Environments

MethodPathDescription
GET/v1/environmentsList environments
POST/v1/environmentsCreate an environment
DELETE/v1/environments/:nameDelete an environment

Sandboxes

MethodPathDescription
GET/v1/sandboxesList sandboxes
POST/v1/sandboxesCreate a sandbox
DELETE/v1/sandboxes/:idDestroy a sandbox

Machine Payments

MethodPathDescription
GET/v1/pay/statusGet linked payment method
POST/v1/pay/setupStart card/USDC setup
GET/v1/pay/setup/pollPoll for setup completion
POST/v1/pay/authorizePre-authorize a per-call charge
GET/v1/pay/historyList charge history

Billing

MethodPathDescription
GET/v1/billing/usageCurrent billing cycle usage
GET/v1/billing/historyPast invoices

MCP Tools

Endpoint: https://mcp.computeportal.io/mcp
Auth: CP_API_TOKEN=cp_live_<hex>

Domain Tools

ToolDescription
cp_domain_addAttach a custom hostname to a service
cp_domain_listList all hostnames on a service
cp_domain_removeRemove a custom hostname

Service Tools

ToolDescription
cp_service_listList all deployed services
cp_service_getGet details for a specific service
cp_service_createDeploy a new service from a container image
cp_service_updateUpdate a service's image or configuration
cp_service_deleteRemove a service
cp_service_scaleScale a service to N replicas
cp_service_restartForce a rolling restart
cp_service_logsFetch recent log output
cp_service_inspectReturn the raw service spec
cp_env_listList environment variables on a service
cp_env_setSet environment variables
cp_env_unsetRemove environment variables
cp_gpu_listList available GPU resources
cp_gpu_statusShow GPU utilization per service
cp_volume_listList persistent volumes
cp_volume_createCreate and attach a persistent volume
cp_volume_deleteRemove a persistent volume
cp_health_checkCheck service health and replicas

GPU Compute Platform