metavr-cli
Skill200 starsChanged 53 days agoApache-2.0View on GitHub
Provides the complete metavr (Meta VR CLI) reference for Meta VR and Horizon OS development — installation, device setup, command discovery, MCP server mode, documentation search, app deployment, device testing setup, audio control, screenshots, and performance analysis. Use when the user needs to install metavr, asks what commands are available, needs CLI syntax help, or wants to know what metavr can do. Build paths: all Meta VR app stacks; use hz-quest-verify-first if the build path is unclear.
- Pipes a download into a shell
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- mirzaaghazadeh/unity-meta-quest-skillsword for word, first seen Nov 15, 2026
- mirzaaghazadeh/iwsdk-webxr-skillsword for word, first seen Oct 17, 2026
Other versions2 projects use a version of this.
Word for word · 2
- mirzaaghazadeh/iwsdk-webxr-skills★ 1100% same
- mirzaaghazadeh/unity-meta-quest-skills★ 1100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- hz-android-2d-portingSkill
- hz-api-upgradeSkill
- hz-immersive-designerSkill
- hz-iwsdk-webxrSkill
- hz-metavrx-layout-sdkSkill
- hz-metavrx-ui-setSkill
- hz-new-project-creationSkill
- hz-perfetto-debugSkill
- hz-platform-sdkSkill
- hz-psdk-integrationSkill
- hz-quest-verify-firstSkill
- hz-react-native-expoSkill
- hz-simpleperf-debugSkill
- hz-spatial-sdkSkill
- hz-store-pwaSkill
- hz-store-submitSkill
- hz-unity-code-reviewSkill
- hz-unity-device-readinessSkill
- hz-unity-face-trackingSkill
- hz-unity-fbx-importSkill
- hz-unity-meta-core-sdkSkill
- hz-unity-meta-interaction-sdkSkill
- hz-unity-meta-mixed-reality-utility-kitSkill
- hz-unity-meta-movement-sdk-retargetingSkill
- hz-unity-meta-quest-uiSkill
- hz-unity-passthrough-camera-accessSkill
- hz-unity-placementSkill
- hz-unity-platform-sdkSkill
- hz-unity-project-analyzerSkill
- hz-unity-sdk-upgradeSkill
- hz-unity-tmp-resourcesSkill
- hz-vr-debugSkill
- hz-xr-simulator-controlSkill
- hz-xr-simulator-install-and-configureSkill
- portalSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Keep this SKILL.md as the routing layer.
- Distinctive: line 71
Before using on-device commands:
- Very specific: line 83
If no devices appear: try a different USB cable (data-capable, not charge-only), accept the USB debugging prompt on the headset, or connect …
- Distinctive: line 91
Start with this skill for command groups and common workflows.
- Very specific: line 93
Use docs/metavr-cli.md or metavr --markdown-help for exact flags, arguments, and less common subcommands.
- Distinctive: line 118
Add this command to any MCP configuration to use the MCP server:
- Distinctive: line 147
If you are building a Meta VR-native developer tool or pairing a Meta VR headset UI with a host-side coding agent, keep the architecture …
- Very specific: line 154
Prefer project-local MCP installation with metavr mcp install project so the integration is explicit and travels with the repository
- Very specific: line 185
If you need raw shell access to the device, use metavr shell or metavr adb shell.
- Very specific: line 189
Use docs/metavr-cli.md for generated command details.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
metavr CLI Reference
What metavr Does
metavr (Meta VR CLI) is a CLI for Meta VR and Horizon OS development. It wraps ADB and Meta developer APIs into higher-level commands for device management, app lifecycle, documentation lookup, screenshots, audio control, test-device preparation, MCP integration, and Perfetto performance analysis.
Keep this SKILL.md as the routing layer. For exact flags and complete command
syntax, use the generated full CLI reference in docs/metavr-cli.md or run:
metavr --markdown-helpInstallation
Install the metavr CLI first.
Standalone binary
The standalone binary goes on your PATH (no prerequisites):
# macOS and Linux
curl -fsSL https://developers.meta.com/horizon/install-cli/ | sh# Windows (PowerShell)
iwr -useb https://developers.meta.com/horizon/install-cli/windows/ | iexThe installer adds metavr to your PATH (source your shell rc or open a new
terminal to pick it up). If you installed the standalone binary, keep it
current with metavr update.
npm distribution
The npm distribution requires Node.js 16 or newer, and needs no install of its own:
npx -y metavr --versionor install it globally with npm install -g metavr (update later with
npm update -g metavr).
Examples in the rest of the documentation use the bare metavr command. If
you use the npm distribution, prefix with npx -y (e.g.
npx -y metavr device list).
Device Connection
Before using on-device commands:
- Enable Developer Mode on your Meta VR device (Settings > System > Developer)
- Enable USB Debugging when prompted
- Connect your Meta VR device to your computer via USB-C
Verify the connection:
metavr device listIf no devices appear: try a different USB cable (data-capable, not charge-only),
accept the USB debugging prompt on the headset, or connect wirelessly with
metavr device connect <ip>.
Command Discovery
Use progressive disclosure:
- Start with this skill for command groups and common workflows.
- Open a focused reference file when the user is working in that area.
- Use
docs/metavr-cli.mdormetavr --markdown-helpfor exact flags, arguments, and less common subcommands.
Current top-level command groups:
| Group | Use for |
adb / shell | Low-level ADB-compatible commands and direct device shell access |
app | Install, list, launch, stop, clear, inspect, and detect the foreground app |
asset | Search Meta's 3D asset library |
audio | Read volume, set volume, mute, and unmute device audio |
capture | Capture screenshots from a connected headset |
config | Read, write, reset, and list metavr configuration |
device | List/connect devices, wait for ADB state, inspect controllers, configure test devices, run health checks, and manage proximity |
docs | Search/fetch Meta VR docs and API reference entries |
files | List, pull, push, remove, and create directories on the device |
log | View recent device logs; use adb logcat for advanced filters and streaming |
mcp | Start or install the metavr MCP server for AI tools |
perf | Capture, open, analyze, query, compare, and manage Perfetto traces |
MCP Server Mode
metavr includes a built-in MCP (Model Context Protocol) server with ~40 tools that enable AI agents to interact with Meta VR devices programmatically.
Add this command to any MCP configuration to use the MCP server:
metavr mcp serverThe server exposes tools for device management, app lifecycle, performance trace analysis, documentation search, file operations, and 3D asset search.
Install MCP configuration into other AI tools:
metavr mcp install cursor
metavr mcp install claude-desktop
metavr mcp install vscodeFor project-local agent setup, install the MCP config into the current repository:
cd your-project
metavr mcp install projectThis is the best default when a coding agent already has repository access on the host machine and should be able to call metavr tools from that project.
Common Agent Workflow
If you are building a Meta VR-native developer tool or pairing a Meta VR headset UI with a host-side coding agent, keep the architecture simple:
- Let the host-side coding agent own repository access, file edits, builds, tests, and metavr tool calls
- Let the headset app or browser experience act as a thin client for preview, prompt capture, status, and approval
- Prefer project-local MCP installation with
metavr mcp install projectso the integration is explicit and travels with the repository
# 1. Verify the current docs before coding against an API or workflow
metavr docs search "spatial sdk panel"
metavr docs fetch https://developers.meta.com/horizon/documentation/...
# 2. Build and deploy your app
./gradlew assembleDebug
metavr app install app/build/outputs/apk/debug/app-debug.apk
metavr app launch com.example.app
# 3. Observe on-device behavior
metavr log --tag MyApp
metavr capture screenshot -o latest.png
# 4. Prepare a stable test device when running repeatable tests
metavr device health-check
metavr device configure-testing setup
# ...run tests...
metavr device configure-testing restoreRelationship to ADB
metavr wraps ADB and provides higher-level commands. You do not need to use adb
directly for most Meta VR development tasks. metavr handles device selection, provides
structured output, and adds Meta VR-specific functionality (screenshots via metacam,
Perfetto trace analysis, doc search) that raw ADB does not support.
If you need raw shell access to the device, use metavr shell or metavr adb shell.
Full Command Reference
Use docs/metavr-cli.md for generated command details. Regenerate it with:
metavr --markdown-help > docs/metavr-cli.mdReferences
For detailed usage guides with workflows, examples, and troubleshooting:
- Device Management — device commands, audio, screenshots, logs, test setup, health checks, shell access
- App Management — app lifecycle, foreground app detection, crash debugging, common log tags
- Agent Workflows — project-local MCP install, docs verification, safety, thin-client architecture
- Performance Tools — trace capture, guided analysis, Perfetto UI, SQL queries, comparisons, GPU counters
- Documentation Search — doc search, API search, category filtering
- Developer Tools — install, update, and launch simulators, debuggers, and SDKs via
metavr tools
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

