clasp

Command-line tool for developing Google Apps Script projects locally: push/pull code, manage versions and deployments, tail logs, and run functions.

install· npm

clasp (Command Line Apps Script Projects) is a CLI for developing Google Apps Script projects outside the browser editor at script.google.com. It syncs project files between a local directory and the Apps Script service using clasp pull and clasp push (with --watch and --force options), so code can be kept in source control and edited with any local tools. Projects are created or cloned with clasp create-script and clasp clone-script, and clasp open-script opens the project in the browser.

Beyond file sync, clasp manages deployments and versions (create-deployment, list-deployments, delete-deployment, create-version, list-versions). It maps the flat file list on script.google.com into local folders, for example tests/slides.gs becomes tests/slides.js. A .claspignore file, matched with multimatch, controls which files are uploaded on push; the default set includes appsscript.json and .gs, .js, .ts and .html files. Project settings are stored in .clasp.json.

Advanced commands, which require a Google Cloud project ID, include run-function to execute Apps Script functions from the command line, tail-logs and setup-logs for Cloud Logging, and list-apis, enable-api and disable-api for managing Google APIs. Authentication uses clasp login, with a global --user option for multiple named accounts and --creds to supply your own OAuth client. The README documents that clasp 3.x no longer transpiles TypeScript, so TypeScript projects should be bundled (for example with Rollup) before pushing.

clasp can also be installed as a Gemini CLI extension or as a Claude Code plugin, and it can be added as an MCP server (npx -y @google/clasp mcp). It targets developers who build Apps Script projects for Google Workspace and want version control, local editors and command-line deployment. The README states it is not an officially supported Google product.

Installation

# via npm
npm install -g @google/clasp

Alternatives & related tools

add a badge to your README

Maintain clasp? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/clasp.svg)](https://www.trmn.sh/tools/clasp?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/clasp?utm_source=badge"><img src="https://www.trmn.sh/badge/clasp.svg" alt="Featured on trmn" height="20"></a>