CLI Reference
The hilp CLI provides commands for package management, project scaffolding, device communication, and IoT operations (Rashwan, 2026).
Command Overview
Project Commands
hilp init
Create a new project with manifest and entry point.
hilp init [project-name]
# Example
hilp init my-robot
cd my-robot
Creates:
my-robot/
├── hil.json # Project manifest
├── index.hil # Entry point
└── lib/ # Package directory
hilp doctor
Diagnose installation and project health.
hilp doctor
# Output:
# ✓ CLI installed (v2.0.0)
# ✓ Orchestrator found
# ✓ Registry reachable (http://localhost:3002)
# ✓ Toolchain installed
# ✗ Project not found (run 'hilp init')
Package Commands
hilp search
Search the package registry.
hilp search # List all packages
hilp search sensor # Search by keyword
hilp search --category sensors # Filter by category
hilp install
Install a package from the registry.
hilp install <package>[@version]
# Examples
hilp install dht11-humidity
hilp install lm35-temp@1.0.0
hilp install pid-controller@^1.0.0
hilp remove
Remove an installed package.
hilp remove <package>
hilp rm <package> # Alias
hilp uninstall <package> # Alias
hilp list
List installed packages.
hilp list
hilp ls # Alias
# Output:
# dht11-humidity@1.0.0
# lm35-temp@1.0.0
# servo-control@1.0.0
hilp info
Show detailed package information.
hilp info <package>
hilp show <package> # Alias
# Output:
# dht11-humidity@1.0.0
# Description: DHT11 humidity and temperature sensor driver
# Category: sensors
# Author: HIL Community
# Dependencies: i2c-core
hilp publish
Publish a package to the registry.
hilp publish ./my-package
hilp pub ./my-package # Alias
Device Commands
hilp install-toolchain
Download and install the HIL toolchain.
hilp install-toolchain
hilp tool # Alias
hilp install-ide
Download and install the HIL IDE.
hilp install-ide
hilp ide # Alias
hilp list-tools
Show installed toolchain contents.
hilp list-tools
hilp tools # Alias
hilp update
Self-update the CLI and toolchain.
hilp update
hilp upgrade # Alias
hilp ota # Alias
IoT Commands
hilp subscribe
Subscribe to real-time MQTT topics.
hilp subscribe <topic>
hilp sub <topic> # Alias
# Example
hilp subscribe hil/devices/+/temperature
hilp publish-data
Publish data to a topic.
hilp publish-data <topic> <value>
hilp pub-data <topic> <value> # Alias
hilp send <topic> <value> # Alias
# Example
hilp publish-data hil/devices/sensor01/temp 25.5
hilp network
Show IoT network status.
hilp network # Overview
hilp network feed # Recent messages
hilp network topics # Active topics
hilp net # Alias
hilp devices
List registered IoT devices.
hilp devices
hilp ls-devices # Alias
System Commands
hilp report
Report an error or bug.
hilp report "Error message here"
hilp bug "Error message" # Alias
hilp issue "Error message" # Alias
hilp errors
List recent error reports.
hilp errors
hilp bugs # Alias
hilp issues # Alias
hilp dashboard
Open the web dashboard in a browser.
hilp dashboard
hilp version
Show version information.
hilp version
hilp -v # Alias
hilp help
Show help information.
hilp help
hilp -h # Alias
Environment Variables
| Variable | Default | Description |
|---|---|---|
HIL_REGISTRY | http://localhost:3002 | Registry URL |
HIL_ADMIN_TOKEN | — | Admin authentication token |
HIL_ADMIN_PASSWORD | admin123 | Admin panel password |
HIL_REGISTRY_PORT | 3002 | Registry server port |
HIL_SITE_PORT | 3001 | Site server port |
References
Rashwan, S. (2026). HIL: A LISP-based hardware-in-the-loop operating system. https://github.com/SRashwan/hilp