sdlc-ai
v1.0.0
Published
CLI tool for SDLC AI Platform - Generate comprehensive SDLC documentation from the command line
Downloads
7
Maintainers
Readme
SDLC AI Platform CLI
Open source command-line interface for generating comprehensive Software Development Life Cycle (SDLC) documentation using AI. Generate business requirements, technical specifications, UX designs, and more directly from your terminal.
🚀 Features
- AI-Powered Documentation - Generate comprehensive SDLC documents using OpenAI GPT-4 or Anthropic Claude
- Real-time Streaming - Watch documents generate in real-time with progress indicators
- Multiple Document Types - Business, Functional, Technical, UX, Architecture, Test Plans, and more
- Anonymous Mode - Use without authentication (10 documents per 24 hours)
- Export Formats - Markdown, JSON, HTML, PDF support
- Project Management - Create, list, and manage multiple projects
- Offline Support - Save documents locally for offline access
Installation
From NPM (Recommended)
# Install globally
npm install -g sdlc-ai
# Or use with npx (no installation)
npx sdlc-ai generate "your project description"
# Or install with yarn
yarn global add sdlc-ai
# Or install with pnpm
pnpm add -g sdlc-aiFrom Source
# Clone the repository
git clone https://github.com/yourusername/sdlc-ai-platform.git
cd sdlc-ai-platform/packages/cli
# Install dependencies
npm install
# Build the TypeScript code
npm run build
# Link for global usage
npm linkQuick Start
# Initialize the CLI
sdlc init
# Authenticate
sdlc auth login
# Generate documentation
sdlc generate "e-commerce platform with payment integration"
# Interactive mode
sdlc interactiveCore Commands
Authentication
sdlc auth login # Authenticate with SDLC platform
sdlc auth logout # Log out
sdlc auth status # Check authentication statusDocument Generation
# Generate all documents
sdlc generate "project description"
# Generate specific types
sdlc generate business "requirements"
sdlc generate technical --file specs.md
sdlc generate meeting --transcript meeting.txt
# With options
sdlc generate "my app" --type business,technical --output ./docsProject Management
sdlc project create "Project Name"
sdlc project list
sdlc project view <id>
sdlc project delete <id>Export
sdlc export <project-id> --format pdf
sdlc export --latest --output ./exportsConfiguration
sdlc config set apiUrl https://api.sdlc.dev
sdlc config list
sdlc config resetCommand Aliases
For faster workflows:
sdlc g→sdlc generatesdlc p→sdlc projectsdlc i→sdlc interactive
Environment Variables
SDLC_API_URL=https://api.sdlc.dev
SDLC_API_KEY=your-api-key
SDLC_OUTPUT_DIR=./sdlc-docs
SDLC_AI_PROVIDER=openai|anthropic|autoConfiguration File
Create .sdlcrc.json in your project:
{
"version": "1.0.0",
"defaultProvider": "anthropic",
"outputDirectory": "./documentation",
"projectDefaults": {
"documentTypes": ["business", "functional", "technical", "ux"],
"exportFormat": "markdown"
}
}Features
- 🚀 Fast Generation - Stream documents in real-time
- 🎯 Interactive Mode - Guided wizard for beginners
- 📁 Multiple Formats - Export as Markdown, JSON, HTML, PDF
- 🔄 CI/CD Ready - Integrate with GitHub Actions, GitLab CI
- 🎨 Customizable - Templates, prompts, and configurations
- 🔐 Secure - API keys stored securely in OS keychain
- 📊 Progress Tracking - Visual indicators and status updates
Development
Prerequisites
- Node.js 18+
- npm or yarn
- OpenAI API key or Anthropic API key (optional for anonymous mode)
Building from Source
# Clone the repository
git clone https://github.com/yourusername/sdlc-ai-platform.git
cd sdlc-ai-platform/packages/cli
# Install dependencies
npm install
# Build the TypeScript code
npm run build
# Link for global usage
npm link
# Run locally
node dist/bin/sdlc.js --helpRunning Tests
npm test # Run test suite (when available)
npm run lint # Run ESLint
npm run type-check # Run TypeScript type checkingArchitecture
The CLI is built with:
- TypeScript - Type-safe development
- Commander.js - Command parsing and structure
- EventSource - Server-sent events for streaming
- Chalk - Terminal styling
- Ora - Elegant terminal spinners
Contributing
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Support
- Documentation: Full Documentation
- Issues: GitHub Issues
- Discussions: GitHub Discussions
License
MIT © 2024 SDLC AI Platform Contributors
See LICENSE file for details.
