CLI Overview
The PROJAX CLI (prx) is a full-featured command-line tool for managing local development projects. It provides commands for adding, listing, scanning, and running projects, along with advanced features like background execution and port conflict resolution.
Prefer a visual interface? Try our native desktop app with prx web. It provides a beautiful GUI for managing all your projects without touching the command line! Learn more about the Desktop app →
Installation
The CLI is installed globally when you install PROJAX:
npm install -g projax
After installation, the prx command is available globally.
Quick Reference
Project Management
prx add [path]- Add a project to the dashboardprx list- List all tracked projectsprx scan [project]- Scan projects for tests and portsprx remove <project>- Remove a projectprx rename <project> <newName>- Rename a project
Navigation
prx pwd [project]- Get project pathprx cd [project]- Change to project directory
Script Execution
prx <project> [script]- Run a script (intelligent selection)prx run <project> <script>- Run a script explicitlyprx scripts [project]- List available scripts
Background Processes
prx ps- List running background processesprx stop <pid>- Stop a background process
Interfaces
prx web- Start Desktop web interface (recommended)prx api- Manage API serverprx prxi/prx i- Launch interactive terminal UI (beta)
Advanced
prx scan-ports [project]- Scan for port information
Features
Intelligent Script Selection
When you run prx <project> without specifying a script, the CLI automatically selects:
- If project has "start" but no "dev" → runs "start"
- If project has "dev" but no "start" → runs "dev"
- Otherwise → shows interactive menu
Background Execution
Run scripts in the background with minimal logging:
- Use flags:
-M,--background,-b, or--daemon - Output saved to
~/.projax/logs/ - Process tracked with PID
- Continue using terminal immediately
Port Conflict Resolution
Automatically detects and resolves port conflicts:
- Proactive detection before script execution
- Reactive detection from error messages
- Interactive or automatic resolution (
--forceflag)
Multi-Project Type Support
Supports multiple project types:
- Node.js: npm, yarn, pnpm
- Python: Poetry, pyproject.toml
- Rust: Cargo commands
- Go: go commands or Makefile
- Makefile: Makefile targets
Command Structure
Most commands support:
- Project identification by ID or name
- Interactive mode when project not specified
- Help with
--helpflag
Next Steps
- Commands Reference - Detailed command documentation
- Advanced Features - Learn about intelligent features
- Shell Integration - Integrate with your shell