Workrail
⌘K
Getting Started

Installation

Install the Workrail CLI using your preferred package manager.

Updated 2026-02-11

Install the Workrail CLI globally using your preferred package manager.

Requirements

  • Node.js 18+
  • Git repository for syncing

Install via npm

BASH
npm install -g @workrail/cli

Install via pnpm

BASH
pnpm add -g @workrail/cli

Install via bun

BASH
bun add -g @workrail/cli

Verify installation

After installation, verify the CLI is available:

BASH
workrail --version

You should see the version number (e.g., workrail 0.2.4).

Next steps

Once installed, you're ready to:

  1. Authenticate with your account
  2. Link your first repository
  3. Run your first sync

Troubleshooting

Command not found after install:

Make sure your Node.js global bin directory is in your PATH:

BASH
# Check npm global bin location
npm bin -g

# Add to PATH (add to ~/.zshrc or ~/.bashrc)
export PATH="$(npm bin -g):$PATH"

Permission denied:

On some systems, you may need to use sudo (not recommended) or fix npm permissions. See npm's permission guide.

Updating

To update to the latest version:

BASH
npm update -g @workrail/cli
# or
pnpm update -g @workrail/cli
# or
bun update -g @workrail/cli

Uninstalling

BASH
npm uninstall -g @workrail/cli
# or
pnpm remove -g @workrail/cli
# or
bun remove -g @workrail/cli