glasp
glasp is a Go CLI tool for managing Google Apps Script projects. A single-binary, high-performance replacement for Node.js-based clasp.
Features
- Full clasp compatibility — works with
.clasp.json,.claspignore,.clasprc.json - TypeScript auto-transpilation —
.tsfiles are automatically converted on push - OAuth2 authentication — smooth login via local callback server
- Command history — execution history with replay support
- Archive — snapshot push/pull operations
- Single binary — download and run, no installation dependencies
Quick Start
# Install (Linux / macOS)
curl -sSL https://takihito.github.io/glasp/install.sh | sh
# Create a project directory
mkdir project-gas
cd project-gas
# Create .clasp.json (set the script ID and rootDir)
glasp config init --script-id=SCRIPT_ID --rootDir=src
# Log in by reusing clasp credentials (or run `glasp login` for the browser flow)
glasp login --auth ~/.clasprc.json
# Pull remote files into src/
glasp pull
Installs to ~/.local/bin by default. To change the install directory:
curl -sSL https://takihito.github.io/glasp/install.sh | GLASP_INSTALL_DIR=/usr/local/bin sh
Windows:
irm https://takihito.github.io/glasp/install.ps1 | iex
See Installation, Usage, and GitHub Actions for details.
Supply-Chain Security
- Release binaries are signed with cosign
- SLSA Level 3 provenance attached to releases
- https://socket.dev/ for dependency analysis and monitoring
- OpenSSF Scorecard published