···6868| `-c, --cpu <type>` | CPU type to emulate | `host` |
6969| `-C, --cpus <number>` | Number of CPU cores | `2` |
7070| `-m, --memory <size>` | RAM allocation | `2G` |
7171-| `-d, --drive <path>` | Path to virtual disk image | None |
7171+| `-i, --image <path>` | Path to virtual disk image | None |
7272| `--disk-format <format>` | Disk format (qcow2, raw, etc.) | `raw` |
7373| `--size <size>` | Size of the VM disk image to create if it does not exist | `20G` |
7474| `-b, --bridge <name>` | Name of the network bridge to use for networking (e.g., br0) | None |
···143143144144```bash
145145# Automatically create a 50GB disk if it doesn't exist
146146-openindiana-up --drive my-disk.qcow2 --disk-format qcow2 --size 50G
146146+openindiana-up --image my-disk.qcow2 --disk-format qcow2 --size 50G
147147```
148148149149## 🖥️ Console Setup
···170170- **Memory**: 2GB RAM (configurable with `--memory`)
171171- **Cores**: 2 virtual CPUs (configurable with `--cpus`)
172172- **Storage**: ISO-only by default; optional persistent disk (configurable with
173173- `--drive`)
173173+ `--image`)
174174- **Network**: User mode networking with SSH forwarding
175175- **Console**: Enhanced serial console via stdio with proper signal handling
176176- **Default Version**: OpenIndiana 20251026 (when no arguments provided)
+5-5
main.ts
···3434 .option("-m, --memory <size:string>", "Amount of memory for the VM", {
3535 default: "2G",
3636 })
3737- .option("-d, --drive <path:string>", "Path to VM disk image")
3737+ .option("-i, --image <path:string>", "Path to VM disk image")
3838 .option(
3939 "--disk-format <format:string>",
4040 "Disk image format (e.g., qcow2, raw)",
···104104 isoPath = await downloadIso(resolvedInput, options);
105105 }
106106107107- if (options.drive) {
107107+ if (options.image) {
108108 await createDriveImageIfNeeded(options);
109109 }
110110111111- if (!input && options.drive && !await emptyDiskImage(options.drive)) {
111111+ if (!input && options.image && !await emptyDiskImage(options.image)) {
112112 isoPath = null;
113113 }
114114···120120 })
121121 .command("ps", "List all virtual machines")
122122 .option("--all, -a", "Show all virtual machines, including stopped ones")
123123- .action(async (options: { all: boolean }) => {
124124- await ps(options.all);
123123+ .action(async (options: { all?: unknown }) => {
124124+ await ps(Boolean(options.all));
125125 })
126126 .command("start", "Start a virtual machine")
127127 .arguments("<vm-name:string>")