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
# プロジェクトディレクトリを作成
mkdir project-gas
cd project-gas
# .clasp.json を作成(スクリプト ID と rootDir を指定)
glasp config init --script-id=SCRIPT_ID --rootDir=src
# clasp の認証情報でログイン(ブラウザでログインする場合は `glasp login`)
glasp login --auth ~/.clasprc.json
# リモートファイルを src/ に取得
glasp pull
デフォルトでは ~/.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 でセキュリティスコアを公開しています