# CLI v0.0.1

2 min read

---

## Using the CLI  
```bash
protect [OPTIONS] <COMMAND>
```

## Option reference  
- `-c, --connection <CONNECTION>` The connection URL to the Edera Protect daemon [default: unix:///var/lib/edera/protect/daemon.socket].
- `-h, --help` Print help.
- `-v, --version` Print version.

ℹ️  
All commands and subcommands can be used with `--help` or `-h` for more information.

## Command reference  
### zone  
```bash
protect zone <COMMAND>
```

Commands:
- [`attach`](https://docs.edera.dev/reference/cli/v0.0.1/zone#attach) Attach to the zone console.
- [`list`](https://docs.edera.dev/reference/cli/v0.0.1/zone#list) List zone information.
- [`launch`](https://docs.edera.dev/reference/cli/v0.0.1/zone#launch) Launch a new zone.
- [`destroy`](https://docs.edera.dev/reference/cli/v0.0.1/zone#destroy) Destroy a zone.
- [`exec`](https://docs.edera.dev/reference/cli/v0.0.1/zone#exec) Execute a command inside the zone.
- [`logs`](https://docs.edera.dev/reference/cli/v0.0.1/zone#logs) View the logs of a zone.
- [`metrics`](https://docs.edera.dev/reference/cli/v0.0.1/zone#metrics) Read metrics from the zone.
- [`top`](https://docs.edera.dev/reference/cli/v0.0.1/zone#top) Dashboard for running zones.
- [`watch`](https://docs.edera.dev/reference/cli/v0.0.1/zone#watch) Watch for zone changes.
- [`update-resources`](https://docs.edera.dev/reference/cli/v0.0.1/zone#update-resources) Update the available resources to a zone.

View the [`protect zone`](https://docs.edera.dev/reference/cli/v0.0.1/zone) documentation.

### workload  
```bash
protect workload <COMMAND>
```

Commands:
- [`launch`](https://docs.edera.dev/reference/cli/v0.0.1/workload#launch) Launch a new workload.
- [`exec`](https://docs.edera.dev/reference/cli/v0.0.1/workload#exec) Execute a command inside the workload.
- [`attach`](https://docs.edera.dev/reference/cli/v0.0.1/workload#attach) Attach to a workload console.
- [`start`](https://docs.edera.dev/reference/cli/v0.0.1/workload#start) Start a workload.
- [`stop`](https://docs.edera.dev/reference/cli/v0.0.1/workload#stop) Stop a workload.
- [`destroy`](https://docs.edera.dev/reference/cli/v0.0.1/workload#destroy) Destroy a workload.
- [`list`](https://docs.edera.dev/reference/cli/v0.0.1/workload#list) List workload information.
- [`watch`](https://docs.edera.dev/reference/cli/v0.0.1/workload#watch) Watch for workload changes.

View the [`protect workload`](https://docs.edera.dev/reference/cli/v0.0.1/workload) documentation.

### image  
```bash
protect image <COMMAND>
```

Commands:
- [`pull`](https://docs.edera.dev/reference/cli/v0.0.1/image#pull) Pull an image into the cache.
- [`import`](https://docs.edera.dev/reference/cli/v0.0.1/image#import) Import an image into the cache.
- [`remove`](https://docs.edera.dev/reference/cli/v0.0.1/image#remove) Remove an image from the cache.
- [`list`](https://docs.edera.dev/reference/cli/v0.0.1/image#list) List cached images.

View the [`protect image`](https://docs.edera.dev/reference/cli/v0.0.1/image) documentation.

### network  
```bash
protect network <COMMAND>
```

Commands:
- [`reservation`](https://docs.edera.dev/reference/cli/v0.0.1/network#reservation) Manage network reservations.

View the [`protect network`](https://docs.edera.dev/reference/cli/v0.0.1/network) documentation.

### device  
```bash
protect device <COMMAND>
```

Commands:
- [`list`](https://docs.edera.dev/reference/cli/v0.0.1/device#list) List device information.

View the [`protect device`](https://docs.edera.dev/reference/cli/v0.0.1/device) documentation.

### host  
```bash
protect host <COMMAND>
```

Commands:
- [`cpu-topology`](https://docs.edera.dev/reference/cli/v0.0.1/host#cpu-topology) Display information about the host CPU topology.
- [`status`](https://docs.edera.dev/reference/cli/v0.0.1/host#status) Get information about the host.
- [`idm-snoop`](https://docs.edera.dev/reference/cli/v0.0.1/host#idm-snoop) Snoop on the IDM bus.
- [`hv-console`](https://docs.edera.dev/reference/cli/v0.0.1/host#hv-console) Display hypervisor console output.
- [`hv-debug-info`](https://docs.edera.dev/reference/cli/v0.0.1/host#hv-debug-info) Read hypervisor debug information.

View the [`protect host`](https://docs.edera.dev/reference/cli/v0.0.1/host) documentation.

### completion  
```bash
protect completion <SHELL>
```

Arguments:
- `<SHELL>` Possible values: `bash`, `elvish`, `fish`, `powershell`, `zsh`.

View the [`protect completion`](https://docs.edera.dev/reference/cli/v0.0.1/completion) documentation.

Last updated on 2026-02-18
