Make a only project-setting file.

Download Command

Show help of download command

Download GAS Project to local.

Caution!gas download command always override local sources.Note-p option is default save path for downloading sources. if gas filename is not set in credential, this path is used.

Change the credential file path

$ gas download -p src/main/ -c /path/to/credentialfile.json

Note the default credential file path is ./gas-credential.json.

Change the project file path

$ gas download -s /path/to/projectsettingfilepath

Change the enviroment

$ gas download -p src/main/ -c /path/to/credentialfile.json -e test

Note the default enviroment is src.

Download files without project file

$ gas download -S "code:/path/to/localfile index:/path/to/localfile"

Force download

$ gas download --force

Note the --force option is downloading files if a server file is not defined at the project setting file.
that download to current directory. if you need change this path, please use -p /path/to/basepath option.

Upload Command

The upload command is uploading your local files to Google Drive's GAS Project.

Show help of upload command

$ gas upload --help

Upload your local files to to Google Drive's GAS Project

$ gas upload

Note The upload command upload files written in credential file. if file is not exist in credential file, it is not uploaded.

Upload files without project file

$ gas upload -S "code:/path/to/localfile index:/path/to/localfile"

Upload your local files and delete GAS Project file, that does not exist in credential file.