NodeOps
CN

CLI Command Reference

Complete reference for all CreateOS CLI commands.


Global Flags

FlagDescription
--output json, -o jsonOutput results as JSON (supported on most commands)
--debug, -dPrint HTTP request/response details (tokens are masked)
--api-urlOverride the API base URL
--help, -hShow help for any command

Authentication

CommandDescription
createos loginSign in via browser (OAuth) or API token
createos logoutSign out and clear stored credentials
createos whoamiShow the currently authenticated user

Project Management

CommandDescription
createos initLink the current directory to a CreateOS project
createos projects listList all your projects
createos projects getShow details for a specific project
createos projects deleteDelete a project

Deployments

CommandDescription
createos deployDeploy your project (auto-detects type)
createos deploy --branch <name>Deploy from a specific branch (VCS projects)
createos deploy --image <ref>Deploy a Docker image (image projects)
createos deployments listList deployments for a project
createos deployments logsView runtime logs
createos deployments logs -fTail logs in real-time
createos deployments build-logsView build-time logs
createos deployments retriggerRedeploy an existing deployment
createos deployments cancelCancel a running deployment
createos deployments wakeupWake up a sleeping deployment

Environment Variables

CommandDescription
createos env listList environment variables (masked by default)
createos env set KEY=valueSet one or more variables
createos env rm KEYRemove a variable
createos env pullDownload variables to a local .env file
createos env pushUpload variables from a local .env file

Examples

Bash
1# Set multiple variables at once
2createos env set DATABASE_URL=postgres://... API_KEY=sk-xxx
3
4# Pull to local file for development
5createos env pull
6
7# Push from local file to remote
8createos env push --force

Scaling

CommandDescription
createos scale --showView current resource allocation
createos scale --replicas NSet number of replicas (1–3)
createos scale --cpu NSet CPU in millicores (200–500)
createos scale --memory NSet memory in MB (500–1024)

Example

Bash
1createos scale --replicas 2 --cpu 300 --memory 512

Cron Jobs

CommandDescription
createos cronjobs listList all cron jobs
createos cronjobs createCreate a new cron job
createos cronjobs getShow details for a cron job
createos cronjobs updateUpdate a cron job
createos cronjobs deleteDelete a cron job
createos cronjobs suspendPause a cron job
createos cronjobs unsuspendResume a paused cron job
createos cronjobs activitiesView execution history

Example

Bash
1createos cronjobs create \
2 --name "nightly-cleanup" \
3 --schedule "0 0 * * *" \
4 --path /api/cleanup \
5 --method POST

Custom Domains

CommandDescription
createos domains listList custom domains
createos domains add <domain>Add a domain (shows DNS records)
createos domains verifyCheck DNS propagation and wait
createos domains deleteRemove a domain

Workflow

Bash
1# Add a domain — shows required DNS records
2createos domains add api.myapp.com
3
4# After configuring DNS, verify propagation
5createos domains verify
6
7# Or check once without waiting
8createos domains verify --no-wait

Templates

CommandDescription
createos templates listBrowse available templates
createos templates info <id>Show template details
createos templates use <id>Download and scaffold a project

Status & Open

CommandDescription
createos statusProject health dashboard
createos openOpen project URL in browser
createos open --dashboardOpen the CreateOS dashboard

VMs

CommandDescription
createos vms listList VM instances
createos vms getVM details
createos vms deployDeploy a new VM
createos vms sshSSH into a VM
createos vms rebootReboot a VM
createos vms resizeChange VM size
createos vms terminateDestroy a VM

Skills Marketplace

CommandDescription
createos skills catalogBrowse the skills marketplace (interactive TUI)
createos skills purchasedList your purchased skills

OAuth Clients

CommandDescription
createos oauth-clients listList your OAuth clients
createos oauth-clients createCreate a new OAuth client
createos oauth-clients deleteDelete an OAuth client
createos oauth-clients instructionsSetup instructions for a client

Other

CommandDescription
createos upgradeSelf-update to the latest version
createos versionPrint version, channel, and commit
createos askOpen AI assistant for infrastructure management

Non-Interactive / CI Usage

All commands work in CI pipelines using flags instead of interactive prompts:

Bash
1# Authenticate with token
2createos login --token
3
4# Deploy with explicit project
5createos deploy --project <project-id>
6
7# Set env vars
8createos env set KEY=value --project <id> --environment <id>
9
10# Delete with force (skip confirmation)
11createos domains delete --project <id> --domain <id> --force
12createos deployments cancel --project <id> --deployment <id> --force
13
14# JSON output for scripting
15createos projects list --output json
16createos status --output json | jq .

100,000+ 构建者,同一个工作空间。

获取产品更新、构建者故事,以及帮助您更快交付的新功能抢先体验。

CreateOS 是一个统一的智能工作空间,让创意从概念到上线部署无缝衔接,消除工具、基础设施和工作流之间的上下文切换,并可在 CreateOS 市场上即时实现创意变现。