clasp is a command-line interface for managing Google Apps Script projects, enabling developers to create, sync, and deploy scripts from a local development environment. It provides an alternative to the cloud-based script editor, allowing version control, offline editing, and integration with standard development workflows.
The tool supports TypeScript transpilation, so developers can write type-annotated code that compiles to JavaScript for the Apps Script runtime. Authentication is handled via OAuth 2.0, and users can synchronize local files with remote projects using ignore patterns similar to .gitignore. clasp also manages versioned deployment snapshots, allowing scripts to be published as web apps, add-ons, or APIs with distinct identifiers.
Beyond basic project management, clasp enables CI/CD automation for linting, testing, and deploying script projects. It supports trigger-based automation across Google services, execution monitoring for running and completed functions, and development of custom spreadsheet functions and chat interfaces. Developers can build and publish add-ons for Google Workspace, manage multiple deployments, and retrieve execution logs. clasp is installed via npm and its documentation is maintained at the GitHub repository.