Enable and disable the service

This page describes the steps required to enable or disable Cloud Source Repositories.

Enable the service

  1. Enable the Cloud Source Repositories API with the following Google Cloud CLI command:
    gcloud services enable sourcerepo.googleapis.com

Disable the service

  1. Before you disable the Cloud Source Repositories API, ensure that all code that you want to keep is available in another location.

  2. It's recommended that you delete repositories before you disable the API.

  3. To disable Cloud Source Repositories, run the following command for your current project:

    gcloud services disable sourcerepos.googleapis.com