Difference between revisions of "Gcloud init"
Jump to navigation
Jump to search
↑ https://cloud.google.com/sdk/gcloud/reference/init
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | [[gcloud]] init | + | [[gcloud]] init <ref>https://cloud.google.com/sdk/gcloud/reference/init</ref> |
+ | [[gcloud init --help]] | ||
[[gcloud init --console-only]] | [[gcloud init --console-only]] | ||
+ | [[gcloud init --skip-diagnostics]] | ||
+ | == gcloud init == | ||
+ | <pre> | ||
+ | Welcome! This command will take you through the configuration of gcloud. | ||
+ | |||
+ | Your current configuration has been set to: [default] | ||
+ | |||
+ | You can skip diagnostics next time by using the following flag: | ||
+ | gcloud init --skip-diagnostics | ||
+ | |||
+ | Network diagnostic detects and fixes local network connection issues. | ||
+ | Checking network connection...done. | ||
+ | Reachability Check passed. | ||
+ | Network diagnostic passed (1/1 checks passed). | ||
+ | |||
+ | You must log in to continue. Would you like to log in (Y/n)? Y | ||
+ | |||
+ | Your browser has been opened to visit: | ||
+ | |||
+ | https://accounts.google.com/o/oauth2/auth?.../... | ||
+ | |||
+ | You are logged in as: [[email protected]]. | ||
+ | |||
+ | Pick cloud project to use: | ||
+ | [1] neural-clock-123123 | ||
+ | [2] Enter a project ID | ||
+ | [3] Create a new project | ||
+ | Please enter numeric choice or text value (must exactly match list item): 3 | ||
+ | |||
+ | Enter a Project ID. Note that a Project ID CANNOT be changed later. | ||
+ | Project IDs must be 6-30 characters (lowercase ASCII, digits, or | ||
+ | hyphens) in length and start with a lowercase letter. mytestproject32342 | ||
+ | WARNING: Project creation failed: HttpError accessing <https://cloudresourcemanager.googleapis.com/v1/projects?alt=json>: response: <{'vary': 'Origin, X-Origin, Referer', 'content-type': 'application/json; charset=UTF-8', 'content-encoding': 'gzip', 'date': 'Mon, 04 Dec 2023 19:52:11 GMT', 'server': 'ESF', 'cache-control': 'private', 'x-xss-protection': '0', 'x-frame-options': 'SAMEORIGIN', 'x-content-type-options': 'nosniff', 'server-timing': 'gfet4t7; dur=1258', 'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000', 'transfer-encoding': 'chunked', 'status': 409}>, content <{ | ||
+ | "error": { | ||
+ | "code": 409, | ||
+ | "message": "Requested entity already exists", | ||
+ | "status": "ALREADY_EXISTS" | ||
+ | } | ||
+ | } | ||
+ | > | ||
+ | </pre> | ||
+ | Please make sure to create the project [mytestproject] using | ||
+ | $ [[gcloud projects create]] mytestproject | ||
+ | or change to another project using | ||
+ | $ gcloud config set project <PROJECT ID> | ||
+ | |||
== Related == | == Related == | ||
* <code>[[gcloud auth login]]</code> | * <code>[[gcloud auth login]]</code> | ||
+ | * <code>[[gcloud auth application-default login]]</code> | ||
* <code>[[gcloud auth list]]</code> | * <code>[[gcloud auth list]]</code> | ||
+ | * <code>[[gcloud config list]]</code> | ||
+ | * <code>[[gcloud config set project]]</code> | ||
+ | * <code>[[brew install --cask google-cloud-sdk]]</code> | ||
== See also == | == See also == | ||
+ | * {{gcloud init}} | ||
* {{gcloud}} | * {{gcloud}} | ||
[[Category:Google Cloud]] | [[Category:Google Cloud]] |
Latest revision as of 16:53, 7 December 2023
gcloud init [1] gcloud init --help gcloud init --console-only gcloud init --skip-diagnostics
gcloud init[edit]
Welcome! This command will take you through the configuration of gcloud. Your current configuration has been set to: [default] You can skip diagnostics next time by using the following flag: gcloud init --skip-diagnostics Network diagnostic detects and fixes local network connection issues. Checking network connection...done. Reachability Check passed. Network diagnostic passed (1/1 checks passed). You must log in to continue. Would you like to log in (Y/n)? Y Your browser has been opened to visit: https://accounts.google.com/o/oauth2/auth?.../... You are logged in as: [[email protected]]. Pick cloud project to use: [1] neural-clock-123123 [2] Enter a project ID [3] Create a new project Please enter numeric choice or text value (must exactly match list item): 3 Enter a Project ID. Note that a Project ID CANNOT be changed later. Project IDs must be 6-30 characters (lowercase ASCII, digits, or hyphens) in length and start with a lowercase letter. mytestproject32342 WARNING: Project creation failed: HttpError accessing <https://cloudresourcemanager.googleapis.com/v1/projects?alt=json>: response: <{'vary': 'Origin, X-Origin, Referer', 'content-type': 'application/json; charset=UTF-8', 'content-encoding': 'gzip', 'date': 'Mon, 04 Dec 2023 19:52:11 GMT', 'server': 'ESF', 'cache-control': 'private', 'x-xss-protection': '0', 'x-frame-options': 'SAMEORIGIN', 'x-content-type-options': 'nosniff', 'server-timing': 'gfet4t7; dur=1258', 'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000', 'transfer-encoding': 'chunked', 'status': 409}>, content <{ "error": { "code": 409, "message": "Requested entity already exists", "status": "ALREADY_EXISTS" } } >
Please make sure to create the project [mytestproject] using $ gcloud projects create mytestproject or change to another project using $ gcloud config set project <PROJECT ID>
Related[edit]
gcloud auth login
gcloud auth application-default login
gcloud auth list
gcloud config list
gcloud config set project
brew install --cask google-cloud-sdk
See also[edit]
gcloud init
gcloud
[config | scheduler | auth | asset | services | gcloud auth login | iam | sql | projects | container
|compute | kms
|source
],gcloud composer environments create
|build
|gcloud config set project
,gcloud source repos create
,gcloud composer environments create
,gcloud version
,gcloud --help
Advertising: