Skip to main content

CLI Reference

Complete reference for all hypr commands.

Global Options

The CLI respects the RUST_LOG environment variable for log levels:

Commands Overview


VM Commands

hypr run

Run a VM from an image.
Arguments:
  • <image> - Image name (e.g., nginx, redis:7, ghcr.io/org/repo:tag)
Options: Examples:

hypr ps

List all VMs.
Output columns:
  • ID - VM identifier (first 12 characters)
  • NAME - VM name
  • IMAGE - Source image
  • STATUS - Current state (creating, running, stopped, failed)
  • IP - Assigned IP address
  • PORTS - Port mappings

hypr start

Start a stopped VM.
Arguments:
  • <vm> - VM ID or name

hypr stop

Stop a running VM.
Arguments:
  • <vm> - VM ID or name
Options:

hypr rm

Delete a VM.
Arguments:
  • <vm> - VM ID or name
Options:

hypr logs

Stream logs from a VM.
Arguments:
  • <vm> - VM ID or name
Options: Examples:

hypr exec

Execute a command in a running VM.
Arguments:
  • <vm> - VM ID or name
  • <command> - Command to execute (defaults to /bin/sh)
Options: Examples:

Image Commands

hypr build

Build an image from a Dockerfile.
Arguments:
  • [path] - Build context directory (default: .)
Options: Examples:

hypr images

List local images.
Output columns:
  • NAME - Image name
  • TAG - Image tag
  • ID - Image identifier
  • SIZE - Image size
  • CREATED - Creation time

hypr pull

Pull an image from a registry.
Arguments:
  • <image> - Image reference (e.g., nginx, nginx:1.25, ghcr.io/org/repo:tag)
Registry support:
  • 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.
Arguments:
  • <image> - Image name or ID
Options:

hypr image

Image management subcommands.

hypr image ls

List images (same as hypr images).

hypr image pull

Pull an image (same as hypr pull).

hypr image rm

Remove an image (same as hypr rmi).
Options:

hypr image inspect

Display detailed information on an image.
Arguments:
  • <image> - Image name or ID

hypr image prune

Remove unused images.
Options:

Volume Commands

hypr volume ls

List all volumes.
Output columns:
  • DRIVER - Volume driver (currently local)
  • VOLUME NAME - Volume name

hypr volume create

Create a new volume.
Arguments:
  • <name> - Volume name
Example:

hypr volume rm

Remove a volume.
Arguments:
  • <name> - Volume name
Options:

hypr volume inspect

Display detailed information on a volume.
Arguments:
  • <name> - Volume name
Output:

hypr volume prune

Remove all unused volumes.
Options:

Network Commands

hypr network ls

List all networks.
Output columns:
  • NETWORK ID - Network identifier (first 12 characters)
  • NAME - Network name
  • DRIVER - Network driver
  • SCOPE - Network scope (always local)

hypr network create

Create a new network.
Arguments:
  • <name> - Network name
Options: Examples:

hypr network rm

Remove a network.
Arguments:
  • <name> - Network name
Options:

hypr network inspect

Display detailed information on a network.
Arguments:
  • <name> - Network name
Output:

hypr network prune

Remove all unused networks.
Options:

Compose Commands

Manage multi-service stacks. See Compose Stacks for details.

hypr compose up

Deploy a stack from a compose file.
Options: Compose file search order:
  1. hypr-compose.yml, hypr-compose.yaml
  2. Hyprfile, Hyprfile.yml, Hyprfile.yaml
  3. docker-compose.yml, docker-compose.yaml
  4. compose.yml, compose.yaml

hypr compose down

Destroy a stack.
Arguments:
  • <stack-name> - Name of the stack to destroy
Options:

hypr compose ps

List stacks or show stack details.
Arguments:
  • [stack-name] - Optional: show details for specific stack

hypr compose logs

Show logs for a service.
Arguments:
  • <service-name> - Name of the service

GPU Commands

hypr gpu list

List available GPUs on the system.
Linux output:
macOS output:
See GPU Passthrough for details.

System Commands

hypr system df

Show disk usage information.
Output:

hypr system prune

Remove unused resources.
Options: Resources cleaned:
  • Dangling images (not referenced by any VM)
  • Build cache
  • Orphaned log files
  • Linux: orphaned TAP devices, orphaned VFIO bindings

Health Check

hypr health

Check daemon health.
Output: