Skip to content

Build from Source

Build xcsh directly from source code.

Building from source requires:

RequirementVersionCheck Command
Node.js20+node --version
npm10+npm --version
Gitanygit --version
Terminal window
git clone https://github.com/robinmordasiewicz/f5xc-xcsh.git
cd f5xc-xcsh
Terminal window
npm install
Terminal window
npm run build

This compiles TypeScript to JavaScript and outputs to the dist/ directory.

Terminal window
./dist/index.js version

Expected output:

xcsh version v2.0.7

After building, run the CLI directly:

Terminal window
./dist/index.js --help

Or enter interactive mode:

Terminal window
./dist/index.js

For development with hot reload:

Terminal window
npm run dev

To install globally on your system:

Terminal window
npm link

Then run from anywhere:

Terminal window
xcsh --help