Build from Source
Build xcsh directly from source code.
Prerequisites
Section titled “Prerequisites”Building from source requires:
| Requirement | Version | Check Command |
|---|---|---|
| Node.js | 20+ | node --version |
| npm | 10+ | npm --version |
| Git | any | git --version |
Clone Repository
Section titled “Clone Repository”git clone https://github.com/robinmordasiewicz/f5xc-xcsh.gitcd f5xc-xcshInstall Dependencies
Section titled “Install Dependencies”npm installnpm run buildThis compiles TypeScript to JavaScript and outputs to the dist/ directory.
Verify Build
Section titled “Verify Build”./dist/index.js versionExpected output:
xcsh version v2.0.7Run Locally
Section titled “Run Locally”After building, run the CLI directly:
./dist/index.js --helpOr enter interactive mode:
./dist/index.jsDevelopment Mode
Section titled “Development Mode”For development with hot reload:
npm run devInstall (Optional)
Section titled “Install (Optional)”To install globally on your system:
npm linkThen run from anywhere:
xcsh --help