[](LICENSE)
[](https://crates.io/crates/utmd)
[](https://github.com/tappunk/utmd/releases)
[](https://x.com/tappunk)
# utmd
Disposable VM sandbox manager for UTM on macOS.
Clone base templates into isolated development environments and delete them with a single command.
## Prerequisites
- macOS with [UTM Desktop Application](https://mac.getutm.app/) installed
- Base VM templates named `[t]-linux` and `[t]-macos` in UTM
## Usage
```bash
utmd clone linux # Clone from [t]-linux (auto-generated name)
utmd clone macos # Clone from [t]-macos (auto-generated name)
utmd clone linux sandbox1 # Clone with a custom name
utmd delete-all # Delete all generated sandbox VMs
```
List all VMs in UTM:
```bash
utmctl list
```
## Installation
utmd is available on [crates.io](https://crates.io/crates/utmd) and [Homebrew](https://brew.sh/).
### Cargo
```bash
cargo install utmd
```
### Homebrew
```bash
brew install tappunk/utmd/utmd
```
### Build from Source
```bash
git clone https://github.com/tappunk/utmd.git
cd utmd
cargo build --release
sudo cp target/release/utmd /usr/local/bin/utmd
```
On first run, `utmd` checks for `utmctl` and offers to create a symlink if it is not found.