CLI
CLI Commands
Complete reference for all Commet CLI commands
Authentication
commet login
Opens browser for OAuth authentication. Stores credentials in ~/.commet/auth.json.
commet logincommet logout
commet logoutcommet whoami
Shows auth status and current organization.
commet whoamiProject
commet link
Links project to an organization. Creates .commet file.
commet linkcommet unlink
commet unlinkcommet switch
Switch to different organization (same environment).
commet switchcommet info
Shows current project and auth status.
commet infoTypes
commet pull
Generates .commet/types.d.ts with your event types, seat types, plans, and features. Enables autocomplete in your code.
commet pullAfter running, your SDK calls get autocomplete:
await commet.usage.track({
externalId: 'user_123',
eventType: 'api_call', // ✓ autocomplete
})
await commet.subscriptions.create({
externalId: 'user_123',
planCode: 'pro', // ✓ autocomplete
})commet list events
commet list eventscommet list seats
commet list seatsHow is this guide?