Skip to main content
This page documents the sm binary shipped by Sawmills. Every command accepts these global flags:
FlagMeaning
--profile <PROFILE>Use a named profile from config.toml.
--jsonEmit JSON output instead of human-readable tables or prose.
--debugPrint richer debug/error output.
-h, --helpShow command help.
At the root level, sm -V and sm --version print the installed CLI version.

Install the CLI

Homebrew

This is the primary install path for macOS and Linux:
brew tap sawmills/public-tap https://github.com/Sawmills/homebrew-public-tap
brew install sawmills/public-tap/sm
sm --version

Uninstall the CLI

brew uninstall sm

Login and organization selection

The CLI uses a browser-based OAuth PKCE flow.
sm login
sm login --org org_xxx