commet-cli
Original:🇺🇸 English
Translated
Use when working with the Commet CLI -- logging in, linking projects, pulling types for autocomplete, scaffolding new projects from templates (fixed, seats, metered, credits, balance-ai, balance-fixed), or managing organizations.
5installs
Added on
NPX Install
npx skill4agent add commet-labs/commet-skills commet-cliTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Commet CLI
Generate TypeScript types from your Commet dashboard for autocomplete, scaffold new projects from billing templates, and manage organizations. Requires Node.js 18+.
Install
bash
npm install -g commetQuick Start
bash
commet login # Authenticate in browser
commet link # Link project to organization
commet pull # Generate .commet/types.d.tsAfter , SDK calls get autocomplete for , , and parameters:
commet pullplanCodefeatureseatTypetypescript
await commet.usage.track({
externalId: "user_123",
feature: "api_calls", // autocomplete from pulled types
});
await commet.subscriptions.create({
externalId: "user_123",
planCode: "pro", // autocomplete from pulled types
});Commands
| Command | Description |
|---|---|
| Authenticate with Commet (opens browser) |
| Remove credentials |
| Show auth status and current organization |
| Link project to an organization |
| Unlink project |
| Switch to a different organization |
| Show project and auth status |
| Generate |
| List features for the linked organization |
| List seat types |
| List plans |
| Scaffold new project from a billing template |
See references/commands.md for full details.
Templates
Scaffold a complete Next.js project with billing pre-configured:
bash
commet create my-app| Template | Billing Model |
|---|---|
| Fixed subscriptions with boolean features |
| Per-seat billing for team collaboration |
| Usage-based with included amounts and overage |
| Credit-based consumption with packs and top-ups |
| AI product with automatic token cost tracking |
| Prepaid balance with fixed unit prices |
See references/templates.md for details on each template.
Key Gotchas
-
is sandbox-only. Templates create plans and features in your sandbox organization. If you're logged into production, you need to
commet createand log back in to sandbox.commet logout -
Commit. The generated types file should be committed to your repo so the entire team gets autocomplete without each person running
.commet/types.d.ts.commet pull -
Two environments, two logins. Sandbox () and Production (
sandbox.commet.co) are isolated. Switch by logging out and back in.commet.co -
Runafter dashboard changes. When you add plans, features, or seat types in the dashboard, re-run
commet pullto update the local types file.commet pull
When to Load References
- Full command flags and details -> references/commands.md
- Template descriptions and billing models -> references/templates.md
- Step-by-step project setup -> references/setup-workflow.md