glasp: A Go-based, Zero-dependency CLI for Google Apps Script (clasp Alternative)
Source: Dev.to
If you use clasp for local Google Apps Script (GAS) development, you might have faced challenges with Node.js runtime overhead or slow deployment speeds. glasp is a Go‑based CLI tool designed to address these issues, offering high performance and a simplified developer experience.
Official site:
GitHub:
Key Features
- Zero dependencies – runs as a single binary; no Node.js or npm required.
- clasp compatibility – works with existing
.clasp.jsonandappsscript.jsonfiles. Commands likelogin,push, andpullfollow the same syntax. - High performance – concurrent processing provides significantly faster file scanning and uploading, especially in large projects.
- GitHub Actions optimized – a dedicated Action allows deployment without setting up a Node.js environment.
Installation
For macOS and Linux, install glasp with the following script:
curl -sL https://takihito.github.io/glasp/install.sh | bash
GitHub Action Example
name: Deploy to Google Apps Script
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy with glasp
uses: takihito/glasp@v0.2.8
with:
version: 'v0.2.8'
auth: '${{ secrets.CLASPRC_JSON }}'
Implementation Note
Register the contents of your local ~/.clasprc.json as a GitHub secret named CLASPRC_JSON.
Since the Action runs as a Docker container, the environment setup is minimal and fast.
glasp is a practical alternative for developers who want to decouple their GAS workflow from Node.js or optimize their CI/CD pipelines for speed. If you are looking for a lightweight and faster way to manage your scripts while keeping your existing clasp configurations, glasp is a strong candidate.