DevOS CLI Documentation

Complete guide to using DevOS CLI - your comprehensive development toolkit for modern software projects.

Introduction

DevOS CLI is a powerful command-line interface designed to streamline your development workflow. Built with Python and designed for extensibility, DevOS CLI integrates seamlessly with your existing development tools while providing powerful automation capabilities, intelligent project management, and advanced AI features.

Key Features

  • Project Management: Initialize, configure, and manage projects with templates
  • Session Tracking: Track development time and maintain work sessions
  • Environment Management: Set up and manage development environments
  • AI Integration: Get AI-powered assistance for coding and debugging
  • Workflow Automation: Automate repetitive development tasks
  • Privacy-First Design: All data stored locally, no cloud dependencies

Architecture

DevOS CLI follows a modular architecture with pluggable components:

  • Core Engine: Command processing and workflow orchestration
  • Plugin System: Extensible architecture for custom commands
  • AI Layer: Multiple AI provider integrations
  • Storage Layer: Local data persistence and configuration

50+ Commands

Comprehensive command coverage for all development needs

AI-Powered

Intelligent code analysis and automation capabilities

Open Source

Community-driven and fully customizable

Installation

No PATH Modifications Required

DevOS CLI works without requiring PATH environment variable changes.

Method 1: Python Package

Install via pip for the latest stable version:

# Install via pip
pip install devos-cli
# Verify installation
python -m devos --version
# Run immediately
python -m devos --help

Method 2: Standalone Binary

Download pre-compiled binaries for your platform:

# Windows
curl -L https://github.com/devos/cli/releases/latest/download/devos.exe -o devos.exe
./devos.exe --help
# macOS/Linux
curl -L https://github.com/devos/cli/releases/latest/download/devos -o devos
chmod +x devos
./devos --help

Method 3: Development Installation

Install from source for development:

# Clone repository
git clone https://github.com/johndansu/DevOs_Cli.git
cd DevOs_Cli
# Install in development mode
pip install -e .

System Requirements

Minimum Requirements:

  • • Python 3.8 or higher
  • • 2GB RAM
  • • 100MB disk space
  • • Internet connection (for AI features)

Recommended:

  • • Python 3.10 or higher
  • • 4GB RAM
  • • 500MB disk space
  • • SSD storage for better performance

Quick Start

1

Initialize Your First Project

Create a new project with your preferred template:

python -m devos project init --name my-awesome-project
# Or with a specific template
python -m devos project init --template web-app --name my-app
2

Start a Development Session

Track your work and maintain development context:

python -m devos session start --project my-awesome-project
# Check session status
python -m devos session status
3

Get AI Assistance

Leverage AI for code generation and problem-solving:

python -m devos quick-ai "create a REST API for user management"
# Start interactive chat
python -m devos ai chat --context architecture
4

Configure Your Environment

Set up development environment and preferences:

python -m devos env setup --python 3.10
# Configure AI provider
export DEVOS_AI_PROVIDER=groq

Next Steps

Explore Commands

Browse all available commands and their options.

python -m devos --help

View Examples

Check out practical examples and use cases.

python -m devos examples

Configuration

Environment Variables

DEVOS_AI_PROVIDER

Default AI provider (groq, openai)

DEVOS_CONFIG_PATH

Custom configuration file path

Configuration File

Create a ~/.devos/config.json file:

{
"ai_provider": "groq",
"default_project_type": "web-app",
"session_tracking": true
}

Commands

AI Integration

AI-powered development assistance with multiple providers

python -m devos ai security-scan

Comprehensive security vulnerability scan

Usage Examples:
python -m devos ai security-scan
python -m devos ai security-scan --severity high
python -m devos ai security-scan --export-md security.md
Options:
--severityFilter by severity (low, medium, high, critical)
--export-mdExport results to Markdown file
--modelAI model to use

python -m devos ai analyze

Analyze project with deep AI understanding

Usage Examples:
python -m devos ai analyze "comprehensive project review"
python -m devos ai analyze --focus security
python -m devos ai analyze --export-md analysis.md
Options:
--focusFocus area: security, architecture, performance, all
--scopeAnalysis scope: file, directory, project
--export-mdExport results to Markdown

python -m devos ai architecture-map

Generate comprehensive project architecture map

Usage Examples:
python -m devos ai architecture-map
python -m devos ai architecture-map --patterns mvc
Options:
--patternsArchitecture patterns to analyze
--export-mdExport architecture map

python -m devos ai review

AI-powered code review

Usage Examples:
python -m devos ai review main.py
python -m devos ai review --directory src/
Options:
--directory-dReview entire directory
--strictEnable strict review mode

python -m devos ai refactor

AI-powered code refactoring suggestions

Usage Examples:
python -m devos ai refactor old_function.py
python -m devos ai refactor --suggestions-only
Options:
--suggestions-onlyShow suggestions without applying
--backupCreate backup before refactoring

python -m devos ai debug

AI-powered debugging assistance

Usage Examples:
python -m devos ai debug main.py --line 25
python -m devos ai debug --error traceback.log
Options:
--line-lSpecific line to debug
--errorError file to analyze

python -m devos ai enhance

Enhance codebase with AI-driven improvements

Usage Examples:
python -m devos ai enhance
python -m devos ai enhance --focus performance
Options:
--focusEnhancement focus: performance, security, readability

python -m devos ai generate

Generate code with project context

Usage Examples:
python -m devos ai generate "REST API endpoint"
python -m devos ai generate --template class
Options:
--templateCode template to use
--languageProgramming language

python -m devos ai project-summary

Get comprehensive project summary with AI insights

Usage Examples:
python -m devos ai project-summary
python -m devos ai project-summary --export-md summary.md
Options:
--export-mdExport summary to Markdown
--detailedInclude detailed analysis

python -m devos ai suggest

Get contextual AI suggestions

Usage Examples:
python -m devos ai suggest "optimize this function"
python -m devos ai suggest --context testing
Options:
--contextSuggestion context

python -m devos ai test

AI-powered test generation

Usage Examples:
python -m devos ai test mymodule.py
python -m devos ai test --framework pytest
Options:
--frameworkTest framework: pytest, unittest
--coverageGenerate coverage tests

python -m devos ai explain

AI-powered code explanation

Usage Examples:
python -m devos ai explain function.py
python -m devos ai explain --line 25
Options:
--line-lSpecific line to explain
--detailDetailed explanation

python -m devos ai example

Generate code examples

Usage Examples:
python -m devos ai example myapi.py
python -m devos ai example --usage-patterns
Options:
--usage-patternsInclude usage patterns

python -m devos ai chat

Interactive AI conversation with project context

Usage Examples:
python -m devos ai chat
python -m devos ai chat --context security
python -m devos ai chat --history
Options:
--contextChat context: security, architecture, performance
--historyLoad previous chat history

python -m devos ai-fast

Fast AI assistance using Groq

Usage Examples:
python -m devos ai-fast "review this code"
python -m devos ai-fast explain function.py
Options:
--modelGroq model to use
--quickSkip deep analysis

python -m devos ai-quick

Ultra-fast AI assistance without deep project analysis

Usage Examples:
python -m devos ai-quick "create a function"
python -m devos ai-quick --no-context
Options:
--no-contextSkip project context

python -m devos quick-ai

Ultra-fast AI assistance without deep project analysis (alias for ai-quick)

Usage Examples:
python -m devos quick-ai "create a function"
python -m devos quick-ai --no-context
Options:
--no-contextSkip project context

python -m devos ai-interactive-chat

Start interactive AI chat with project context

Usage Examples:
python -m devos ai-interactive-chat
python -m devos ai-interactive-chat --context security
Options:
--contextChat context: security, architecture, performance
--historyLoad previous chat history
--saveSave chat session

python -m devos groq

Groq-specific fast AI commands

Usage Examples:
python -m devos groq "review this code" main.py
python -m devos groq explain function.py
python -m devos groq chat
Options:
--model-mGroq model to use
--tempTemperature (0.0-1.0)
--max-tokensMaximum tokens
--file-fInclude file context
--quickSkip deep analysis

python -m devos ai-config

Manage AI configuration and providers

Usage Examples:
python -m devos ai-config show
python -m devos ai-config set-api-key groq
python -m devos ai-config test-connection groq
Options:
show-configShow current AI configuration
set-api-keySet API key for provider
list-providersList available AI providers
test-connectionTest provider connection
clear-cacheClear AI response cache
usage-statsShow AI usage statistics

Quick Start

Shortcuts for the most common operations

python -m devos now

Quick start tracking current project

Usage Examples:
python -m devos now

python -m devos done

Quick stop current tracking session

Usage Examples:
python -m devos done

python -m devos status

Quick status overview

Usage Examples:
python -m devos status

python -m devos today

Show today's tracking summary

Usage Examples:
python -m devos today

python -m devos setup

Quick setup wizard for new users

Usage Examples:
python -m devos setup

Project Management

Initialize and manage projects with full lifecycle support

python -m devos init

Initialize a new project with templates

Usage Examples:
python -m devos init
python -m devos init python-api
python -m devos init --name my-project --language python --path ./my-project
Options:
--name-nProject name
--path-pProject path (default: current directory)
--language-lProgramming language
--interactive-iInteractive mode

python -m devos create

Initialize a new project with templates

Usage Examples:
python -m devos create my-project
python -m devos create --template python-api
Options:
--templateProject template to use
--nameProject name

python -m devos new

Initialize a new project with templates

Usage Examples:
python -m devos new my-project
python -m devos new --template python-api
Options:
--templateProject template to use
--nameProject name

python -m devos projects

Quick list of all projects

Usage Examples:
python -m devos projects
python -m devos projects --active
Options:
--activeShow only active projects
--recentShow recent projects

python -m devos project add

Add an existing project to DevOS management

Usage Examples:
python -m devos project add my-project
python -m devos project add --path ./my-project --language python
python -m devos project add --type web --description "My web app"
Options:
--path-pProject path
--language-lProgramming language
--type-tProject type (web, cli, api, etc.)
--description-dProject description
--tagsProject tags (comma-separated)

python -m devos project list

List all managed projects

Usage Examples:
python -m devos project list
python -m devos project list --type web
python -m devos project list --status active
python -m devos project list --format json
Options:
--type-tFilter by project type
--status-sFilter by status
--format-fOutput format: table or json

Session Tracking

Track and manage development sessions

python -m devos track start

Start a new work session

Usage Examples:
python -m devos track start
python -m devos track start --notes "Working on authentication"
python -m devos track start --project my-project
Options:
--project-pProject name or path
--notes-nSession notes
--tags-tSession tags

python -m devos track stop

Stop the current work session

Usage Examples:
python -m devos track stop
python -m devos track stop --notes "Completed auth module"
Options:
--notes-nSession notes

python -m devos track status

Show current tracking status and recent sessions

Usage Examples:
python -m devos track status
python -m devos track status --project my-project
python -m devos track status --limit 10
Options:
--project-pFilter by project name or path
--limit-lNumber of sessions to show (default: 20)

python -m devos track list

List tracking sessions

Usage Examples:
python -m devos track list
python -m devos track list --project my-project
python -m devos track list --format json
python -m devos track list --limit 50
Options:
--project-pFilter by project name or path
--limit-lNumber of sessions to show (default: 50)
--format-fOutput format: table or json (default: table)

Environment Variables

Manage encrypted environment variables

python -m devos env set

Set an environment variable (encrypted)

Usage Examples:
python -m devos env set DATABASE_URL postgresql://...
python -m devos env set API_KEY your-api-key --encrypt
python -m devos env set DEBUG true --project my-project
Options:
--encrypt-eEncrypt the variable value
--project-pSet for specific project
--global-gSet globally for all projects

python -m devos env get

Get an environment variable value

Usage Examples:
python -m devos env get DATABASE_URL
python -m devos env get API_KEY --decrypt
python -m devos env get --all
Options:
--decrypt-dDecrypt encrypted variable
--all-aShow all environment variables
--project-pGet from specific project

python -m devos env list

List all environment variables

Usage Examples:
python -m devos env list
python -m devos env list --project my-project
python -m devos env list --encrypted-only
Options:
--project-pList for specific project
--encrypted-onlyShow only encrypted variables
--formatOutput format: table or json

python -m devos env remove

Remove an environment variable

Usage Examples:
python -m devos env remove DATABASE_URL
python -m devos env remove API_KEY --project my-project
Options:
--project-pRemove from specific project
--global-gRemove global variable

python -m devos env export

Export environment variables to file

Usage Examples:
python -m devos env export .env
python -m devos env export --format json
python -m devos env export --no-decrypt
Options:
--formatExport format: env, json, yaml
--no-decryptDon't decrypt encrypted variables
--project-pExport from specific project

python -m devos env import

Import environment variables from file

Usage Examples:
python -m devos env import .env
python -m devos env import config.json --format json
python -m devos env import --encrypt-all
Options:
--formatImport format: env, json, yaml
--encrypt-allEncrypt all imported variables
--mergeMerge with existing variables

python -m devos environment

Environment variable management (alias for env)

Usage Examples:
python -m devos environment set KEY value
python -m devos environment list

Configuration

Manage DevOS settings and preferences

python -m devos config show

Show current configuration

Usage Examples:
python -m devos config show
python -m devos config show --global
Options:
--globalShow global configuration

python -m devos config set

Set a configuration value

Usage Examples:
python -m devos config set default_language python
python -m devos config set tracking.auto_git true --global
Options:
--globalSet global configuration

python -m devos settings

Manage DevOS settings (alias for config)

Usage Examples:
python -m devos settings show
python -m devos settings set key value

Interactive Mode

Guided workflows and interactive setup

python -m devos interactive

Start interactive mode with guided workflows

Usage Examples:
python -m devos interactive
python -m devos i
python -m devos wizard

python -m devos i

Start interactive mode (alias for interactive)

Usage Examples:
python -m devos i

python -m devos wizard

Start interactive mode with guided workflows

Usage Examples:
python -m devos wizard

python -m devos setup

Quick setup wizard for new users

Usage Examples:
python -m devos setup

Shell Completion

Command-line auto-completion setup

python -m devos completion

Generate or install shell completion

Usage Examples:
python -m devos completion bash
python -m devos completion bash --install
Options:
--installInstall completion to shell config

python -m devos setup-completion

Setup shell completion interactively

Usage Examples:
python -m devos setup-completion

python -m devos shells

List available shells for completion

Usage Examples:
python -m devos shells

Utility Commands

Additional utility and helper commands

python -m devos recent

Show recent activity or run recent command

Usage Examples:
python -m devos recent
python -m devos recent --run
python -m devos recent --limit 5
Options:
--runRun the most recent command
--limitNumber of recent items to show

python -m devos r

Show recent activity (alias for recent)

Usage Examples:
python -m devos r
python -m devos r --run

python -m devos report

Generate reports and analytics

Usage Examples:
python -m devos report
python -m devos report --export-md report.md
python -m devos report --period weekly
Options:
--export-mdExport report to Markdown
--periodReport period: daily, weekly, monthly

python -m devos stats

Show statistics and analytics

Usage Examples:
python -m devos stats
python -m devos stats --project my-project
Options:
--projectShow stats for specific project

python -m devos time

Time tracking and reporting

Usage Examples:
python -m devos time
python -m devos time --today
python -m devos time --export
Options:
--todayShow today's time
--exportExport time data

python -m devos test

Run tests and test-related commands

Usage Examples:
python -m devos test
python -m devos test --coverage
python -m devos test --watch
Options:
--coverageRun with coverage
--watchWatch mode for tests

python -m devos t

Run tests (alias for test)

Usage Examples:
python -m devos t
python -m devos t --coverage

python -m devos c

Configuration commands (alias for config)

Usage Examples:
python -m devos c show
python -m devos c set key value

python -m devos e

Environment commands (alias for env)

Usage Examples:
python -m devos e list
python -m devos e set KEY value

python -m devos pm

Project management (alias for project)

Usage Examples:
python -m devos pm list
python -m devos pm add my-project

python -m devos proj

Project management (alias for project)

Usage Examples:
python -m devos proj list
python -m devos proj add my-project

Advanced Usage

Custom Templates

Create and use custom project templates for consistent project structure.

# Create custom template
python -m devos template create --name my-template
# Use custom template
python -m devos project init --template my-template

Workflow Automation

Automate repetitive tasks with custom workflows.

# Create workflow
python -m devos workflow create --name deploy
# Execute workflow
python -m devos workflow run deploy

Integration with IDEs

Seamlessly integrate DevOS CLI with your favorite IDE.

VS Code

Install the DevOS extension for integrated commands.

PyCharm

Configure external tools for quick access to DevOS commands.

Vim/Neovim

Use the DevOS plugin for enhanced productivity.

API Reference

Core API

devos.init(project_type, options)

Initialize a new project with specified type and options.

devos.session.start(options)

Start a new development session.

devos.ai.query(prompt, options)

Query AI assistant with context.

Configuration API

devos.config.get(key)

Get configuration value.

devos.config.set(key, value)

Set configuration value.

Frequently Asked Questions

How do I update DevOS CLI?

Use pip install --upgrade devos-cli to update to the latest version.

Can I use DevOS CLI without internet?

Yes, most core features work offline. AI features require internet connectivity.

How do I contribute to DevOS CLI?

Check the GitHub repository for contribution guidelines and open issues.

Is DevOS CLI free to use?

Yes, DevOS CLI is open source and completely free to use. Some AI features may require API keys from third-party providers.

What Python versions are supported?

DevOS CLI supports Python 3.8 and above. We recommend using the latest stable Python version.

Troubleshooting

Common Issues

Command not found

Use python -m devos instead of just devos

Permission denied

Check file permissions and ensure Python has access to create files

AI provider errors

Verify API keys are set correctly in environment variables

Getting Help

  • • Use python -m devos --help for command help
  • • Check the GitHub repository for issues
  • • Join our community Discord for support