gcloud_alpha_billing_projects_link (1)
NAME
- gcloud alpha billing projects link - link a project with a billing account
SYNOPSIS
-
gcloud alpha billing projects link PROJECT_ID (--account-id=ACCOUNT_ID | --billing-account=ACCOUNT_ID) [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(ALPHA) This command links a billing account to a project.
POSITIONAL ARGUMENTS
-
- PROJECT_ID
-
Specify a project id.
REQUIRED FLAGS
-
-
Exactly one of these must be specified:
-
- --account-id=ACCOUNT_ID
-
(DEPRECATED) Specify a billing account ID. Billing account IDs are of the form
0X0X0X-0X0X0X-0X0X0X. To see available IDs, run $ gcloud alpha
billing accounts list.
The --account-id flag has been renamed --billing-account.
- --billing-account=ACCOUNT_ID
-
Specify a billing account ID. Billing account IDs are of the form
0X0X0X-0X0X0X-0X0X0X. To see available IDs, run $ gcloud alpha
billing accounts list.
-
-
Exactly one of these must be specified:
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
EXAMPLES
To link a billing account 0X0X0X-0X0X0X-0X0X0X with a project my-project, run:
-
$ gcloud alpha billing projects link my-project \
--billing-account 0X0X0X-0X0X0X-0X0X0X
NOTES
This command is currently in ALPHA and may change without notice. If this command fails with API permission errors despite specifying the right project, you will have to apply for early access and have your projects registered on the API whitelist to use it. To do so, contact Support at cloud.google.com/support This variant is also available:
- $ gcloud beta billing projects link