gcloud beta billing projects link - link a project with a billing account
gcloud beta billing projects link PROJECT_ID --billing-account=ACCOUNT_ID [GCLOUD_WIDE_FLAG ...]
(BETA) This command links a billing account to a project.
If the specified billing account is open, this enables billing on the project.
To link a billing account 0X0X0X-0X0X0X-0X0X0X with a project my-project, run:
$ gcloud beta billing projects link my-project \ --billing-account=0X0X0X-0X0X0X-0X0X0X
- PROJECT_ID
Specify a project id.
- --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.
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.
This command is currently in beta and might change without notice. This variant is also available:
$ gcloud alpha billing projects link