@heysegment/cli
v1.2.5
Published
The Heysegment command line: your account's businesses, senders, Google, domains, notifications and websites, from a terminal. Runs on Bun.
Readme
@heysegment/cli
The Heysegment command line: your account's businesses, senders, Google, domains and websites, from a terminal. It runs on Bun 1.3.14 or newer. Working on a site also needs Node 22.15 or newer: the site's type check and build run on it.
Install
bun add -g @heysegment/cli
heysegment --versionThe command is heysegment. Every answer ends with its next steps written the same way
(heysegment …), so they run as written. heysegment-beta, its name before
1.0.0-beta.17, is installed too and runs the same CLI, so instructions written with it
still work. If heysegment --version prints 0.1.x, that is the older heysegment-cli
package, which used the same name: remove it (npm uninstall -g heysegment-cli, or
bun remove -g heysegment-cli) and check again.
No Bun yet: curl -fsSL https://bun.sh/install | bash (Windows: powershell -c "irm bun.sh/install.ps1 | iex"),
then open a new shell. The command runs on Bun: installed with npm instead, it still needs Bun on the
PATH, or every call ends with 'bun' is not recognized.
Staying current
The CLI asks Heysegment which release to run at most every 10 minutes. When a newer one is out, a command still runs and then says so on stderr, at most every 10 minutes:
heysegment 1.0.1 is out (this is 1.0.0). Update it: heysegment updateheysegment update installs it (bun add -g @heysegment/cli@<release>). A release older
than the platform's minimum is refused, with the same way out; --help, --version, auth
and update always run. Set HEYSEGMENT_NO_UPDATE_CHECK=1 to turn the check off (a machine
that pins its CLI).
Sign in
heysegment auth login # opens a browser
heysegment auth login --no-browser # prints the URL insteadAn agent connected to Heysegment over MCP can instead hand you a one-time code:
heysegment auth connect --code <code>.
Use
heysegment --help
heysegment businesses list
heysegment sites list
heysegment sites push -m "What changed"
heysegment sites list --json # flags go after the command