Skip to main content

homebutler inventory

Collects the server, its containers, and its open ports into one tree, or exports the same data as a Mermaid diagram.

inventory does not run on remote servers: it refuses --server and --all and exits 1.

For reading the tree and the exposed-ports view, see Inventory.

CommandWhat it does
exportPrints the inventory in a structured format.
scanScans the local server and prints the inventory as a tree.
showDoes the same as inventory scan.

inventory exportโ€‹

Prints the inventory in a structured format. The only format is a Mermaid flowchart.

homebutler inventory export [flags]
FlagTypeDefaultDescription
--formatstringmermaidExport format. mermaid is the only value.

Export the inventory as Mermaid. The output is shortened to the first lines.

homebutler inventory export --format mermaid
graph TD
home["๐Ÿ  Home Network"] --> main["๐Ÿ–ฅ main<br/>127.0.0.1"]

Any other format is an error.

homebutler inventory export --format dot
error: unsupported format: "dot" (supported: mermaid)

inventory scanโ€‹

Scans the local server and prints the inventory as a tree.

homebutler inventory scan [flags]
FlagTypeDefaultDescription
--filterstring-Show only part of the inventory. The one supported value is exposed, which lists the ports open on every interface. Not allowed with --json, which always returns the full inventory.

List the exposed ports. The output is shortened to the lines for the containers created for this page.

homebutler inventory scan --filter exposed
๐Ÿ  Home Network
Server main

๐ŸŒ Exposed Ports
โ”œโ”€ :8501/tcp ยท webhook-sink
โ”œโ”€ :8500/tcp ยท web
โ”œโ”€ :22/tcp ยท unknown
โ””โ”€ :8601/tcp ยท unknown

An unsupported filter value is an error.

homebutler inventory scan --filter bad
error: unsupported filter "bad" (supported: exposed)

inventory showโ€‹

Does the same as inventory scan.

homebutler inventory show [flags]
FlagTypeDefaultDescription
--filterstring-Show only part of the inventory. The one supported value is exposed. Not allowed with --json.