You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -143,15 +143,15 @@ Most command require user authorization. Run `clasp login` to authorize access t
143
143
144
144
#### Multiple user support
145
145
146
-
Use the global `--user` option to switch between accounts. THis support both running clasp as different users as well as when invoking the `clasp run-function` command.
146
+
Use the global `--user` option to switch between accounts. This supports both running clasp as different users as well as when invoking the `clasp run-function` command.
147
147
148
148
Examples:
149
149
150
150
```sh
151
151
clasp login # Saves as default credentials
152
152
clasp clone # User not specified, runs using default credentials
153
153
clasp login --user testaccount # Authorized new named credentials
154
-
claso run-function --user testaccount myFunction # Runs function as test account
154
+
clasp run-function --user testaccount myFunction # Runs function as test account
155
155
```
156
156
157
157
### Bring your own project/credentials
@@ -160,9 +160,9 @@ While clasp includes a default OAuth client, using your own project is recommend
160
160
161
161
1.[Create a new project](https://cloud.google.com/resource-manager/docs/creating-managing-projects) in the Google Cloud Developer Console.
162
162
1.[Create an OAuth client](https://support.google.com/cloud/answer/15549257?hl=en#:~:text=To%20create%20an%20OAuth%202.0,are%20yet%20to%20do%20so.). The client type must be `Desktop Application`. Download and save the generated client secrets file. This is required when authorizing using the`clasp login --creds <filename>` command.
163
-
1.[Enable services](https://cloud.google.com/endpoints/docs/openapi/enable-api). For full functionaliy, clasp requires the following:
164
-
* Apps SCript API - `script.googleapis.com` (required)
165
-
* Service Usage API - `serviceusage.googleapis.com` (require to list/enable/disable APIs)
163
+
1.[Enable services](https://cloud.google.com/endpoints/docs/openapi/enable-api). For full functionality, clasp requires the following:
164
+
* Apps Script API - `script.googleapis.com` (required)
165
+
* Service Usage API - `serviceusage.googleapis.com` (required to list/enable/disable APIs)
166
166
* Google Drive API - `drive.googleapis.com` (required to list scripts, create container-bound scripts)
167
167
- Cloud Logging API - `logging.googleapis.com` (required to read logs)
168
168
@@ -191,7 +191,7 @@ If your organization restricts authorization for third-party apps, you may eithe
191
191
192
192
### Service accounts
193
193
194
-
Use the `--adc` option on any command to read credentials from the environemtn using Google Cloud's [application default credentials](https://cloud.google.com/docs/authentication/application-default-credentials) mechanism.
194
+
Use the `--adc` option on any command to read credentials from the environment using Google Cloud's [application default credentials](https://cloud.google.com/docs/authentication/application-default-credentials) mechanism.
195
195
196
196
Note that if using a service account, service accounts can not own scripts. To use a service account to push or pull files from Apps Script, the scripts must be shared with the service account with the appropriate role (e.g. `Editor` in able to push.)
0 commit comments