Difference between revisions of "Gsutil config"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
+ | https://cloud.google.com/storage/docs/gsutil/commands/config | ||
* <code>[[gsutil config --help]]</code> | * <code>[[gsutil config --help]]</code> | ||
Revision as of 08:38, 1 August 2022
https://cloud.google.com/storage/docs/gsutil/commands/config
- Read-only access for storage resources:
gsutil config -r
- Create a token with read-write access for storage resources:
gsutil config -w
- Create a token with full-control access for storage resources:
gsutil config -f
- Configure Service account credentials:
gsutil config -e
gsutil config This command will create a boto config file at $HOME/.boto containing your credentials, based on your responses to the following questions. Please navigate your browser to the following URL: https://accounts.google.com/o/oauth2/auth? client_id=xxxxxxx.apps.googleusercontent.com&redire In your browser you should see a page that requests you to authorize access to Google Cloud Platform APIs and Services on your behalf. After you approve, an authorization code will be displayed. Enter the authorization code: 4/1AX4XfWhpwYr8pIeEm2xxxxBVjxxxxxx Please navigate your browser to https://cloud.google.com/console#/project, then find the project you will use, and copy the Project ID string from the second column. Older projects do not have Project ID strings. For such projects, click the project and then copy the Project Number listed under that project. What is your project-id?
Related
See also
Advertising: