# Command & TUI Reference Full reference of all unifocl commands, keybindings, dry-run mechanics, and dynamic C# eval. unifocl operates through a unified command set. Humans can launch the interactive shell (boot screen) to use **slash commands** (e.g., `/open`) for lifecycle operations and **standard commands** (e.g., `ls`, `cd`) for contextual actions. AI agents access these exact same commands via the stateless `exec` pathway or the built-in MCP server. ## 1. System & Lifecycle Commands These commands manage your session, project loading, and configuration. In the interactive shell, they are prefixed with a slash (`/`). | **Command** | **Alias** | **Description** | | --- | --- | --- | | `/open [--allow-unsafe]` | `/o` | Open a Unity project. Starts/attaches to the daemon and loads metadata. | | `/close` | `/c` | Detach from the current project and stop the attached daemon. | | `/quit` | `/q`, `/exit` | Exit the CLI client (leaves the daemon running). | | `/daemon ` | `/d` | Manage daemon lifecycle commands. | | `/new [version]` | | Bootstrap a new Unity project. | | `/clone ` | | Clone a repository and set up local CLI bridge-mode config. | | `/recent [idx]` | | List recent projects or open one by index. | | `/config ` | `/cfg` | Manage CLI preferences (e.g., themes). | | `/status` | `/st` | Show daemon, mode, editor, project, and session status summary. | | `/doctor` | | Run environment and tooling diagnostics. | | `/scan [--root ] [--depth ]` | | Scan directories for Unity projects. | | `/info ` | | Inspect Unity project metadata and protocol details. | | `/logs [daemon\|unity] [-f]` | | Show daemon runtime summary or follow logs. | | `/examples` | | Show common operational command flows. | | `/update` | | Show installed CLI version and update guidance. | | `/install-hook` | | Run bridge dependency install flow (`/init`) against current/open project. | | `/agent install [--workspace ] [--server-name ] [--config-root ] [--dry-run]` | | Install/update MCP integration for Codex or Claude. | | `/unity detect` | | List installed Unity editors. | | `/unity set ` | | Set default Unity editor path. | | `/build run [target] [--dev] [--debug] [--clean] [--path ]` | `/b` | Trigger a Unity player build. If target is omitted, choose from an interactive target selector. | | `/build exec ` | `/bx` | Execute a static build method (e.g., `CI.Builder.BuildAndroidProd`). | | `/build scenes` | | Open an interactive TUI to view, toggle, and reorder build scenes. | | `/build addressables [--clean] [--update]` | `/ba` | Trigger an Addressables content build (full or update mode). | | `/build cancel` | | Request cancellation for the active build process via daemon. | | `/build targets` | | List platform build support currently available in this Unity Editor. | | `/build logs` | | Reopen live build log tail (restartable, with error filtering). | | `/build snapshot-packages` | | Snapshot `Packages/manifest.json` to a timestamped file under `.unifocl-runtime/snapshots/`. | | `/build preflight` | | Run scene-list + build-settings + packages validators sequentially and report aggregated pass/fail before a build. | | `/build artifact-metadata` | | Show file list, sizes, and target from the last captured build report. | | `/build failure-classify` | | Classify errors from the last build into CompileError / LinkerError / MissingAsset / ScriptError / Timeout categories. | | `/build report` | | Render a consolidated build summary: preflight + artifacts + classified failures. | | `/upm` | | Show Unity Package Manager command usage and options. | | `/upm list [--outdated] [--builtin] [--git]` | `/upm ls` | List installed Unity packages (with optional outdated/builtin/git filters). | | `/upm install ` | `/upm add`, `/upm i` | Install a package by package ID, Git URL, or `file:` target. | | `/upm remove ` | `/upm rm`, `/upm uninstall` | Remove a package by package ID. | | `/upm update [version]` | `/upm u` | Update a package to latest or a specified version. | | `/prefab create ` | | Convert a scene GameObject into a new Prefab Asset on disk. | | `/prefab apply ` | | Push instance overrides back to the source Prefab Asset. | | `/prefab revert ` | | Discard local overrides, revert to the source Prefab Asset. | | `/prefab unpack [--completely]` | | Break the prefab connection, turning the instance into a regular GameObject. | | `/prefab variant ` | | Create a Prefab Variant inheriting from a base prefab. | | `/animator param add ` | | Add a parameter to an AnimatorController. `` must be `float`, `int`, `bool`, or `trigger`. (SafeWrite) | | `/animator param remove ` | | Remove an existing parameter from an AnimatorController by name. (DestructiveWrite) | | `/animator state add [--layer ]` | | Add a new state to the target layer's root state machine (layer 0 by default). (SafeWrite) | | `/animator transition add [--layer ]` | | Create a transition between two states in the specified layer. Use `AnyState` as `` to route from the Any State. (SafeWrite) | | `/clip config [--loop-time ] [--loop-pose ]` | | Modify loop settings of an AnimationClip (`loopTime` / `loopPose`). At least one flag required. (SafeWrite) | | `/clip event add