commet
v5.1.3
Published
Commet CLI - Manage your billing platform from the command line
Readme
Manage your Commet project from the terminal. Link to your organization, generate TypeScript types for autocomplete on plan codes and feature codes, and inspect your billing setup.
Installation
npm install -g commetQuick Start
# Authenticate
commet login
# Link to organization
commet link
# Generate types
commet pullType Generation
The CLI generates TypeScript types from your organization for type-safe autocomplete:
// After running 'commet pull'
import { Commet } from '@commet/node';
const commet = new Commet({ apiKey: '...' });
await commet.usage.track({
featureCode: 'api_calls', // Autocomplete works!
customerId: 'cus_123'
});
await commet.subscriptions.create({
planCode: 'pro', // Autocomplete with your plans!
customerId: 'cus_123'
});Commands
commet login # Authenticate with Commet
commet logout # Remove credentials
commet link # Link project to organization
commet orgs # List your organizations
commet pull # Fetch billing config and generate commet.config.ts
commet push # Push commet.config.ts to Commet
commet listen <url> # Forward webhook events to your local server
commet features list # List the feature catalog
commet plans list # List plans
commet customers list # List customersAgent setup and diagnostics
commet agents setup
commet agents setup --check --output agent
commet doctor --output agentagents setup manages only the delimited Commet block in AGENTS.md and preserves project-owned instructions. doctor reads the local installation, package compatibility, installed documentation, API version, and project mode without contacting Commet or changing files.
Commet packages do not declare preinstall, install, or postinstall scripts. Agent setup is always an explicit command, except when commet create is already explicitly scaffolding a new project.
Documentation
Visit commet.co/docs for:
- Complete command reference
- Configuration guide
- Workflow examples
- Troubleshooting
Resources
License
MIT
