glasp
glasp は Google Apps Script プロジェクトを管理する Go 製 CLI ツールです。 Node.js ベースの clasp をシングルバイナリで置き換え、高速に動作します。
Features
- clasp 完全互換 —
.clasp.json,.claspignore,.clasprc.jsonをそのまま利用可能できます - TypeScript 自動トランスパイル — push 時に
.tsファイルを自動変換します - OAuth2 認証 — ローカルコールバックサーバーを利用したログイン
- コマンド履歴 — 実行履歴の記録とリプレイ機能
- アーカイブ — push/pull 操作のスナップショット保存
- シングルバイナリ — ダウンロードしてすぐ使用可能です
Quick Start
# インストール(Linux / macOS)
curl -sSL https://takihito.github.io/glasp/install.sh | sh
# ログイン
glasp login
# 既存プロジェクトのクローン
glasp clone <script-id>
# ファイルの取得・反映
glasp pull
glasp push
デフォルトでは ~/.local/bin にインストールされます。変更する場合:
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でインストールできます。
詳しくは インストール、使い方、GitHub Actions をご覧ください。
Supply-Chain Security
- リリースバイナリは cosign で署名済み
- SLSA Level 3 の来歴証明 (provenance) を付与
- https://socket.dev/ で依存関係の分析と監視を行っています
- OpenSSF Scorecard でセキュリティスコアを公開しています