csph deployments get
get deployment
🚀 Retrieve a deployment. The deployment is a snapshot of the service in some environment at a specific point in time. The deployment includes the service's configuration, the environment's configuration, and the service's status.
The deployment ID is a unique identifier for the deployment. You can use the deployment ID to retrieve a specific deployment. Also, a deployment can be retrieved by specifying the service ID and the environment ID where the service is deployed.
For a service built from git it also shows where the code comes from (repository,
branch, the git connection that clones it, and the directory in a monorepo) and
how it builds (docker with its Dockerfile and context, or native with its
toolchain). In JSON these are source and build. The setting names the
deployment gets are listed by csph deployments env list <deployment-id>.
"auto-deploy" says whether a push to the branch builds and deploys the service:
"on", or "paused since <time>" (a rollback pauses it). Turn it back on with
csph deployments autodeploy resume <deployment-id>. In JSON these are
autodeploy and autodeploy_paused_at.
Usage​
csph deployments get [flags]
Aliases​
deployments get, deployments show, deployment get, deployment show, deploys get, deploys show
Options​
Command Specific​
Formatting​
For more information about formatting options, see Formatting.
Available Fields​
build_args, source, build, autodeploy, autodeploy_paused_at, access, env_id, environment, hooks, id, instance_type, instance_type_detail, last_deployed_at, name, object, service_id, service_name, service_type, sphere_count, status, type
Inherited​
Examples​
# retrieve a deployment interactively
> csph deployments get
# retrieve a deployment by ID
> csph deployments get <deployment-id>
# where a service's code comes from and how it builds, for a move
> csph deployments get <deployment-id> -o json --jq '{source, build}'
# retrieve a deployment of a service in an environment
> csph deployments get --service <service-id> --environment <environment-id>
See also​
- csph deployments — manage deployments
- csph deployments logs — view deployment logs (runtime, build, or deploy)
- csph deployments list — list deployments
- csph deployments update — update deployments
- csph deployments delete — delete deployments
- csph deployments start — start a deployment
- csph deployments stop — stop a deployment
- csph deployments restart — restart a deployment
- csph deployments redeploy — redeploy a deployment
- csph deployments promote — deploy an image built for another environment, without rebuilding
- csph deployments rollback — roll a deployment back to a previous version
- csph deployments scale — scale a deployment to a target spherelet count
- csph deployments port — update the port of a deployment
- csph deployments domains — manage a deployment's custom domains
- csph deployments env — list the setting names a deployment gets
- csph deployments autodeploy — resume or pause auto-deploy: a push to the service's branch builds and deploys it
- csph deployments builds — manage a deployment's builds
- csph deployments runs — start and manage runs
- csph deployments default-url — turn the deployment's default URL off or on