ORCH CLI DOCUMENTATION

Overview

ORCH is the universal, zero-config local project orchestrator designed specifically for the NKNGO ecosystem. It standardizes how projects are launched, tested, and updated across an entire engineering team.

Core Capabilities:

  • Auto-detect project frameworks (Next.js, Laravel, Django, Go, Docker).
  • Automatically generate and maintain the orch.config.json file.
  • Install missing dependencies silently on boot.
  • Standardize application startup with a single command.

Installation

NPM Global (Recommended)

The primary way to install the ORCH CLI across platforms.

npm install -g @nkngo/orch

Linux / macOS (Standalone Installer)

Use the standalone bash installer if you prefer curling directly.

curl -fsSL https://nkngo.com/install.sh | sh

Windows (Standalone Installer)

Run via PowerShell for Windows environments.

powershell -ExecutionPolicy ByPass -c "irm https://nkngo.com/install.ps1 | iex"
Note on CI/CD Environments: For headless/unattended installations, prefix the installation commands with CODEX_NON_INTERACTIVE=1.

Configuration Schema

While ORCH generates its configuration automatically upon first run, you can manually define or override execution parameters using the orch.config.json file at the root of your project.

{
  "name": "MyProject",
  "versions": {
    "Default Profile": [
      {
        "name": "WEB",
        "command": "npm run dev",
        "cwd": "./",
        "color": "blue",
        "ports": [3000]
      }
    ],
    "Docker Profile": [
      {
        "name": "DOCKER",
        "command": "docker compose up",
        "cwd": "./",
        "color": "magenta"
      }
    ]
  },
  "tests": {
    "command": "npm",
    "args": ["test"],
    "cwd": "./"
  }
}

Root Fields

  • name: Human-readable project name.
  • versions: Dictionary of named execution profiles.
  • tests: Optional test command object.

Service Fields

  • name: Label shown in the CLI UI.
  • command: Shell command to run.
  • cwd: Working directory relative to config.
  • ports: Optional array of bound ports.

Framework Auto-Detection

If orch.config.json is missing, ORCH scans the directory to build a robust default profile. It recognizes the following project signatures out of the box:

Framework / StackTrigger FilesDefault Command
Next.jsnext.config.jsnpm run dev
Laravelartisancomposer dev
Djangomanage.pypython3 manage.py runserver
Gogo.modgo run .
Dockerdocker-compose.ymldocker compose up

Automated Updates

The orch update command syncs your local environment with enterprise infrastructure. This behavior is controlled via environment variables:

ORCH_UPDATE_ENDPOINT

Calls an enterprise API endpoint to manage the update state before pulling code.

export ORCH_UPDATE_ENDPOINT="https://api.yourdomain.com/orch/update"

ORCH_UPDATE_MANIFEST_URL

Fetches a remote configuration manifest to replace the local orch.config.json.

export ORCH_UPDATE_MANIFEST_URL="https://api.yourdomain.com/orch/manifest"

Fallback Mode

If no environment variables are set, orch update gracefully falls back to performing a standard git pull.