chargebee-init is a CLI to help integrate Chargebee services with your existing app. It supports popular Node.js frameworks and libraries and takes an opinionated approach to setting up just enough boilerplate so you can focus on how your business domain uses Chargebee services.
The following Chargebee features are currently supported:
- Checkout one time charges
- Checkout subscription plan
- Manage payment methods
- Customer portal
- Handle incoming webhook events
Note: The CLI does not provide additional UI components. It uses the Chargebee Node SDK to invoke the relevant APIs from your backend service
The CLI integrates the following backend-frameworks
| Framework | Version | Notes |
|---|---|---|
| Next.js | 15 | Only App Router supported |
| Express | 5 |
- Node.js >= 20
- Existing app should be TypeScript based
Run npx chargebee-init in your existing app directory.
The CLI can be invoked directly via npx or an equivalent script runner:
# Node.js
npx chargebee-init
# Bun
bunx chargebee-init
It can also be installed globally as a NPM package:
npm install -g chargebee-init
If you find any bugs or have any questions / feedback, open an issue in this repository or reach out to us on dx@chargebee.com