eniem-cli
v0.6.0
Published
Interactive CLI wizard for scaffolding Eniem projects
Readme
eniem-cli
Interactive CLI wizard for scaffolding Eniem projects.
- Website: eniem.dev
- Documentation: doc.eniem.dev
Installation
npm install -g eniem-cliOr run directly without installing:
pnpm dlx eniem-cli my-app
npx eniem-cli my-appUsage
eniem-cli [project-name]Options
| Option | Description |
|--------|-------------|
| --git-host | SSH host alias for git clone (default: github.com) |
| --help, -h | Show help message |
| --version, -v | Show version number |
Examples
# Create a new project
eniem-cli my-app
# Use a custom SSH host alias (from ~/.ssh/config)
eniem-cli --git-host 0xtiby my-appProducts Command
Manage Polar products interactively. Run this command from your Eniem project directory.
eniem-cli products [options]Options
| Option | Description |
|--------|-------------|
| --env | Environment: sandbox or production (default: sandbox) |
| --prod | Shorthand for --env=production |
| --token | Polar access token (bypasses .env lookup) |
Examples
# Manage sandbox products
eniem-cli products
# Manage production products
eniem-cli products --prod
# Use a specific access token
eniem-cli products --prod --token=polar_xxxFeatures
- 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.
What it sets up
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)
License
MIT
