@devmonetizer/cli
v0.1.0
Published
AI-powered monetization strategy generator for any project. Analyze your codebase and get a complete revenue plan.
Downloads
7
Maintainers
Readme
@monetizer/cli
AI-powered monetization strategy generator for any project. Analyze your codebase and get a complete revenue plan with pricing tiers, implementation phases, and go-to-market strategies.
Quick Start (npx)
# Analyze your project (no install required)
npx @monetizer/cli analyze
# Generate monetization strategy
npx @monetizer/cli strategy
# Get go-to-market launch plan
npx @monetizer/cli gtmInstallation
# Global install
npm install -g @monetizer/cli
# Or run directly with npx
npx @monetizer/cli analyzePricing
- Free: 10 analyses/month, basic strategies
- Pro ($12/mo): Unlimited analyses, market research, GTM plans
- Team ($25/seat/mo): Seat management, SSO, audit logs
Usage
Quick Start
# Analyze your project
monetizer analyze
# Generate monetization strategy
monetizer strategy --research
# Execute the workflow
monetizer execute --method speed
# Create launch plan
monetizer gtm --phCommands
monetizer analyze [path]
Analyze a project for monetization potential.
Options:
[path]- Project path to analyze (default: current directory)-o, --output <format>- Output format (json|text, default: text)-v, --verbose- Show detailed analysis--save- Save analysis results to file
Features:
- Tech stack detection (Node.js, Python, Go)
- Framework identification (React, Next.js, Express, etc.)
- Database detection
- Project maturity assessment
- Monetization opportunity identification
Example:
monetizer analyze ./my-project --save --verboseOutput:
- Monetization potential score (0-10)
- Tech stack details
- Identified opportunities (SaaS, API, Freemium, etc.)
- Readiness assessment
monetizer strategy
Generate a comprehensive monetization strategy.
Options:
-a, --analyze- Run analysis first if not cached--research- Include market research (requires Perplexity API key)-i, --interactive- Interactive strategy builder-o, --output <file>- Save strategy to file--method <type>- Monetization method (saas|api|freemium|sponsorship)
Features:
- Multiple monetization models:
- SaaS - Subscription-based service
- API - Usage-based pricing
- Freemium - Free tier + Premium
- Sponsorship - GitHub Sponsors / Open Collective
- Educational - Courses & templates
- Pricing tier recommendations
- Feature implementation roadmap
- Timeline estimation
Example:
monetizer strategy --interactive --research
monetizer strategy --method saas --output ./strategy.jsonOutput:
- Pricing model with tiers
- Feature implementation list
- 3-phase implementation plan
- Market analysis (with --research)
monetizer execute
Execute the monetization workflow with AI orchestration.
Options:
-m, --method <method>- Orchestration method (developer|speed|research, default: speed)--all- Run all 3 orchestrators in parallel--dry-run- Show what would be done without executing--step <step>- Execute specific step (auth|payments|dashboard|deploy)-y, --yes- Skip confirmation prompts
Orchestration Methods:
- developer - Code generation with detailed implementation
- speed - Fast implementation with sensible defaults
- research - Research-backed best practices implementation
Steps:
auth- Authentication system (JWT, OAuth)payments- Stripe integrationdashboard- User dashboard UIdeploy- Railway deployment
Example:
monetizer execute --method speed
monetizer execute --step payments --dry-run
monetizer execute --allmonetizer gtm
Generate a go-to-market (GTM) launch plan.
Options:
-o, --output <file>- Output file path (default: .monetizer/gtm-plan.md)--ph- Include Product Hunt launch strategy--hn- Include Hacker News launch strategy--reddit- Include Reddit launch strategy--twitter- Include Twitter/X launch strategy--all-channels- Include all marketing channels--research- Use market research for competitive analysis--format <format>- Output format (markdown|json, default: markdown)
Features:
- Launch timeline (pre-launch, launch day, post-launch)
- Channel-specific strategies:
- Product Hunt - Timing, hunter selection, engagement
- Hacker News - Show HN guidelines, technical approach
- Reddit - Subreddit selection, story-driven posts
- Twitter - Thread strategy, hashtags, engagement
- LinkedIn - B2B positioning
- Email - Launch sequence
- Content strategy
- Success metrics
- Budget estimation
Example:
monetizer gtm --ph --hn --twitter
monetizer gtm --all-channels --research --format jsonOutput:
- Complete launch timeline
- Channel-specific tactics
- Content requirements
- Budget breakdown
- Success metrics
Configuration
Environment Variables
Create a .env file in your project root:
# Required
ANTHROPIC_API_KEY=your_anthropic_key
# Optional (enhances functionality)
PERPLEXITY_API_KEY=your_perplexity_key # Market research
RAILWAY_TOKEN=your_railway_token # Deployment
STRIPE_SECRET_KEY=your_stripe_key # Payment integration
GITHUB_TOKEN=your_github_token # Repo analysisProject Configuration
Optional monetizer.config.json in project root:
{
"monetization": {
"method": "saas",
"pricing": "tiered"
},
"deployment": {
"platform": "railway"
}
}Output Files
The CLI creates a .monetizer/ directory in your project:
.monetizer/
�� analysis.json # Project analysis results
�� strategy.json # Monetization strategy
�� execution-report.json # Execution summary
�� gtm-plan.md # Go-to-market planVisual Features
- Color-coded output (green=success, yellow=warning, red=error)
- Progress bars for long operations
- Score visualizations (���������� 8/10)
- Boxed headers for sections
- Spinner animations during processing
- Interactive prompts with inquirer
Examples
Full Workflow
# 1. Analyze project
monetizer analyze --save
# 2. Generate strategy with research
monetizer strategy --interactive --research
# 3. Preview execution
monetizer execute --dry-run
# 4. Execute implementation
monetizer execute --method speed
# 5. Create launch plan
monetizer gtm --ph --hn --twitterQuick Monetization
# All-in-one with defaults
monetizer analyze --save && \
monetizer strategy --method saas && \
monetizer execute --method speed && \
monetizer gtm --phSpecific Component Implementation
# Just add Stripe payments
monetizer execute --step payments
# Just deploy to Railway
monetizer execute --step deployDevelopment
# Watch mode
pnpm dev
# Build
pnpm build
# Type check
pnpm typecheck
# Run locally
pnpm start analyzeArchitecture
src/
�� index.ts # CLI entry point
�� commands/ # Command implementations
�� analyze.ts # Project analysis
�� strategy.ts # Strategy generation
�� execute.ts # Workflow execution
�� gtm.ts # Launch planning
�� utils/ # Utilities
�� display.ts # Terminal UI helpers
�� config.ts # Configuration loadingDependencies
- commander - CLI framework
- ora - Spinners
- chalk - Terminal colors
- inquirer - Interactive prompts
- boxen - Boxed output
- dotenv - Environment variables
- zod - Configuration validation
License
MIT
