Skip to content

Last updated: 2026-06-11

The CLI (v0.1.12) handles QR sideloading, manifest scaffolding, and app packaging.

Installation

Install globally so the evenhub binary is on your PATH:

bash
npm install -g @evenrealities/evenhub-cli

Alternatively, pin the version per-repo:

bash
npm install -D @evenrealities/evenhub-cli

npm: @evenrealities/evenhub-cli

eh shortcut

The CLI also installs eh as a shorter alias. The two are interchangeable:

bash
eh qr --url ...    # same as: evenhub qr --url ...
eh pack app.json dist
eh init

Commands

evenhub init

Generate a starter app.json manifest in the current or specified directory.

bash
evenhub init
evenhub init -d ./my-project
evenhub init -o ./config/app.json
OptionDescription
-d, --directory <dir>Directory to create the file in (default: ./)
-o, --output <path>Output file path (overrides --directory)

evenhub qr

Generate a QR code for sideloading your app during development.

bash
# Simplest usage - provide the full URL
evenhub qr --url "http://192.168.1.100:5173"

# Or build the URL from parts
evenhub qr -i 192.168.1.100 -p 5173 --path /my-app

# Output to a file instead of terminal
evenhub qr --url "http://192.168.1.100:5173" -e
OptionDescription
-u, --url <url>Full URL (ignores other URL options)
-i, --ip <ip>IP address or hostname
-p, --port <port>Port number
--path <path>URL path
--httpsUse HTTPS instead of HTTP
--httpUse HTTP (default)
-e, --externalOpen QR in external program instead of terminal
-s, --scale <n>Scale factor for file output (default: 4)
--clearClear cached scheme, IP, port, and path

Scan it with the Even Realities App. Your app loads on the glasses with hot reload live.

evenhub pack

Package your built app into an .ehpk file for distribution.

bash
evenhub pack app.json dist -o myapp.ehpk
Argument / OptionDescription
<json>Path to your app.json manifest
<project>Path to your built output folder (dist, build, etc.)
-o, --output <file>Output filename (default: out.ehpk)
--no-ignoreInclude hidden files (dotfiles)
-c, --checkCheck if the package_id is available on Even Hub

See Packaging & Deployment for the full app.json schema, validation rules, and troubleshooting guide.

Shell completions

Generate completions for your shell:

bash
evenhub --completion-bash   # Bash
evenhub --completion-zsh    # Zsh
evenhub --completion-fish   # Fish