CLI Commands
PPM provides a comprehensive command-line interface for managing polyglot projects. This reference covers all available commands, their options, and usage examples.Global Options
These options are available for all PPM commands:Core Commands
ppm init
Initialize a new PPM project or convert existing project.
PROJECT_NAME- Name of the project (optional, uses current directory name)
Examples:
ppm install
Install project dependencies from project.toml.
PACKAGES...- Specific packages to install (optional)
Examples:
ppm add
Add new dependencies to your project.
PACKAGES...- Packages to add (required)
Examples:
ppm remove
Remove dependencies from your project.
PACKAGES...- Packages to remove (required)
Examples:
ppm run
Execute scripts defined in project.toml or run commands.
SCRIPT|COMMAND- Script name or command to runARGS...- Arguments to pass to the script/command
Examples:
Virtual Environment Commands
ppm venv
Manage Python virtual environments.
Subcommands:
create - Create virtual environment
activate - Show activation command
info - Show environment information
list - List all environments
remove - Remove virtual environment
clean - Clean environment packages
rebuild - Rebuild virtual environment
Information Commands
ppm list
List installed packages.
Examples:
ppm tree
Show dependency tree.
PACKAGE- Show tree for specific package (optional)
Examples:
ppm outdated
Check for outdated dependencies.
ppm info
Show package information.
PACKAGE- Package name to show info for
Maintenance Commands
ppm update
Update dependencies to latest versions.
PACKAGES...- Specific packages to update (optional)
Examples:
ppm audit
Audit dependencies for security vulnerabilities.
ppm clean
Clean package caches and temporary files.
Import/Export Commands
ppm import
Import from existing package files.
FILES...- Files to import from (package.json, requirements.txt, etc.)
Examples:
ppm export
Export dependencies to other formats.
FORMAT- Export format (package.json, requirements.txt, etc.)
Examples:
Configuration Commands
ppm config
Manage PPM configuration.
Subcommands:
get - Get configuration value
set - Set configuration value
unset - Remove configuration value
list - List all configuration
Advanced Commands
ppm lock
Manage lock files.
ppm verify
Verify project integrity.
ppm doctor
Diagnose and fix common issues.
Exit Codes
PPM uses these exit codes:Environment Variables
Control PPM behavior with environment variables:Shell Completion
Enable shell completion for better CLI experience:This reference covers all PPM CLI commands and options. For specific examples and use cases, see the Quickstart Guide and Examples.