Interactive CLI wizard for scaffolding Eniem projects
npm install eniem-cliInteractive CLI wizard for scaffolding Eniem projects.
- Website: eniem.dev
- Documentation: doc.eniem.dev
``bash`
npm install -g eniem-cli
Or run directly without installing:
`bash`
pnpm dlx eniem-cli my-app
npx eniem-cli my-app
`bash`
eniem-cli [project-name]
| Option | Description |
|--------|-------------|
| --git-host | SSH host alias for git clone (default: github.com) |--help, -h
| | Show help message |--version, -v
| | Show version number |
`bashCreate a new project
eniem-cli my-app
Products Command
Manage Polar products interactively. Run this command from your Eniem project directory.
`bash
eniem-cli products [options]
`$3
| Option | Description |
|--------|-------------|
|
--env | Environment: sandbox or production (default: sandbox) |
| --prod | Shorthand for --env=production |
| --token | Polar access token (bypasses .env lookup) |$3
`bash
Manage sandbox products
eniem-cli productsManage production products
eniem-cli products --prodUse a specific access token
eniem-cli products --prod --token=polar_xxx
`$3
- Add products: Create new products with pricing, features, and display options
- Remove products: Archive products on Polar and remove from local file
- Sync to Polar: Push local product changes to Polar API
- Sync from sandbox: Copy sandbox products to production environment
- Unarchive products: Restore archived products on Polar
- Clean up Polar: Manage orphaned products (archive or import to local file)
- Regenerate TypeScript: Update generated product exports
Products are stored in
products.sandbox.json and products.production.json, with TypeScript exports generated in src/features/subscription/products.generated.ts`.The wizard will guide you through configuring:
- Project name and directory
- OAuth providers (GitHub, Twitter)
- Payment integration (Polar)
- Storage configuration (DigitalOcean Spaces)
- Analytics (Umami, PostHog)
MIT