PAMPA now supports working with multiple projects using explicit aliases for greater clarity.
All main commands now support:
--project <path>- Clear alias to specify the project directory--directory <path>- Alternative alias for the project directory
# Traditional way
pampa index /path/to/project
# New clearer options
pampa index --project /path/to/project
pampa index --directory /path/to/project# Traditional way
pampa search "create policy" /path/to/project
# New clearer options
pampa search "create policy" --project /path/to/project
pampa search "create policy" --directory /path/to/project# Traditional way
pampa update /path/to/project
# New clearer options
pampa update --project /path/to/project
pampa update --directory /path/to/project# Traditional way
pampa watch /path/to/project
# New clearer options
pampa watch --project /path/to/project
pampa watch --directory /path/to/project# Index the Laravel project
pampa index --project /path/to/laravel-project --provider transformers
# Search for payment-related functions
pampa search "payment processing" --project /path/to/laravel-project --lang php
# Search in specific services
pampa search "create policy" --project /path/to/laravel-project --path_glob "app/Services/**"
# Update after changes
pampa update --project /path/to/laravel-project# Index React project
pampa index --directory /path/to/react-app --provider openai
# Search components
pampa search "user authentication" --directory /path/to/react-app --lang tsx
# Watch changes during development
pampa watch --directory /path/to/react-app --debounce 1000✅ Fully Compatible: Traditional ways continue to work
✅ Priority: --project > --directory > positional argument > current directory
✅ MCP Server: Already supported the path parameter in all tools
Now it's much clearer and more explicit to work with projects in different locations:
# ❌ Before: Not so clear
pampa search "function" /some/long/path/to/project
# ✅ Now: Much clearer
pampa search "function" --project /some/long/path/to/projectThis improvement makes PAMPA more intuitive for developers working with multiple projects simultaneously.