- NAME
-
- gcloud alpha billing accounts projects link - link a project with a billing account
- SYNOPSIS
-
-
gcloud alpha billing accounts projects link
PROJECT_ID
(--account-id
=ACCOUNT_ID
|--billing-account
=ACCOUNT_ID
) [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(ALPHA)
(DEPRECATED)
Thegcloud alpha billing accounts projects
group has been moved togcloud billing projects
. Please use the new, shorter commands instead.This command links a billing account to a project.
If the specified billing account is open, this enables billing on the project.
- EXAMPLES
-
To link a billing account
0X0X0X-0X0X0X-0X0X0X
with a projectmy-project
, run:gcloud alpha billing accounts projects link my-project --billing-account=0X0X0X-0X0X0X-0X0X0X
- 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 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 billing accounts list
.
-
Exactly one of these must be specified:
- 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
- This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-06 UTC.