Terminal Operations
NikCLI provides comprehensive terminal operations for executing shell commands, managing processes, and integrating with development tools. All commands include AI-powered assistance and enhanced output formatting.Core Terminal Commands
/run [command]
Execute shell commands with enhanced output and AI assistance.
Syntax:
- Real-time output streaming
- Exit code handling
- Error analysis and suggestions
- Command history tracking
- Environment variable support
- Syntax highlighting for command output
- Error highlighting and suggestions
- Performance timing
- Resource usage monitoring
- Exit code interpretation
/sh [command]
Execute shell commands (alias for /run).
Syntax:
/bash [command]
Execute commands specifically in bash shell.
Syntax:
- Forces bash shell execution
- Bash-specific features support
- Script execution capabilities
Development Tool Integration
/npm [args]
Execute npm commands with enhanced package management features.
Syntax:
- Package suggestion and analysis
- Dependency conflict detection
- Security vulnerability scanning
- Performance monitoring
- Cache management
- Automatic package suggestions
- Dependency tree analysis
- Bundle size impact analysis
- License compatibility checking
/yarn [args]
Execute Yarn commands with workspace support.
Syntax:
- Workspace management
- Plug’n’Play support
- Advanced caching
- Parallel execution
/git [args]
Execute Git commands with enhanced status and visualization.
Syntax:
- Enhanced status display
- Branch visualization
- Commit analysis
- Conflict resolution assistance
- Performance optimization
- Colorized diff output
- Branch tree visualization
- Commit message analysis
- Merge conflict highlighting
/docker [args]
Execute Docker commands with container management features.
Syntax:
- Container status monitoring
- Image analysis
- Resource usage tracking
- Security scanning
- Multi-platform support
- Container health monitoring
- Resource usage visualization
- Security vulnerability scanning
- Multi-architecture build support
Process Management
/ps
Show running processes with enhanced information.
Syntax:
- Process tree visualization
- Resource usage monitoring
- Port usage detection
- Parent-child relationships
/kill [pid]
Terminate processes with safety checks.
Syntax:
pid- Process ID to terminatesignal- Signal to send (default: TERM)
- Process ownership verification
- Critical process protection
- Confirmation for system processes
- Graceful shutdown attempts
Project Operations
/install [package]
Intelligent package installation with dependency analysis.
Syntax:
- Package manager detection
- Dependency analysis
- Security scanning
- License checking
- Alternative suggestions
- Detects package manager (npm, yarn, pnpm)
- Suggests related packages
- Checks for security vulnerabilities
- Analyzes bundle size impact
/build
Execute project build with optimization and analysis.
Syntax:
- Build script detection
- Performance monitoring
- Bundle analysis
- Error reporting
- Optimization suggestions
- Bundle size reporting
- Dependency analysis
- Performance metrics
- Optimization suggestions
- Error categorization
/test [args]
Execute tests with enhanced reporting and analysis.
Syntax:
- Test framework detection
- Coverage reporting
- Performance analysis
- Failure analysis
- Continuous monitoring
- Visual test results
- Coverage visualization
- Performance benchmarks
- Failure analysis and suggestions
- Historical comparison
/lint
Execute linting with intelligent error analysis.
Syntax:
- Multi-linter support
- Auto-fix capabilities
- Rule explanation
- Performance impact analysis
- Custom rule suggestions
- Rule explanation and documentation
- Auto-fix suggestions
- Performance impact analysis
- Code quality metrics
Advanced Terminal Features
Command History
Enhanced command history with search and analysis:Environment Management
Manage environment variables and configuration:Command Aliases
Create and manage command aliases:Command Completion
Intelligent command completion and suggestions:Performance Monitoring
Resource Usage
Monitor system resources during command execution:Benchmarking
Benchmark command performance:Security Features
Command Validation
Validate commands for security issues:Sandboxing
Execute commands in sandboxed environments:Integration Examples
CI/CD Pipeline
Development Workflow
Deployment Workflow
Troubleshooting
Common Issues
Command not found:Debug Commands
Best Practices
Command Safety
- Always verify commands before execution
- Use
--dry-runflags when available - Backup important data before destructive operations
- Use version control for all changes
Performance
- Use appropriate command options
- Monitor resource usage
- Optimize build and test commands
- Use caching when available
Security
- Validate command sources
- Use sandboxing for untrusted commands
- Avoid running commands as root
- Regularly audit command history
Organization
- Use consistent command patterns
- Document complex command sequences
- Create aliases for frequently used commands
- Maintain clean command history