Package Exports
- @oxagen/cli
- @oxagen/cli/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@oxagen/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Oxagen CLI
A comprehensive command-line interface for Oxagen, enabling you to manage organizations, workspaces, conversations, and more directly from your terminal.
Installation
From npm (when published)
npm install -g @oxagen/cli
# or
yarn global add @oxagen/cli
# or
pnpm add -g @oxagen/cliAfter installation, verify the CLI is available:
oxagen --versionFrom source (development)
Clone the repository and run:
cd oxagen-monorepo
pnpm install
pnpm build
pnpm -C apps/cli dev # for development with tsx
# or
pnpm -C apps/cli build && node apps/cli/dist/index.js # for production buildQuick Start
Authentication
First, authenticate with your Oxagen account:
oxagen auth loginYou'll be prompted for your credentials. Your session is saved locally for subsequent commands.
Check who you're logged in as:
oxagen auth whoamiLog out when finished:
oxagen auth logoutOrganizations & Workspaces
List your organizations:
oxagen org listCreate a new organization:
oxagen org create --name "My Organization"List workspaces in an organization:
oxagen workspace listCreate a new workspace:
oxagen workspace create --name "My Workspace"Common Commands
Authentication
oxagen auth login— Authenticate with your accountoxagen auth logout— Remove local sessionoxagen auth whoami— Display current user
Organization Management
oxagen org list— List all organizationsoxagen org create— Create a new organizationoxagen org member add— Add a member to an organizationoxagen org member remove— Remove a member from an organizationoxagen org member role change— Change a member's roleoxagen org member invite accept— Accept an org inviteoxagen org member invite decline— Decline an org invite
Workspace Management
oxagen workspace list— List workspacesoxagen workspace create— Create a workspaceoxagen workspace member list— List workspace membersoxagen workspace invite send— Send an invite to a workspaceoxagen workspace model settings read— Read model settingsoxagen workspace model settings write— Update model settings
Conversations & Chat
oxagen conversation list— List conversationsoxagen conversation chat— Start interactive chatoxagen chat send— Send a single messageoxagen conversation rename— Rename a conversationoxagen conversation archive— Archive a conversationoxagen conversation delete— Delete a conversationoxagen conversation purge— Purge all conversations
API Keys
oxagen api-key create— Create a new API keyoxagen api-key revoke— Revoke an API key
Plugins
oxagen plugin list— List available pluginsoxagen plugin install— Install a pluginoxagen plugin uninstall— Uninstall a pluginoxagen plugin org list— List organization pluginsoxagen plugin org install— Org-level plugin installoxagen plugin org uninstall— Org-level plugin uninstalloxagen plugin org install bulk— Bulk install pluginsoxagen plugin org set enabled— Enable/disable org pluginoxagen plugin workspace set enabled— Enable/disable workspace pluginoxagen plugin registry list— List plugin registriesoxagen plugin registry add— Add a custom registryoxagen plugin registry remove— Remove a registryoxagen plugin registry sync— Sync plugins from registryoxagen plugin catalog get— Get plugin from catalogoxagen plugin catalog browse— Browse plugin catalogoxagen plugin credential reauth— Re-authenticate pluginoxagen plugin credential set secret— Set plugin credentialsoxagen plugin denylist add— Add to denylistoxagen plugin denylist remove— Remove from denylistoxagen plugin settings set auth alerts— Configure alerts
Billing & Credits
oxagen billing status— View billing statusoxagen billing credits purchase— Purchase creditsoxagen billing subscription read— View subscriptionoxagen billing subscription upgrade start— Start upgrade
Agents & Workflows
oxagen agent mcp list— List agent MCP serversoxagen agent mcp register— Register an MCP serveroxagen agent skill list— List agent skillsoxagen agent tool list— List available toolsoxagen agent approval resolve— Resolve an approvaloxagen agent memory write— Write to agent memoryoxagen agent memory recall— Recall from agent memoryoxagen agent task background start— Start background taskoxagen agent task background read— Read task statusoxagen agent task background cancel— Cancel taskoxagen agent plan approve— Approve an agent planoxagen workflow run— Run a workflowoxagen workflow status— Check workflow statusoxagen workflow cancel— Cancel a workflow
Content & Media
oxagen image list— List imagesoxagen image create— Upload/create an imageoxagen image generate— Generate an image with AIoxagen image analyze— Analyze an imageoxagen document list— List documentsoxagen document create— Create a documentoxagen document read— Read a documentoxagen documents generate— Generate documentsoxagen documents pdf create— Generate PDF from documentsoxagen video generate— Generate videooxagen svg generate— Generate SVGoxagen asset upload— Upload an asset
Forms & Automation
oxagen form create— Create a formoxagen form submit— Submit form dataoxagen form fill— Fill form fieldsoxagen automation list— List automationsoxagen automation create— Create an automationoxagen automation trigger— Trigger an automation
Utilities
oxagen notifications list— List notificationsoxagen notifications mark— Mark notifications as readoxagen user preferences get— Get user preferencesoxagen user preferences read— Read preferencesoxagen user preferences update— Update preferencesoxagen user preferences write— Write preferencesoxagen skill workspace list— List workspace skillsoxagen archive create— Create an archiveoxagen brandkit apply— Apply brand kit settings
Usage Examples
Interactive Chat Session
oxagen conversation chat --workspace my-workspaceSend a Single Message
oxagen chat send "What is the weather today?" --workspace my-workspaceCreate and Configure
# Create a new organization
oxagen org create --name "Acme Corp"
# Create a workspace within it
oxagen workspace create --name "Engineering"
# Invite team members
oxagen workspace invite send --email "alice@acme.com" --email "bob@acme.com"API Key Management
# Create an API key for programmatic access
oxagen api-key create
# Revoke a key by ID
oxagen api-key revoke <key-id>Plugin Management
# View available plugins
oxagen plugin catalog browse
# Install a plugin to your workspace
oxagen plugin install <plugin-id>
# Configure plugin credentials
oxagen plugin credential set secret <plugin-id> <secret-name> <secret-value>Configuration
Settings are stored in your user's config directory:
- macOS:
~/.config/oxagen/ - Linux:
~/.config/oxagen/ - Windows:
%APPDATA%\oxagen\
Your authentication token is stored securely in the system keychain when available, with a fallback to the config directory.
Troubleshooting
command not found: oxagen
Ensure the CLI is installed globally:
npm list -g @oxagen/cliIf not installed, run:
npm install -g @oxagen/cliAuthentication failures
Clear your cached session and re-authenticate:
oxagen auth logout
oxagen auth loginCheck version and help
oxagen --version
oxagen --help
oxagen <command> --helpPublishing to npm
Prerequisites
Ensure you have an npm account: https://www.npmjs.com/signup
Authenticate locally:
npm loginPackage must not be marked as
"private": trueinpackage.json(currently it is; see step below)
Before Publishing
Update the version in
apps/cli/package.json:# Use semantic versioning npm version patch # 0.2.2 → 0.2.3 (bug fixes) npm version minor # 0.2.2 → 0.3.0 (new features, backwards compatible) npm version major # 0.2.2 → 1.0.0 (breaking changes)
Or manually edit the
versionfield.Update
apps/cli/package.jsonto remove the"private": truefield:{ "name": "@oxagen/cli", "version": "0.3.0", "type": "module", "bin": { "oxagen": "./dist/index.js" } // ... rest of config }
Build the distribution:
pnpm -C apps/cli build
Verify the build is correct:
node apps/cli/dist/index.js --version node apps/cli/dist/index.js --help
Publishing
From the monorepo root:
# Option 1: Using npm directly from the CLI package directory
cd apps/cli
npm publish
# Option 2: Using pnpm from monorepo root
pnpm publish -C apps/cliVerification
Verify the package was published:
npm view @oxagen/cli
npm info @oxagen/cliInstall from npm to verify:
npm install -g @oxagen/cli@latest
oxagen --versionPost-Publish Checklist
- Version bumped in
apps/cli/package.json -
package.jsonno longer marked"private" - Distribution built (
apps/cli/dist/up-to-date) - Package published to npm
- Installation verified with
npm install -g @oxagen/cli@latest - Help text displays correctly:
oxagen --help - Global command works:
oxagen --version - Commit and tag pushed to repository
Automated Release (via pnpm scripts)
This monorepo includes automated release tooling:
pnpm release:patch # Bumps all packages including @oxagen/cli
pnpm release:minor
pnpm release:majorThese commands:
- Bump version across all workspace packages (lockstep versioning)
- Create a git tag
- Publish to npm
- Sync version to Vercel projects
Development
Building from source
pnpm -C apps/cli buildTesting
pnpm -C apps/cli test:unitLinting
pnpm -C apps/cli lintInteractive development
pnpm -C apps/cli dev -- <command> [args]Support
For issues, feature requests, or questions:
- GitHub Issues: https://github.com/oxagen/oxagen-monorepo/issues
- Documentation: https://oxagen-v2-docs.vercel.app
- Email: support@oxagen.ai
License
MIT