JSPM

  • Created
  • Published
  • Downloads 676
  • Score
    100M100P100Q108875F
  • License MIT

Commet CLI - Manage your billing platform from the command line

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (commet) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Commet CLI

    CLI for Commet billing platform

    NPM version Documentation


    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 commet

    Quick Start

    # Authenticate
    commet login
    
    # Link to organization
    commet link
    
    # Generate types
    commet pull

    Type 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({
      feature: 'api_calls', // Autocomplete works!
      externalId: 'user_123'
    });
    
    await commet.subscriptions.create({
      planCode: 'pro', // Autocomplete with your plans!
      externalId: 'user_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 features   # List features
    commet list seats      # List seat types
    commet list plans      # List plans

    Documentation

    Visit commet.co/docs for:

    • Complete command reference
    • Configuration guide
    • Workflow examples
    • Troubleshooting

    Resources

    License

    MIT