commet
v1.0.0
Published
Commet CLI - Manage your billing platform from the command line
Downloads
314
Readme
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.create({
eventType: 'api_call', // Autocomplete works!
customerId: 'cus_123'
});
await commet.subscriptions.create({
productId: 'prod_xxx', // Autocomplete with your products!
customerId: 'cus_123'
});Commands
commet login # Authenticate with Commet
commet logout # Remove credentials
commet link # Link project to organization
commet pull # Generate TypeScript types
commet info # Show project status
commet list events # List event types
commet list seats # List seat typesDocumentation
Visit docs.commet.co/cli for:
- Complete command reference
- Configuration guide
- Workflow examples
- Troubleshooting
Resources
License
MIT
