Complete CLI Commands Reference
This is the comprehensive reference for all Supernal Coding CLI commands. Each command includes syntax, options, examples, and use cases.
CLI Command Flow Overviewβ
πΊοΈ Command Decision Treeβ
CLI Command Decision Flow
Interactive flowchart showing how to choose the right Supernal Coding command based on your current needs and project state.
π Requirements Lifecycleβ
Requirements State Management
State diagram showing the complete lifecycle of requirements from creation to completion, including validation gates and quality checkpoints.
π§ͺ Testing Strategy Flowβ
Testing Execution Strategy
Comprehensive testing workflow showing different test execution paths, result handling, and quality gate validation for continuous integration.
Command Categoriesβ
- Project Management
- Requirements
- Testing
- Git Operations
- Dashboard & Monitoring
- Compliance
- Documentation
- Development Tools
Project Managementβ
sc initβ
Initialize a repository with Supernal Coding capabilities.
Syntax:
sc init [options] [directory]
Options:
--minimal- Install minimal preset (just essentials)--standard- Install standard preset (recommended)--full- Install full preset (complete ecosystem)--development- Install development preset (for contributors)--interactive- Interactive setup mode--dry-run- Show what would be installed without doing it--overwrite- Overwrite existing files without confirmation--skip-upgrade-check- Skip checking for package upgrades--merge- Merge with existing installation--yes- Skip confirmations and use defaults--name <name>- Project name--alias <alias>- Command alias-t, --template <name>- Template to use--force- Overwrite existing files-v, --verbose- Verbose output
Examples:
# Standard setup (recommended)
sc init --standard
# Development setup with dry run
sc init --development --dry-run
# Interactive setup
sc init --interactive
# Initialize specific directory
sc init --standard ./my-project
# Custom project name
sc init --name="My Compliant App" --standard
Use Cases:
- Setting up new projects
- Adding Supernal Coding to existing repositories
- Configuring development environments
- Template-based project creation
sc syncβ
Synchronize local repository state with global sc installation.
Syntax:
sc sync [action] [options]
Actions:
check- Check version sync between local repo and global sc (default)report- Same as check - shows version comparisonupdate- Update global sc to match local repository version
Options:
--force- Force synchronization-v, --verbose- Verbose output
Examples:
# Check sync status
sc sync
sc sync check
# Update global installation
sc sync update --force
# Verbose sync report
sc sync report --verbose
Use Cases:
- Keeping global CLI in sync with project requirements
- Troubleshooting version mismatches
- Team environment consistency
Requirementsβ
sc req newβ
Create a new requirement.
Syntax:
sc req new "requirement description" [options]
Options:
--priority <level>- Priority: critical, high, medium, low--epic <name>- Epic/feature group name--compliance <frameworks>- Compliance frameworks (comma-separated)--assignee <name>- Assigned developer--due-date <date>- Due date (YYYY-MM-DD)--tags <tags>- Tags (comma-separated)-v, --verbose- Verbose output
Examples:
# Basic requirement
sc req new "User authentication system"
# High priority with epic
sc req new "Login with OAuth" --priority=high --epic=auth
# With compliance mapping
sc req new "Data encryption" --compliance="iso-13485,fda-21-cfr"
# Complete specification
sc req new "User profile management" \
--priority=medium \
--epic=user-management \
--assignee="john.doe" \
--due-date="2024-12-31" \
--tags="frontend,api"
sc req listβ
List requirements with filtering options.
Syntax:
sc req list [options]
Options:
--status <status>- Filter by status (pending, in-progress, done, blocked)--priority <level>- Filter by priority--epic <name>- Filter by epic--assignee <name>- Filter by assignee--compliance <framework>- Filter by compliance framework--phase <phase>- Filter by development phase--format <format>- Output format (table, json, markdown)--limit <number>- Limit number of results
Examples:
# List all requirements
sc req list
# High priority requirements
sc req list --priority=high
# Requirements in progress
sc req list --status=in-progress
# Authentication epic requirements
sc req list --epic=auth
# JSON output for automation
sc req list --format=json --limit=10
sc req showβ
Show detailed information about a requirement.
Syntax:
sc req show <req-id> [options]
Options:
--format <format>- Output format (detailed, json, markdown)--include-tests- Include related test information--include-commits- Include related git commits--include-compliance- Include compliance mapping details
Examples:
# Basic requirement details
sc req show REQ-001
# Detailed view with tests
sc req show REQ-001 --include-tests
# JSON format for automation
sc req show REQ-001 --format=json
# Complete information
sc req show REQ-001 --include-tests --include-commits --include-compliance
sc req updateβ
Update requirement properties.
Syntax:
sc req update <req-id> [options]
Options:
--status <status>- Update status--priority <level>- Update priority--assignee <name>- Update assignee--due-date <date>- Update due date--description <text>- Update description--add-tags <tags>- Add tags (comma-separated)--remove-tags <tags>- Remove tags (comma-separated)--add-compliance <frameworks>- Add compliance frameworks--notes <text>- Add implementation notes
Examples:
# Mark as done
sc req update REQ-001 --status=done
# Change priority and assignee
sc req update REQ-001 --priority=critical --assignee="jane.smith"
# Add implementation notes
sc req update REQ-001 --notes="Implemented using JWT tokens"
# Add compliance framework
sc req update REQ-001 --add-compliance="sox,pci-dss"
sc req start-workβ
Start working on a requirement (creates feature branch).
Syntax:
sc req start-work <req-id> [options]
Options:
--branch-name <name>- Custom branch name--no-branch- Don't create git branch--assign-to-me- Assign requirement to current user-v, --verbose- Verbose output
Examples:
# Start work (creates feature/req-001-description branch)
sc req start-work REQ-001
# Custom branch name
sc req start-work REQ-001 --branch-name="feature/custom-auth"
# Start work without git branch
sc req start-work REQ-001 --no-branch
sc req validateβ
Validate requirement completion and quality.
Syntax:
sc req validate <req-id> [options]
Options:
--include-tests- Validate test coverage--include-docs- Validate documentation--include-compliance- Validate compliance requirements--strict- Strict validation mode--fix- Auto-fix issues where possible
Examples:
# Basic validation
sc req validate REQ-001
# Complete validation
sc req validate REQ-001 --include-tests --include-docs --include-compliance
# Strict mode with auto-fix
sc req validate REQ-001 --strict --fix
Testingβ
sc testβ
Testing guidance and execution system.
Syntax:
sc test [action] [target] [options]
Actions:
guide- Show testing guidancesetup- Setup testing environmentvalidate- Validate test qualityplan- Generate test plan for requirementrun- Run tests (unit, e2e, integration)doctor- Diagnose testing issuesmap- Generate test mappingstructure- Show test structure guidance
Options:
--framework <framework>- Testing framework (playwright, jest, cypress)--watch- Watch mode--coverage- Generate coverage report--fix- Auto-fix test issues where possible-v, --verbose- Verbose output
Examples:
# Show testing guidance
sc test guide
# Setup Playwright testing
sc test setup --framework playwright
# Validate test quality
sc test validate
# Generate test plan for requirement
sc test plan REQ-003
# Run unit tests with coverage
sc test run unit --coverage
# Diagnose test issues
sc test doctor
# Generate test mapping
sc test map
# Show test structure guidance
sc test structure
sc test runβ
Execute specific test suites.
Syntax:
sc test run [type] [options]
Types:
unit- Unit testsintegration- Integration testse2e- End-to-end testsall- All test typesreq:<req-id>- Tests for specific requirement
Options:
--watch- Watch mode--coverage- Generate coverage report--reporter <reporter>- Test reporter (json, html, junit)--parallel- Run tests in parallel--timeout <ms>- Test timeout--grep <pattern>- Run tests matching pattern
Examples:
# Run all unit tests
sc test run unit
# Run with coverage
sc test run unit --coverage
# Run specific requirement tests
sc test run req:REQ-001
# Watch mode for development
sc test run unit --watch
# Parallel execution with custom timeout
sc test run e2e --parallel --timeout=30000
Git Operationsβ
sc git-smartβ
Intelligent git operations with validation.
Syntax:
sc git-smart <operation> [options]
Operations:
branch- Create feature branchmerge- Safe merge with validationcheck-branch- Validate branch namingcheck-context- Check git contextdeploy- Deploy with validation
Options:
--req <req-id>- Associate with requirement--push- Push after merge--delete-local- Delete local branch after merge--no-verify- Skip git hooks-v, --verbose- Verbose output
Examples:
# Create feature branch for requirement
sc git-smart branch --req=REQ-001
# Safe merge with cleanup
sc git-smart merge --push --delete-local
# Check branch naming
sc git-smart check-branch
# Deploy with validation
sc git-smart deploy --verbose
sc git-hooksβ
Manage git hooks for validation.
Syntax:
sc git-hooks <action> [options]
Actions:
install- Install git hooksuninstall- Remove git hooksstatus- Show hook statustest- Test hook functionalityupdate- Update hooks to latest version
Options:
--force- Force installation/removal--backup- Backup existing hooks-v, --verbose- Verbose output
Examples:
# Install git hooks
sc git-hooks install
# Check hook status
sc git-hooks status
# Test hook functionality
sc git-hooks test
# Update to latest version
sc git-hooks update --force
Dashboard & Monitoringβ
sc dashboardβ
Launch the Supernal Coding dashboard.
Syntax:
sc dashboard [options]
Options:
--port <port>- Port number (default: 3001)--host <host>- Host address (default: localhost)--open- Open browser automatically--no-open- Don't open browser--dev- Development mode--build- Build for production
Examples:
# Launch dashboard
sc dashboard
# Custom port
sc dashboard --port=3002
# Development mode
sc dashboard --dev --open
# Build for production
sc dashboard --build
sc statusβ
Show comprehensive project status.
Syntax:
sc status [options]
Options:
--format <format>- Output format (summary, detailed, json)--include-git- Include git status--include-tests- Include test results--include-compliance- Include compliance status--include-requirements- Include requirements summary
Examples:
# Basic status
sc status
# Detailed status
sc status --format=detailed
# Complete status
sc status --include-git --include-tests --include-compliance
# JSON for automation
sc status --format=json
Complianceβ
sc complianceβ
Manage compliance frameworks and validation.
Syntax:
sc compliance <action> [options]
Actions:
list- List available frameworksadd- Add compliance frameworkremove- Remove compliance frameworkvalidate- Validate compliancereport- Generate compliance reportmap- Map requirements to compliance
Options:
--framework <name>- Specific framework--output <file>- Output file for reports--format <format>- Report format (html, pdf, json)--strict- Strict validation mode
Examples:
# List available frameworks
sc compliance list
# Add ISO 13485 framework
sc compliance add --framework=iso-13485
# Generate compliance report
sc compliance report --format=html --output=compliance-report.html
# Validate specific framework
sc compliance validate --framework=fda-21-cfr --strict
Documentationβ
sc docsβ
Generate and manage documentation.
Syntax:
sc docs <action> [options]
Actions:
generate- Generate documentationserve- Serve documentation locallybuild- Build documentation for productionvalidate- Validate documentation qualityupdate- Update documentation
Options:
--type <type>- Documentation type (api, user, compliance)--output <dir>- Output directory--format <format>- Output format (html, pdf, markdown)--include-requirements- Include requirements documentation--include-tests- Include test documentation
Examples:
# Generate all documentation
sc docs generate
# Serve documentation locally
sc docs serve --port=3000
# Build for production
sc docs build --output=./dist/docs
# Generate API documentation
sc docs generate --type=api --format=html
Development Toolsβ
sc devβ
Development utilities and tools.
Syntax:
sc dev <tool> [options]
Tools:
watch- Watch for changes and auto-rebuildlint- Run linting checksformat- Format codeanalyze- Analyze code qualityprofile- Performance profiling
Options:
--fix- Auto-fix issues where possible--watch- Watch mode--config <file>- Configuration file-v, --verbose- Verbose output
Examples:
# Watch for changes
sc dev watch
# Lint with auto-fix
sc dev lint --fix
# Format code
sc dev format
# Analyze code quality
sc dev analyze --verbose
sc helpβ
Show help information.
Syntax:
sc help [command]
Examples:
# General help
sc help
# Command-specific help
sc help req
sc help test
sc help git-smart
# Show all available commands
sc help --all
Global Optionsβ
These options work with most commands:
-v, --verbose- Verbose output--dry-run- Show what would happen without executing--config <file>- Use specific configuration file--no-color- Disable colored output--quiet- Suppress non-essential output--help- Show command help
Environment Variablesβ
Configure Supernal Coding behavior:
# Set default configuration
export SC_CONFIG_PATH="/path/to/config"
# Enable debug mode
export SC_DEBUG=true
# Set default compliance frameworks
export SC_COMPLIANCE_FRAMEWORKS="iso-13485,fda-21-cfr"
# Configure dashboard port
export SC_DASHBOARD_PORT=3001
Configuration Filesβ
Supernal Coding uses several configuration files:
supernal-code.config.toml- Main configuration.supernal-coding/config.json- Project-specific settingspackage.json- NPM integration.gitignore- Enhanced git ignore patterns
Exit Codesβ
Supernal Coding commands return standard exit codes:
0- Success1- General error2- Configuration error3- Validation error4- Network error5- Permission error
Next Stepsβ
- Workflow Guide - Complete development workflow
- Dashboard Guide - Visual interface overview
- Compliance Guide - Framework implementation
- Examples - Real-world usage examples