gma CLI
The command-line interface for GitMyABI.
CLI
The gma CLI is published to npm as the gitmyabi package. It generates a typed-ABI npm package (viem) from your contract artifacts and can publish that package to any npm registry, with or without a GitMyABI account.
Two binaries are installed and point at the same entry: gma (primary) and forge-gma (Foundry-flavored alias).
When to use the CLI
- Local codegen and publishing.
gma init,gma generate, andgma publishrun entirely on your machine and only need a normal npm registry token to publish. No GitMyABI account is required. - CI workflows. The same commands run in GitHub Actions or any other CI runner; see the GitHub Action guide.
- Scripting the GitMyABI platform. After
gma login, the CLI unlocksgma shelland top-level groups for teams, projects, builds, repos, and ABIs — the same surface as the web app, scriptable from the terminal.
Available without sign-in
gma init— create agma.config.jsonin the current directory.gma generate— build a.tgzbindings tarball from your ABIs.gma publish— upload a tarball to an npm registry with your own token.gma demo— interactive walkthrough with mocked output.gma login— sign in to GitMyABI via GitHub OAuth.
Available after sign-in
gma whoami,gma logout— inspect or clear the stored profile.gma shell— interactive REPL covering teams, projects, builds, repos, ABIs, and the session dashboard.gma team,gma project,gma build,gma repo,gma abi,gma session— scriptable top-level groups that mirror the shell.
Run gma <command> --help for the full flag list of any command.
Related
- Install the CLI
Install the gma CLI from npm.
- Sign in with the CLI
Authenticate the gma CLI with your GitMyABI account.
- Generate bindings with the CLI
Use gma generate to produce a typed bindings tarball.
- Publish bindings with the CLI
Use gma publish to upload a bindings tarball to npm.
- Command reference
Concise reference of every gma command and key flags.