CLICommand referencedeploy

deploy

Commands, arguments, and options for openship deploy.

See the workflow guide for examples. Global flags such as --json go before the command; see global options.

openship deploy

Trigger a deployment for the current project

openship deploy [options]
OptionMeaning
--project <id>Project ID (defaults to the linked project in .openship/project.json)
--branch <name>Git branch to deploy (defaults to the current branch)
--commit <sha>Specific commit SHA (defaults to the latest commit on the branch)
--env <environment>Variable set: production | preview (project ID selects the runtime) (default: "production")
--force-allRebuild every enabled service (skip smart per-service routing)
--service-ids <ids>Comma-separated service IDs to deploy (smart routing)
--smart-routeRebuild only services changed since the active deploy
--refreshRe-apply current env to the active deploy (no git pull, no rebuild)
--folderUpload the current folder as source (also works inside a Git repository)
--name <name>Project name for a folder (non-git) deploy (defaults to the directory name)
--server <id>Registered server ID (see openship server list)
--watchStream the deployment logs until it finishes

On this page