Commands Reference
Complete reference for all StackMark CLI commands.
Stack Management
stackmark add [name]
Register a Docker Compose project with StackMark.
| Option | Description |
|---|---|
--path, -p |
Path to docker-compose.yml (default: current directory) |
--domain, -d |
Local domain for /etc/hosts (e.g., myapp.local) |
stackmark remove <name>
Unregister a stack from StackMark (does not delete files).
stackmark list
List all registered stacks with their status and ports.
Stack Operations
stackmark start [name]
Start a stack with automatic port management.
| Option | Description |
|---|---|
--no-override |
Use original ports from docker-compose.yml (skip port remapping) |
stackmark stop [name]
Stop a running stack.
stackmark restart [name]
Restart a stack (stop + start).
| Option | Description |
|---|---|
--no-override |
Use original ports from docker-compose.yml (skip port remapping) |
stackmark status [name]
Show detailed status of a stack and its containers.
| Option | Description |
|---|---|
-a, --all |
Show all stacks (ignore auto-detection) |
Logs & Monitoring
stackmark logs [name]
View logs from stack containers.
| Option | Description |
|---|---|
-f, --follow |
Follow log output in real-time |
stackmark dash
Open interactive TUI dashboard with real-time updates.
stackmark web
Launch a local web dashboard in your browser with real-time updates.
| Option | Description |
|---|---|
-p, --port <port> |
Port to run the server on (default: 3456) |
-o, --open |
Open browser automatically |
Quick Access
stackmark open [name]
Open stack's main URL in your default browser.
Project Templates
stackmark init
Generate a docker-compose.yml with interactive prompts.
See Templates for available templates and services.
Hosts Management
stackmark hosts sync
Sync hosts with running stacks (requires sudo).
Autostart Management
Control whether containers automatically start on system boot.
stackmark autostart disable [name]
Disable automatic container startup on system boot. This prevents your development containers from consuming resources when you restart your computer.
stackmark autostart enable [name]
Enable automatic container startup on system boot. Containers will restart automatically when your system boots.
stackmark list and stackmark status commands. New stacks created with stackmark init have autostart disabled by default.
Global Options
| Option | Description |
|---|---|
--help, -h |
Show help for any command |
--version, -v |
Show StackMark version |