DevEx LogoMy App
CLI Reference

CLI Reference

Complete reference for all DevEx CLI commands, flags, and options

DevEx CLI Reference

The DevEx CLI provides a comprehensive suite of commands for managing your development environment. This reference covers all available commands, their options, and usage patterns.

DevEx follows the Unix philosophy of composable tools. Each command has a specific purpose and can be combined with others for powerful workflows.

Command Overview

Basic Usage

Getting Started

# Start with the interactive setup
devex setup

# Or install everything with defaults
devex install

# Check what's installed
devex status

Common Workflows

Initial Setup: Use devex setup for first-time configuration

Add Tools: Use devex add <application> to install additional software

Configure: Use devex config to customize your environment

Maintain: Use devex status and devex recovery for ongoing maintenance

Global Flags

All DevEx commands support these global flags:

FlagShortDescriptionDefault
--verbose-vEnable verbose outputfalse
--dry-run-nShow what would be done without executingfalse
--config-dirOverride default config directory~/.local/share/devex/config
--help-hShow command help

Examples

# Verbose installation
devex install --verbose

# Dry-run to see what would be installed
devex add docker --dry-run

# Use custom config directory
devex install --config-dir ./custom-configs

Environment Variables

DevEx recognizes these environment variables:

VariableDescriptionDefault
DEVEX_DEBUGEnable debug loggingfalse
DEVEX_CONFIG_DIROverride config directory~/.local/share/devex/config
DEVEX_NO_COLORDisable colored outputfalse
DEVEX_CACHE_DIROverride cache directory~/.cache/devex

Exit Codes

DevEx commands return standard exit codes:

  • 0: Success
  • 1: General error
  • 2: Invalid arguments or options
  • 3: Configuration error
  • 4: Installation error
  • 5: Platform not supported

Output Formats

Many commands support different output formats:

devex status
# ✓ git (installed via apt)
# ✓ docker (installed via apt)
# ✗ node (not installed)

Performance Tips

  • Use --dry-run to preview changes before execution
  • Enable --verbose for detailed operation logging
  • Use specific commands instead of running full install for single applications
  • Set DEVEX_CACHE_DIR to a fast storage location for better performance

Security Considerations

DevEx includes several security features:

  • Input validation: All user inputs are validated and sanitized
  • Privilege escalation: Only prompts for sudo when necessary
  • GPG verification: Package signatures are verified when available
  • Audit trail: All operations are logged for review

DevEx may require administrator privileges for system-level installations. Always review --dry-run output before executing privileged operations.

Getting Help

For detailed help on any command:

# Command-specific help
devex <command> --help

# Interactive help system
devex help

# Version information
devex --version

Next Steps

On this page