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 login

commet logout

commet logout

commet whoami

Shows auth status and current organization.

commet whoami

Project

Links project to an organization. Creates .commet file.

commet link
commet unlink

commet switch

Switch to different organization (same environment).

commet switch

commet info

Shows current project and auth status.

commet info

Types

commet pull

Generates .commet/types.d.ts with your event types, seat types, plans, and features. Enables autocomplete in your code.

commet pull

After 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 events

commet list seats

commet list seats

How is this guide?