Package Exports
- @techshu/cli
- @techshu/cli/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@techshu/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
🚀 TechShu CLI
The fastest way to add production-ready boilerplates to your project
💡 One command, instant boilerplates: No copy-paste, no manual setup. Just
techshu addand you're done.
📦 Installation
Global Installation (Recommended)
npm install -g @techshu/cliLocal Installation
npm install --save-dev @techshu/cliUse Without Installing (npx)
npx @techshu/cli list🎯 Quick Start
# List all available boilerplates
techshu list
# Search for a boilerplate
techshu search authentication
# Get info about a boilerplate
techshu info authentication
# Add a boilerplate to your project
techshu add authentication
# Add to a specific path
techshu add authentication --path ./src/lib
# Force overwrite existing files
techshu add authentication --force📚 Commands
techshu list
List all available boilerplates.
# List all boilerplates
techshu list
# Filter by category
techshu list --category "AI & Intelligence"
techshu list -c "Admin & Management"Output:
TechShu Boilerplates v1.0.0
AI & INTELLIGENCE
rag-system - Complete RAG implementation with vector search
Files: 15 | Components: 3 | Lib: 5
embedding-service - Multi-provider embedding service
Files: 8 | Components: 0 | Lib: 3
...
Total: 42 boilerplatestechshu search <query>
Search for boilerplates by name, description, or tags.
# Search by keyword
techshu search auth
techshu search email
techshu search AIOutput:
Found 3 result(s):
authentication - Complete authentication system with Supabase
Category: Utilities | Files: 25
Tags: auth, supabase, login, signup
admin-user-management - User management for admins
Category: Admin & Management | Files: 18
Tags: admin, users, managementtechshu info <boilerplate>
Get detailed information about a specific boilerplate.
techshu info authentication
techshu info rag-systemOutput:
Authentication System v1.0.0
Complete authentication system with Supabase Auth
Category: Utilities
Path: authentication
Files: 25
Components: 8
Lib files: 5
Tags: auth, supabase, login, signup, password-reset
Dependencies:
- @supabase/supabase-js
- @supabase/auth-helpers-nextjs
To add: techshu add authenticationtechshu add <boilerplate>
Add a boilerplate to your project.
# Add to default location (./src)
techshu add authentication
# Add to custom path
techshu add authentication --path ./lib
techshu add authentication -p ./app/lib
# Force overwrite existing files
techshu add authentication --force
techshu add authentication -fWhat happens:
- ✅ Downloads all boilerplate files from GitHub
- ✅ Creates directory structure
- ✅ Copies all components, lib files, examples
- ✅ Shows installation instructions
- ✅ Lists required dependencies
Output:
✔ Authentication System added successfully!
Location: ./src/authentication
Install dependencies:
npm install @supabase/supabase-js @supabase/auth-helpers-nextjs
Read the README: ./src/authentication/README.md🎓 Usage Examples
Example 1: Building an LMS
# Add authentication
techshu add authentication
# Add course management
techshu add course-management
# Add progress tracking
techshu add progress-tracking
# Add email service
techshu add email-service
# Install all dependencies
npm install @supabase/supabase-js @supabase/auth-helpers-nextjs react-hook-form zodExample 2: Adding AI Features
# Add RAG system
techshu add rag-system
# Add embedding service
techshu add embedding-service
# Add AI testing
techshu add ai-testing
# Install dependencies
npm install openai @supabase/supabase-js pgvectorExample 3: Building Admin Dashboard
# Add admin dashboard
techshu add admin-dashboard
# Add user management
techshu add admin-user-management
# Add analytics
techshu add analytics-dashboard
# Install dependencies
npm install recharts date-fns🔧 Configuration
Custom Registry URL
You can use a custom registry URL by setting an environment variable:
export TECHSHU_REGISTRY_URL=https://your-custom-registry.com/registry.jsonCustom Base URL
export TECHSHU_BASE_URL=https://your-custom-base.com🐛 Troubleshooting
Issue: "Boilerplate not found"
Cause: The boilerplate ID is incorrect or doesn't exist.
Solution:
# List all boilerplates to find the correct ID
techshu list
# Search for the boilerplate
techshu search <keyword>Issue: "Failed to fetch boilerplates"
Cause: Network issue or GitHub is down.
Solution:
- Check your internet connection
- Try again in a few minutes
- Check GitHub status: https://www.githubstatus.com/
Issue: "Directory already exists"
Cause: The destination directory already has files.
Solution:
# Use --force to overwrite
techshu add authentication --force
# Or choose a different path
techshu add authentication --path ./src/lib/authIssue: "Permission denied"
Cause: No write permission in the destination directory.
Solution:
# Run with sudo (Linux/Mac)
sudo techshu add authentication
# Or change directory permissions
chmod +w ./src📖 API Reference
Registry Format
The CLI fetches boilerplates from a JSON registry:
{
"name": "TechShu Boilerplates",
"version": "1.0.0",
"boilerplates": [
{
"id": "authentication",
"name": "Authentication System",
"category": "Utilities",
"version": "1.0.0",
"description": "Complete authentication system",
"tags": ["auth", "supabase"],
"files": 25,
"components": 8,
"lib": 5,
"path": "authentication",
"dependencies": ["@supabase/supabase-js"]
}
]
}🤝 Contributing
Found a bug? Have a feature request?
- Report bugs: GitHub Issues
- Request features: GitHub Discussions
- Submit PRs: Fork, create branch, submit PR
📝 License
MIT License - See LICENSE for details
👨💻 Author
Indranil Banerjee
Head of AI Transformation, INT TechShu
- 📧 Email: hi@indranil.in
- 💼 LinkedIn: askneelnow
- 🌐 Website: indranil.in
🙏 Acknowledgments
Built with:
- Commander.js - CLI framework
- Chalk - Terminal styling
- Ora - Spinners
- Inquirer - Interactive prompts
- Axios - HTTP client
Created with ❤️ by Indranil Banerjee
© 2025 TechShu - All Rights Reserved