@stringzhao/base-account-cli
v0.2.3
Published
CLI tool for AI agents to interact with base-account system
Downloads
285
Readme
@stringzhao/base-account-cli
CLI tool for AI agents to interact with the base-account system.
Install
npm install -g @stringzhao/base-account-cliAuthentication
API Key (recommended for AI agents)
export BA_API_KEY=ba_k_xxxxxxxx
ba admin users listInteractive Login
ba loginCommands
Commands are dynamically fetched from the server. After authentication:
ba admin users list
ba admin services list
ba admin api-keys create --name "my-key"
ba whoamiRun ba --help for all available commands.
Release & Publish
This repository is configured to publish to npm with GitHub Actions.
Trigger
Pushing a tag that matches v<package.json version> triggers .github/workflows/npm-publish.yml.
Example:
npm version patch
git push origin main --follow-tagsAuthentication
The workflow supports two publish modes:
- Recommended: npm trusted publishing with GitHub Actions OIDC.
- Fallback: add a repository secret named
NPM_TOKEN.
For trusted publishing, create a trusted publisher for package @stringzhao/base-account-cli in npm and bind it to:
- GitHub owner:
strzhao - Repository:
base-account-cli - Workflow file:
npm-publish.yml
Once configured, tag pushes like v0.2.1 will automatically run tests, build the CLI, and publish the package.
