nucleon-cli
v1.0.6
Published
π The Ultimate Developer Workflow Engine - One CLI to replace them all. Install globally: npm install -g nucleon-cli
Maintainers
Keywords
Readme
β‘ Nucleon CLI
The Ultimate Developer Workflow Engine
One CLI to replace them all. Project initialization, code analysis, deployment, and complete workflow automation.
π¦ Installation
Global installation required:
npm install -g nucleon-cliβ οΈ Do not install locally - Nucleon is designed to work globally across all your projects.
π Global Installation
npm install -g nucleon-cliImportant: Always install Nucleon globally with the
-gflag to use it in any directory.
β‘ Quick Start
# 1. Install globally (required)
npm install -g nucleon-cli
# 2. Use anywhere
nucleon init
nucleon analyze
nucleon deployπ― Why Nucleon?
Stop juggling 20+ CLI tools. Nucleon unifies your entire development workflow:
| Problem | Solution | |---------|----------| | β Repetitive project setup | β Smart initialization with real framework installation | | β Messy commit messages | β AI-powered commit generation | | β Broken environments | β Comprehensive health diagnostics | | β No project insights | β Deep codebase analysis with actionable suggestions | | β Complex deployments | β One-command deployment with pre-flight checks |
β¨ Core Features
ποΈ Smart Project Initialization
nucleon init- Real framework installation (Next.js, React+Vite, Express, FastAPI)
- Automatic dependency setup
- Git initialization with best practices
- Environment configuration
π Intelligent Code Analysis
nucleon analyze- Project health scoring
- Architecture visualization
- Dependency analysis
- Performance insights
- Security recommendations
π Seamless Deployment
nucleon vercel deploy- Pre-deployment validation
- Environment checks
- Automatic framework detection
- Deployment monitoring
βοΈ Complete Workflow Automation
nucleon git smart-commit # Intelligent commits
nucleon task add "Feature" # Task management
nucleon deps # Security auditing
nucleon summary # Development metricsπΈ Live Examples
Project Structure Visualization
ποΈ Project Structure
βββ π my-app
βββ π src
β βββ π components
β β βββ π· Header.tsx
β β βββ π· Footer.tsx
β βββ π· index.ts
βββ π package.json
π Dependency Graph: 15 modules analyzed
π‘ Insights: Clean React architecture detectedSmart Health Analysis
π Project Health Report
Language: TypeScript Framework: Next.js
Files: 127 Test Coverage: 85%
Lines: 12,481 Dependencies: 23
β οΈ Warnings
β’ Large file: Dashboard.tsx (1,200 lines)
π‘ Suggestions
β’ Split Dashboard into smaller components
β’ Add integration tests for API routesπ§ Environment Variables & Configuration
Automatic Configuration
Nucleon handles most environment setup automatically during installation:
- PATH Setup: Adds npm global bin directory to your system PATH
- Shell Integration: Updates
.bashrc,.zshrc, or.bash_profileon Unix systems - Windows Registry: Configures user environment variables on Windows
Manual Configuration (if needed)
If you encounter "command not found" errors, manually configure your environment:
Windows
# Method 1: PowerShell (run as user)
$npmBin = npm bin -g
$env:PATH += ";$npmBin"
# Method 2: System Properties
# 1. Win + R β "sysdm.cpl" β Environment Variables
# 2. Edit user PATH variable
# 3. Add output of: npm bin -gmacOS/Linux
# Add to ~/.bashrc, ~/.zshrc, or ~/.bash_profile
echo 'export PATH="$PATH:$(npm bin -g)"' >> ~/.bashrc
source ~/.bashrc
# Or manually add the npm global bin path:
export PATH="$PATH:/usr/local/lib/node_modules/.bin"Project Environment Variables
When initializing projects, Nucleon creates appropriate .env files:
# Express API projects get .env.example with:
PORT=3000
NODE_ENV=development
# Vercel deployments may need:
VERCEL_TOKEN=your_token_hereTroubleshooting
If Nucleon isn't working after installation:
- Check installation:
nucleon --version - Run diagnostics:
nucleon doctor - Reconfigure PATH:
nucleon setup - Manual setup: Follow platform-specific instructions above
π Command Reference
| Command | Description |
|---------|-------------|
| nucleon init | Initialize projects with framework installation |
| nucleon analyze | Deep project analysis and health check |
| nucleon structure | Visualize project architecture |
| nucleon vercel | Clean deployment workflow |
| nucleon doctor | Environment diagnostics |
| nucleon git | Enhanced Git operations |
| nucleon task | Lightweight task management |
| nucleon stats | Development metrics |
| nucleon update | Auto-update to latest version |
π― Perfect For
- π¨ Frontend Developers - React, Next.js, Vue projects
- βοΈ Backend Engineers - Express, FastAPI, Node.js APIs
- π Full-Stack Teams - End-to-end project management
- βοΈ DevOps Engineers - Deployment automation
- π¦ Open Source Maintainers - Project health monitoring
π What Makes Nucleon Special
- π Universal - Works in any directory, adapts to any project
- π§ Intelligent - Context-aware commands that understand your project
- β‘ Fast - Optimized for developer productivity
- π Extensible - Plugin system for custom workflows
- π¨ Beautiful - Clean, colorful output that's easy to read
- π Auto-updating - Always stay on the latest version
π οΈ Getting Started
1. Global Installation (Required)
npm install -g nucleon-cliβ οΈ Important: Nucleon must be installed globally to work in any directory. Do not use local installation.
2. Verify Installation
nucleon --version
nucleon --help2. Verify Installation
nucleon --version
nucleon --help3. Automatic Setup
Nucleon automatically configures your development environment:
- β Sets up PATH for global access
- β Installs Vercel CLI for deployments
- β Configures optional dev tools (TypeScript, ESLint, Prettier)
3. Manual Environment Setup (if needed)
If automatic setup fails, you can manually configure environment variables:
Windows:
- Open System Properties β Environment Variables
- Add npm global bin directory to user PATH:
# Get npm global bin path npm bin -g # Add the returned path to your PATH environment variable
macOS/Linux:
Add to your shell config file (~/.bashrc, ~/.zshrc, or ~/.bash_profile):
# Add npm global bin to PATH
export PATH="$PATH:$(npm bin -g)"Environment Variables for Projects:
PORT: Server port (default: 3000)NODE_ENV: Environment mode (development/production)VERCEL_TOKEN: For automated deployments- Project-specific variables in
.envfiles
4. Start Using
nucleon init # Create a new project
nucleon doctor # Check your environment
nucleon analyze # Analyze any existing projectπ‘ Pro Tip: Run
nucleon doctorfirst to ensure your development environment is properly configured.
π€ Contributing
We welcome contributions! Check out our Contributing Guide.
git clone https://github.com/namansharma28/nucleon
cd nucleon
npm install && npm run build
npm link # Test locallyπ License
MIT Β© Naman Sharma
π Support
If Nucleon improves your workflow, please:
- β Star this repo
- π¦ Share on Twitter
- π Write a review
Built with β€οΈ for developers who want to focus on building, not tooling.
