1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-11 07:29:40 +00:00
gcloud-help/gcloud/beta/services/enable

116 lines
3.9 KiB
Text
Raw Normal View History

2022-03-01 04:29:52 +00:00
NAME
gcloud beta services enable - enables a service for consumption for a
2025-11-18 10:53:36 +00:00
project, folder or organization
2022-03-01 04:29:52 +00:00
SYNOPSIS
2025-12-10 10:54:29 +00:00
gcloud beta services enable SERVICE [SERVICE ...] [--async]
2026-02-11 11:28:25 +00:00
[--group=GROUP; default="dependencies"] [--skip-dependency]
[--validate-only]
2025-11-18 10:53:36 +00:00
[--folder=FOLDER_ID | --organization=ORGANIZATION_ID
| --project=PROJECT_ID] [GCLOUD_WIDE_FLAG ...]
2022-03-01 04:29:52 +00:00
DESCRIPTION
2025-11-18 10:53:36 +00:00
(BETA) This command enables a service for consumption for a project, folder
or organization.
2022-03-01 04:29:52 +00:00
To see a list of available services for a project, run:
$ gcloud beta services list --available
More information on listing services can be found at:
https://cloud.google.com/service-usage/docs/list-services and on disabling
a service at: https://cloud.google.com/service-usage/docs/enable-disable
EXAMPLES
To enable a service called my-consumed-service on the current project, run:
$ gcloud beta services enable my-consumed-service
2025-11-18 10:53:36 +00:00
To enable a service called my-consumed-service on the project my-project,
run:
$ gcloud beta services enable my-consumed-service \
--project=my-project
2026-02-11 11:28:25 +00:00
To enable a service called my-consumed-service on the project my-project in
group groups, run:
$ gcloud beta services enable my-consumed-service \
--project=my-project --group=groups
2025-11-18 10:53:36 +00:00
To enable a service called my-consumed-service on the folder my-folder,
run:
$ gcloud beta services enable my-consumed-service --folder=my-folder
To enable a service called my-consumed-service on the organization
my-organization, run:
$ gcloud beta services enable my-consumed-service \
--organization=my-organization
2022-03-01 04:29:52 +00:00
To run the same command asynchronously (non-blocking), run:
$ gcloud beta services enable my-consumed-service --async
To enable services called service1, service2, and service3 on the current
project, run:
$ gcloud beta services enable service1 service2 service3
POSITIONAL ARGUMENTS
2025-12-10 10:54:29 +00:00
SERVICE [SERVICE ...]
2022-03-01 04:29:52 +00:00
The name of the service(s) to enable.
FLAGS
--async
Return immediately, without waiting for the operation in progress to
complete.
2026-02-11 11:28:25 +00:00
--group=GROUP; default="dependencies"
The service group name.
2025-11-18 10:53:36 +00:00
--skip-dependency
If set, the dependencies of the service to be enabled will not be
enabled.
--validate-only
Validate the enable action, but don't actually perform it
At most one of these can be specified:
--folder=FOLDER_ID
The Google Cloud Platform folder ID to use for this invocation.
--organization=ORGANIZATION_ID
The Google Cloud Platform organization ID to use for this invocation.
--project=PROJECT_ID
The Google Cloud project ID to use for this invocation. If omitted,
then the current project is assumed; the current project can be
listed using gcloud config list --format='text(core.project)' and can
be set using gcloud config set project PROJECTID.
--project and its fallback core/project property play two roles in
the invocation. It specifies the project of the resource to operate
on. It also specifies the project for API enablement check, quota,
and billing. To specify a different project for quota and billing,
use --billing-project or billing/quota_project property.
2022-03-01 04:29:52 +00:00
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,
--help, --impersonate-service-account, --log-http, --project, --quiet,
--trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
NOTES
2025-10-30 11:14:52 +00:00
This command is currently in beta and might change without notice. These
variants are also available:
2022-03-01 04:29:52 +00:00
$ gcloud services enable
2025-10-30 11:14:52 +00:00
$ gcloud alpha services enable