---
name: Build CLI
slug: build-cli
category: DevOps
description: Build CLI compiles the unity-mcp-cli TypeScript project and links it globally for terminal use. Use it after changes or first-time setup to make the CLI command available anywhere.
github: "https://github.com/IvanMurzak/Unity-MCP/tree/main/.claude/skills/build-cli"
language: "C#"
stars: 3898
forks: 355
install: "npx degit https://github.com/IvanMurzak/Unity-MCP/tree/main/.claude/skills/build-cli ~/.claude/skills/build-cli"
installs_to: ~/.claude/skills/build-cli
source_path: .claude/skills/build-cli/SKILL.md
collection_size: 25
category_size: 798
collection_url: "https://dirskills.com/collections/IvanMurzak/Unity-MCP"
added: 2026-08-16T07:01:47.447Z
last_synced: 2026-08-16T07:01:47.447Z
canonical_url: "https://dirskills.com/skills/build-cli"
---

# Build CLI

Build CLI compiles the unity-mcp-cli TypeScript project and links it globally for terminal use. Use it after changes or first-time setup to make the CLI command available anywhere.

**Install:**

```bash
npx degit https://github.com/IvanMurzak/Unity-MCP/tree/main/.claude/skills/build-cli ~/.claude/skills/build-cli
```

## README

# Build CLI

Build the `unity-mcp-cli` TypeScript project and optionally link it globally.

## Step 1 — Install Dependencies

```bash
cd cli && npm install
```

Only needed if `node_modules/` is missing or `package.json` changed.

## Step 2 — Build TypeScript

```bash
cd cli && npm run build
```

This compiles `src/**/*.ts` → `dist/**/*.js` via `tsc`.

## Step 3 — Link Globally (if `$ARGUMENTS` contains `--link` or first time)

```bash
cd cli && npm link
```

This creates a global symlink so `unity-mcp-cli` is available from any terminal. Only needed once — after that, `npm run build` alone is sufficient.

## Step 4 — Verify

```bash
unity-mcp-cli --version
```

Confirm the CLI is accessible and shows the expected version.

## Report

Print the version and confirm success. If any step failed, show the error output.
