This page describes the steps to enable and disable Infrastructure Manager.

See [Pricing](https://docs.cloud.google.com/infrastructure-manager/pricing) for information about charges for Infra Manager.

## Enabling service

1. Install and initialize [Google Cloud CLI](https://docs.cloud.google.com/sdk/docs.md.txt) if it is not already installed. For an existing installation, update components of the Google Cloud CLI with the command: `gcloud components update`.

   To check your version of the gcloud CLI, run the command:

   ```
   gcloud version
   ```

   > [!NOTE]
   > **Note:** On Ubuntu, use the [Debian package](https://docs.cloud.google.com/sdk/docs/install#deb) to install gcloud CLI. The gcloud CLI snap package does not include `kubectl` or extensions to authenticate with Infra Manager using the gcloud CLI.

2. Enable the API from [Google Cloud console](https://console.cloud.google.com/apis/enableflow?apiid=config.googleapis.com) or with the following `gcloud` command:

   ```
   gcloud services enable config.googleapis.com
   ```
3. Optional: In order to use [quota validation](https://docs.cloud.google.com/infrastructure-manager/docs/quotas.md.txt#quota_validation) with Infra Manager, enable the API from [Google Cloud console](https://console.cloud.google.com/apis/enableflow?apiid=cloudquotas.googleapis.com) or with the following `gcloud` command:

   ```
   gcloud services enable cloudquotas.googleapis.com
   ```

## Disabling service

When you disable the Infra Manager API, any related resources will
continue to exist in the project. Once disabled, you cannot use the service
to make any changes to deployments and resources in the project.

If you enable the API again, you can continue to use the service in the same
way as when you first enabled the API.

To disable the API from the Google Cloud console:

### console

1. Go to the [API Overview](https://console.cloud.google.com/apis/library/config.googleapis.com) page for Infra Manager.
2. Select the project where the API is enabled.
3. Click **Manage**.
4. Click **Disable API**.

### gcloud

Run the following command to disable the API for your current project:

```bash
gcloud services disable config.googleapis.com
```

## What's next

- Learn more about [Terraform with Google Cloud](https://docs.cloud.google.com/docs/terraform.md.txt).
- [Deploy infrastructure using Infra Manager](https://docs.cloud.google.com/infrastructure-manager/docs/deploy-resources.md.txt).
- [Update a deployment](https://docs.cloud.google.com/infrastructure-manager/docs/update-deployment.md.txt).
- [View the state of a deployment](https://docs.cloud.google.com/infrastructure-manager/docs/view-deployments.md.txt).