NikCLI provides powerful terminal operation capabilities that allow you to execute system commands, manage processes, and interact with your development environment directly from the chat interface. All terminal operations include built-in security policies and approval workflows.
Display running processes with filtering and sorting options.
Copy
# List all processes/ps# List processes by user/ps --user $(whoami)# List processes by name pattern/ps --name node/ps --pattern "npm.*"# List with detailed information/ps --detailed/ps --tree/ps --sort cpu/ps --sort memory
Manage environment variables for the current session.
View Variables
Set Variables
Advanced Management
Copy
# Show all environment variables/env# Show specific variables/env PATH/env NODE_ENV/env API_KEY# Search variables by pattern/env --pattern "npm.*"/env --pattern ".*key.*"
Change the working directory for subsequent commands.
Basic Navigation
Copy
# Change to specific directory/cd /path/to/project/cd ~/Documents/projects/cd ./src/components# Navigate relative to current directory/cd ../cd ../../cd ./nested/folder# Go to home directory/cd ~/cd
Smart Navigation
Copy
# Auto-complete with Tab key/cd src/comp[Tab] → /cd src/components/# Navigate to git root/cd --git-root# Navigate to project root (finds package.json, etc.)/cd --project-root# Navigate to previous directory/cd -
Directory History
Copy
# Show directory history/cd --history# Navigate to recent directory by index/cd --history 2/cd --history 5# Clear directory history/cd --clear-history
# Start development server in background/run --background npm run dev/run --bg docker-compose up/run --daemon pm2 start app.js# Start with custom process name/run --background --name "dev-server" npm run dev/run --bg --name "api-server" node server.js
Monitoring Processes
Copy
# List background processes/process list/process status# Show detailed process information/process info dev-server/process logs api-server# Monitor process resources/process monitor/process top
Process Control
Copy
# Stop background processes/process stop dev-server/process kill api-server# Restart processes/process restart dev-server/process reload api-server# Process health checks/process health/process ping dev-server
Problem: Command execution fails with “command not found”Solutions:
Copy
# Check command availability/which command-name# Check PATH environment/env PATH# Use full path/run /usr/local/bin/node --version# Install missing commands/run which brew && brew install missing-package
Permission Denied
Problem: Command fails due to insufficient permissionsSolutions:
Copy
# Check file permissions/run ls -la file-or-directory# Use appropriate permissions/run chmod +x script.sh# Run with proper user context/run --user $(whoami) command# Use sudo when necessary (with approval)/run sudo command # Requires approval
Process Hanging
Problem: Commands hang or become unresponsiveSolutions:
Copy
# Use timeout/run --timeout 30 slow-command# Run in background with monitoring/run --background --monitor npm run dev# Kill hanging processes/kill --pattern "hanging-process"/process kill --force process-name
Output Buffer Issues
Problem: Large output causes memory or display issuesSolutions:
Copy
# Limit output/run --head 100 command-with-large-output# Stream output/run --stream --buffer-lines 50 npm run build# Save to file/run --save output.txt command
Use /run --help to see all available options for command execution. The help system is context-aware and will show relevant flags based on your current environment and security settings.