@zergai/zergai
v0.3.0
Published
ZergAI content and platform administration CLI
Readme
ZergAI CLI
npm install -g @zergai/zergai
zergai --version
zergai --help
zergai --profile production --api-url https://api.zergai.com config set
zergai --profile production auth login --access editor
zergai --profile production auth whoamiRequires Node.js 22 or later on macOS or Linux, arm64 or x64. The package bundles all four native binaries; installation needs no Go compiler, install script, or separate binary download. Windows is not supported by this package.
The CLI manages content, publication, and authorized platform administration.
Existing server permissions still apply. Use --help on any command, and review
targets and explicit approval flags before changing or publishing content.
Credentials and profiles are preserved. Use --config PATH or ZERGAI_CONFIG
to isolate automation, and ZERGAI_TOKEN instead of credentials in arguments.
First-party code remains proprietary (UNLICENSED). Third-party notices for
the bundled Go binaries are included in THIRD_PARTY_NOTICES.txt.
Updating the npm CLI
Run zergai update or zergai --update to install a newer npm
release. zergai update --check prints JSON without installing. The
installed channel is preserved (dev, next, or latest); select a channel
explicitly with update --channel dev|next|latest. Updates never downgrade.
Startup checks only notify on stderr when it is a terminal, never prompt or
install, and are cached for one hour. CI, redirected stderr, and help/version
requests skip checks. Set ZERGAI_NO_UPDATE_CHECK=1 to disable startup checks.
Self-installation requires the matching macOS/Linux global npm prefix; local,
linked, npx, or other package-manager installs must use their original manager.
Existing releases need one ordinary npm upgrade before these commands exist.
See shared updater policy for installation safety, channel switching, and packaging details.
