@dotlabshq/dtab
v0.1.0
Published
Command-line interface for the [Driptab](https://driptab.app) billing platform.
Readme
dtab — Driptab CLI
Command-line interface for the Driptab billing platform.
Installation
npm install -g @dotlabshq/dtabQuick start
# Login
dtab login
# Set active project
dtab use myorg/my-saas/billing
# Create plans
dtab plans create --name "Starter" --amount 0 --interval monthly
dtab plans create --name "Pro" --amount 1900 --interval monthly
# Create a customer and subscription
dtab customers create --external-id user_1 --name "Test User"
dtab subscriptions create --external-id sub_1 --customer ext:user_1 --plan starter
# Create an API token for your app
dtab tokens create --name "my-app"Commands
| Command | Description |
|---------|-------------|
| dtab login | Sign in via browser |
| dtab logout | Sign out |
| dtab ps | Show active context |
| dtab ls | List orgs / workspaces / projects |
| dtab use <org>[/<ws>/<proj>] | Switch active context |
| dtab plans | Manage plans |
| dtab customers | Manage customers |
| dtab subscriptions | Manage subscriptions |
| dtab metrics | Manage billable metrics |
| dtab events | Report usage events |
| dtab tokens | Manage API tokens |
| dtab orgs | Manage organisations |
| dtab ws | Manage workspaces |
| dtab proj | Manage projects |
Run dtab <command> --help for options.
