CLI Reference
The Miren CLI (miren) provides commands for managing applications and deployments.
Core Commands
Deployment
miren deploy- Deploy the current projectmiren deploy --analyze- Analyze the project without deploying (dry-run)miren init- Initialize a new application
Deploy Options
| Flag | Description |
|---|---|
--analyze | Analyze the app without building or deploying. Shows detected stack, services, and configuration. |
--force | Force deployment even if no changes detected |
--wait | Wait for deployment to complete |
Server Install
miren server install- Usually run via sudo, setup the server with systemdmiren server uninstall- Run as root, remove the global server installmiren server docker install- Setup a server in the local dockermiren server docker uninstall- Remove the server running within docker
Application Management
miren app- Get information and metrics about an application (details)miren app list(ormiren apps) - List all applicationsmiren app delete- Delete an application and all its resourcesmiren app history- Show deployment history for an applicationmiren app status- Show current status of an applicationmiren app run- Open interactive shell in a new ephemeral sandbox (details)
Logs & Monitoring
miren logs- Get logs for an application (details)miren route- List all HTTP routes
Environment & Configuration
miren env- Environment variable management commandsmiren config- Configuration file management
Cluster & Authentication
miren cluster- List configured clustersmiren cluster list- List all configured clustersmiren cluster add- Add a new cluster configurationmiren cluster remove- Remove a cluster from the configurationmiren cluster switch- Switch to a different clustermiren login- Authenticate with miren.cloudmiren server register- Register this cluster with miren.cloudmiren whoami- Display information about the current authenticated user
Advanced Commands
miren sandbox list- List all sandboxes (details)miren sandbox exec- Execute a command in an existing sandbox (details)miren sandbox stop- Stop a sandboxmiren sandbox delete- Delete a dead sandboxmiren sandbox metrics- Get metrics from a sandboxmiren debug entity list- List entitiesmiren debug entity get- Get an entitymiren debug entity delete- Delete an entitymiren debug entity put- Put an entity
Disk Commands
miren debug disk list- List all disk entitiesmiren debug disk status- Show status of a disk entitymiren debug disk create- Create a disk entitymiren debug disk delete- Delete a disk entitymiren debug disk lease-list- List all disk leasesmiren debug disk lease-status- Show status of a disk leasemiren debug disk lease-release- Release a disk leasemiren debug disk mounts- List mounted disks
Utility Commands
miren version- Print the versionmiren upgrade- Upgrade miren CLI to latest versionmiren server- Start the miren server
Global Flags
These flags are available for most commands:
-v, --verbose- Enable verbose output--server-address- Server address to connect to--config- Path to the config file-C, --cluster- Cluster name-a, --app- Application name-d, --dir- Directory to run from
Configuration
The CLI reads configuration from ~/.config/miren/clientconfig.yaml:
server: http://localhost:8080
auth:
token: <your-auth-token>
Authentication
Login to Miren Cloud
miren login
Install a Server on Linux
sudo miren server install -n my-cluster
Install a Server inside Docker
miren server docker install -n my-cluster
Output Formats
Many commands support different output formats:
# Table format (default)
miren app list
# JSON format
miren app list --format json
Next Steps
- Getting Started - Learn by deploying
- App Commands - Manage your applications
- Sandbox Commands - Work with sandboxes directly
- Logs Command - View application logs
- Disk Commands - Manage persistent storage
- Disks Overview - Learn about persistent storage