CLI Reference
Complete reference for allhypr commands.
Global Options
The CLI respects theRUST_LOG environment variable for log levels:
Commands Overview
| Command | Description |
|---|---|
hypr run | Run a VM from an image |
hypr ps | List all VMs |
hypr start | Start a stopped VM |
hypr stop | Stop a running VM |
hypr rm | Delete a VM |
hypr logs | Stream logs from a VM |
hypr exec | Execute a command in a VM |
hypr build | Build an image from Dockerfile |
hypr images | List images |
hypr pull | Pull an image from registry |
hypr rmi | Remove an image |
hypr image | Image management subcommands |
hypr volume | Volume management subcommands |
hypr network | Network management subcommands |
hypr compose | Stack management subcommands |
hypr gpu | GPU management subcommands |
hypr system | System maintenance subcommands |
hypr health | Check daemon health |
VM Commands
hypr run
Run a VM from an image.<image>- Image name (e.g.,nginx,redis:7,ghcr.io/org/repo:tag)
| Option | Description |
|---|---|
-n, --name <name> | VM name (auto-generated if omitted) |
-c, --cpus <n> | Number of vCPUs (default: 2) |
-m, --memory <mb> | Memory in MB (default: 512) |
-p, --port <host:guest> | Port mapping (can be repeated) |
-e, --env <KEY=VALUE> | Environment variable (can be repeated) |
--gpu [address] | Enable GPU passthrough. Linux: specify PCI address. macOS: no value needed |
hypr ps
List all VMs.ID- VM identifier (first 12 characters)NAME- VM nameIMAGE- Source imageSTATUS- Current state (creating, running, stopped, failed)IP- Assigned IP addressPORTS- Port mappings
hypr start
Start a stopped VM.<vm>- VM ID or name
hypr stop
Stop a running VM.<vm>- VM ID or name
| Option | Description |
|---|---|
-t, --timeout <seconds> | Shutdown timeout (default: 30) |
hypr rm
Delete a VM.<vm>- VM ID or name
| Option | Description |
|---|---|
-f, --force | Force delete even if running |
hypr logs
Stream logs from a VM.<vm>- VM ID or name
| Option | Description |
|---|---|
-f, --follow | Follow log output (like tail -f) |
-n, --tail <lines> | Number of lines from end (default: all) |
hypr exec
Execute a command in a running VM.<vm>- VM ID or name<command>- Command to execute (defaults to/bin/sh)
| Option | Description |
|---|---|
-i, --interactive | Interactive mode with TTY |
-t, --tty | Allocate TTY (same as -i) |
-e, --env <KEY=VALUE> | Environment variable (can be repeated) |
Image Commands
hypr build
Build an image from a Dockerfile.[path]- Build context directory (default:.)
| Option | Description |
|---|---|
-t, --tag <name:tag> | Image name and tag |
-f, --file <path> | Dockerfile path (default: Dockerfile) |
--build-arg <KEY=VALUE> | Build argument (can be repeated) |
--target <stage> | Target stage for multi-stage builds |
--no-cache | Disable build cache |
hypr images
List local images.NAME- Image nameTAG- Image tagID- Image identifierSIZE- Image sizeCREATED- Creation time
hypr pull
Pull an image from a registry.<image>- Image reference (e.g.,nginx,nginx:1.25,ghcr.io/org/repo:tag)
- Docker Hub:
nginx,library/nginx,user/repo - GitHub Container Registry:
ghcr.io/org/repo:tag - Google Container Registry:
gcr.io/project/image:tag - Quay.io:
quay.io/org/repo:tag - Any OCI-compliant registry
hypr rmi
Remove an image.<image>- Image name or ID
| Option | Description |
|---|---|
-f, --force | Force removal |
hypr image
Image management subcommands.hypr image ls
List images (same ashypr images).
hypr image pull
Pull an image (same ashypr pull).
hypr image rm
Remove an image (same ashypr rmi).
| Option | Description |
|---|---|
-f, --force | Force removal |
hypr image inspect
Display detailed information on an image.<image>- Image name or ID
hypr image prune
Remove unused images.| Option | Description |
|---|---|
-a, --all | Remove all unused images, not just dangling ones |
-f, --force | Do not prompt for confirmation |
Volume Commands
hypr volume ls
List all volumes.DRIVER- Volume driver (currentlylocal)VOLUME NAME- Volume name
hypr volume create
Create a new volume.<name>- Volume name
hypr volume rm
Remove a volume.<name>- Volume name
| Option | Description |
|---|---|
-f, --force | Force removal (don’t check if in use) |
hypr volume inspect
Display detailed information on a volume.<name>- Volume name
hypr volume prune
Remove all unused volumes.| Option | Description |
|---|---|
-f, --force | Do not prompt for confirmation |
Network Commands
hypr network ls
List all networks.NETWORK ID- Network identifier (first 12 characters)NAME- Network nameDRIVER- Network driverSCOPE- Network scope (alwayslocal)
hypr network create
Create a new network.<name>- Network name
| Option | Description |
|---|---|
--subnet <cidr> | Subnet in CIDR notation (e.g., 10.89.0.0/16) |
--gateway <ip> | Gateway IP address |
-d, --driver <driver> | Network driver (default: bridge) |
hypr network rm
Remove a network.<name>- Network name
| Option | Description |
|---|---|
-f, --force | Force removal (don’t check if in use) |
hypr network inspect
Display detailed information on a network.<name>- Network name
hypr network prune
Remove all unused networks.| Option | Description |
|---|---|
-f, --force | Do not prompt for confirmation |
Compose Commands
Manage multi-service stacks. See Compose Stacks for details.hypr compose up
Deploy a stack from a compose file.| Option | Description |
|---|---|
-f, --file <path> | Compose file path |
-n, --name <name> | Stack name (defaults to directory name) |
-d, --detach | Run in background |
--force-recreate | Recreate even if exists |
--build | Build images before deploying |
hypr-compose.yml,hypr-compose.yamlHyprfile,Hyprfile.yml,Hyprfile.yamldocker-compose.yml,docker-compose.yamlcompose.yml,compose.yaml
hypr compose down
Destroy a stack.<stack-name>- Name of the stack to destroy
| Option | Description |
|---|---|
-f, --force | Force destroy without confirmation |
hypr compose ps
List stacks or show stack details.[stack-name]- Optional: show details for specific stack
hypr compose logs
Show logs for a service.<service-name>- Name of the service
GPU Commands
hypr gpu list
List available GPUs on the system.System Commands
hypr system df
Show disk usage information.hypr system prune
Remove unused resources.| Option | Description |
|---|---|
-a, --all | Remove all stopped VMs and unused images |
-f, --force | Skip confirmation prompt |
--volumes | Also remove unused volumes |
- Dangling images (not referenced by any VM)
- Build cache
- Orphaned log files
- Linux: orphaned TAP devices, orphaned VFIO bindings