Deployment Manager CLI Basics
Important Notice: Google Cloud Deployment Manager reached end of support on March 31, 2026. You must direct all new infrastructure work to Google Cloud Infrastructure Manager or Terraform. The following gcloud deployment-manager commands are presented strictly as a legacy reference for auditing, maintaining, and decommissioning existing deployments. Do not use these commands to initiate new deployments.
What you'll learn: How to interpret the gcloud deployment-manager commands historically used to manage Google Cloud deployments from the command line.
If you are working with older Google Cloud setups, you might encounter infrastructure originally provisioned via Deployment Manager. The gcloud deployment-manager subcommand acted as the control panel for these configurations. Understanding its core lifecycle commands is useful for managing, inspecting, or safely decommissioning these legacy systems.
Legacy Lifecycle Commands
Creating a Deployment (Reference Only)
gcloud deployment-manager deployments create my-deployment --config config.yaml
Historically, this command read a YAML configuration file and built all the resources defined within it. While the command exists in legacy documentation, you should not run it to build new infrastructure.
Updating an Existing Deployment
gcloud deployment-manager deployments update my-deployment --config config.yaml
If you need to patch a legacy deployment to keep it running while planning a migration, the update command applies configuration modifications. Deployment Manager calculates what needs to change and adjusts only those existing resources.
Deleting a Deployment
gcloud deployment-manager deployments delete my-deployment
This command is highly relevant for teardown efforts. It attempts to remove all resources associated with the deployment configuration, making it the primary method for retiring a legacy infrastructure stack.
Viewing Legacy Deployments
To audit existing infrastructure, you can check active deployments with:
gcloud deployment-manager deployments list
gcloud deployment-manager deployments describe my-deployment
These commands help you inspect what is currently deployed in your Google Cloud environment, verify resource states, and map out dependencies before migrating away from Deployment Manager.
Key Takeaway: Because Google Cloud Deployment Manager reached end of support on March 31, 2026, its CLI commands should only be used as a legacy reference for auditing (list, describe), patching (update), and tearing down (delete) older deployments as you migrate your operations to Infrastructure Manager or Terraform.