This will open a webpage to authenticate with your Google account. Next step: create your project folder and use it with Google Apps Script. Use create command created a standalone script.

Shell

1

2

3

4

C:\nodejs>mkdirclasp_codelab

C:\nodejs>mkdirclasp_example

C:\nodejs>cdclasp_example

C:\nodejs\clasp_example>clasp create"clasp_example"

This will not be linked with the Google Apps project. You need to create one and use a clone. To do this you can get the Script_ID This can be found in your project: File > Project properties > Info > Script ID. Copy the value and use it in the following command:

1

clasp cloneScript_ID

The project is downloaded in your current directory. To open the script in the cloud use:

1

clasp open

Next commands can be used to use files locally. The clasp push replaces code that is on script.google.com and clasp pull replaces all files locally. This tool is available on GitHub.