CLI Installation
Install the QODRYX command-line interface
Overview
The QODRYX CLI allows you to interact with the platform directly from your terminal. Trigger workflows, run security scans, deploy applications, and manage your projects without leaving your development environment.
Requirements
- Node.js: Version 18.0 or higher
- npm: Version 8.0 or higher (or yarn/pnpm)
- Operating System: macOS, Linux, or Windows 10+
Installation Methods
npm (Recommended)
Install globally using npm:
npm install -g @qodryx/cliyarn
yarn global add @qodryx/clipnpm
pnpm add -g @qodryx/cliHomebrew (macOS/Linux)
brew tap qodryx/tap
brew install qodryxShell Script (macOS/Linux)
curl -fsSL https://get.qodryx.com | shWindows (PowerShell)
iwr https://get.qodryx.com/windows | iexManual Download
Download the binary directly from our GitHub Releases page.
Verify Installation
After installation, verify the CLI is working:
qodryx --version
# Output: qodryx/1.0.0 darwin-arm64 node-v20.0.0
qodryx --help
# Shows available commandsAuthentication
Log in to connect the CLI to your QODRYX account:
Interactive Login
qodryx auth login
# This will:
# 1. Open your browser to the login page
# 2. Ask you to authorize the CLI
# 3. Save credentials locallyToken-Based Login
For CI/CD environments or headless systems:
# Using a Personal Access Token
qodryx auth login --token YOUR_PAT_TOKEN
# Or set as environment variable
export QODRYX_API_KEY=qx_live_your_api_key
qodryx auth statusVerify Authentication
qodryx auth status
# Output:
# ✓ Authenticated as john@example.com
# ✓ Organization: Acme Corp
# ✓ Plan: Pro
# ✓ Token expires: 2024-12-31Configuration
The CLI stores configuration in ~/.qodryx/:
~/.qodryx/
├── config.json # CLI settings
├── credentials # Authentication tokens
└── cache/ # Cached dataGlobal Configuration
# Set default project
qodryx config set default_project proj_abc123
# Set output format
qodryx config set output json # json, table, or yaml
# View all config
qodryx config listProject Configuration
Create a qodryx.yml in your project root for project-specific settings:
# qodryx.yml
project: proj_abc123
security:
enabled: true
scan_on_push: true
deployment:
provider: vercel
auto_deploy: false
notifications:
slack: "#deployments"Updating the CLI
npm
npm update -g @qodryx/cliSelf-Update
qodryx update
# Check for updates without installing
qodryx update --checkHomebrew
brew upgrade qodryxUninstalling
npm
npm uninstall -g @qodryx/cliHomebrew
brew uninstall qodryxClean Up Config
rm -rf ~/.qodryxTroubleshooting Installation
Permission Errors (npm)
EACCES Permission Denied
Don't use sudo with npm. Fix npm permissions instead:
# Option 1: Change npm's default directory
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
# Add to ~/.bashrc or ~/.zshrc:
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
# Option 2: Use a Node version manager (nvm)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
nvm install 20
nvm use 20Command Not Found
If qodryx command is not found after installation:
# Check npm global bin path
npm config get prefix
# Ensure it's in your PATH
echo $PATH
# Add to PATH if missing (add to ~/.bashrc or ~/.zshrc)
export PATH="$(npm config get prefix)/bin:$PATH"Node Version Too Old
# Check Node version
node --version
# Install latest LTS with nvm
nvm install --lts
nvm use --ltsPlatform-Specific Notes
macOS
- Homebrew recommended
- Works on Intel & Apple Silicon
- Keychain integration available
Linux
- All major distros supported
- Shell completion available
- SystemD service support
Windows
- PowerShell 5.1+ required
- WSL2 also supported
- Windows Terminal recommended
Shell Completions
Enable tab completions for faster command entry:
Bash
# Add to ~/.bashrc
eval "$(qodryx completion bash)"Zsh
# Add to ~/.zshrc
eval "$(qodryx completion zsh)"Fish
qodryx completion fish > ~/.config/fish/completions/qodryx.fishPowerShell
# Add to $PROFILE
qodryx completion powershell | Out-String | Invoke-Expression