CLI Reference
All commands are run using the plift wrapper script.
Stack Management
| Command |
Description |
plift init |
Complete initialization (build, generate, start everything) |
plift start-stack |
Start all services, tools, and apps |
plift stop-stack |
Stop everything |
plift status |
Show running containers |
plift clean |
Stop and remove all containers and volumes |
Base Container
| Command |
Description |
plift build-salt |
Build the Salt container |
plift start-base |
Start base containers (Salt) |
plift stop-base |
Stop base containers |
plift restart-base |
Restart base container |
Services
| Command |
Description |
plift start-services |
Start all enabled services |
plift stop-services |
Stop services |
plift start-services-fg |
Start in foreground |
plift list-services |
List enabled services |
plift list-available |
List all available services |
| Command |
Description |
plift start-tools |
Start monitoring/admin tools |
plift stop-tools |
Stop tools |
plift start-tools-fg |
Start tools in foreground |
plift build-tools |
Build tool containers |
plift list-tools |
List enabled tools |
Apps
| Command |
Description |
plift start-apps |
Start all apps |
plift stop-apps |
Stop apps |
plift build-apps |
Build app containers |
plift build-apps a=app_name |
Build specific app |
Configuration
| Command |
Description |
plift generate-all |
Generate all configs |
plift generate-base |
Generate base configs (initial setup) |
plift generate c=default |
Generate default configs |
plift generate c=services |
Generate service configs |
plift generate c=tools |
Generate tool configs |
plift generate c=apps |
Generate app configs |
plift generate c=grafana |
Generate Grafana configs |
plift get-config |
View configuration values |
plift get-config VAL=apps OUT=yaml |
Get specific config |
Database Management
| Command |
Description |
plift migrate-databases |
Run database migrations for all apps |
SSL Certificates
| Command |
Description |
plift mkcert |
Generate SSL certificates for local domain |
Creates wildcard certificate *.plift.local used by HAProxy for HTTPS.
Utilities
| Command |
Description |
plift logs c=container_name |
View container logs |
plift attach c=container_name |
Attach to container (default user) |
plift attach-root c=container_name |
Attach as root user |
plift prune |
Clean up Docker resources |
plift generate-traffic |
Generate test traffic to apps |
plift generate-traffic requests=50 |
Generate custom number of requests |
plift add-laravel a=app_name |
Create new Laravel project |
Help
| Command |
Description |
plift help |
Show all available commands |