Skip to main content
EllygentAI-assisted Systems Engineering
Login
Start free

CLI / Troubleshooting

Troubleshooting

Start with PATH and VS Code checks if the installer succeeded but the command still is not available.

Quick Diagnostic

Run these commands in PowerShell to confirm Node.js, npm, and the resolved CLI command:

node --version
npm --version
ellygent --help
ellygent --version
npm bin -g
npm list -g --depth=0
where.exe ellygent
Get-Command ellygent

Installation Bootstrap Issues

Node.js LTS is required because Ellygent CLI is currently installed from GitHub using npm.

winget install OpenJS.NodeJS.LTS
node --version
npm --version
irm https://ellygent.com/cli/install.ps1 | iex

npm should be installed together with Node.js LTS. If node --version works but npm --version does not, reinstall Node.js LTS and reopen PowerShell.

node --version
npm --version
winget install OpenJS.NodeJS.LTS

Retry the checkout-and-build install manually so you can see the full clone, npm, or build error output.

git clone --depth 1 https://github.com/EEQuality/ellygent-cli.git
cd ellygent-cli
npm install
npm run build
npm install -g .

The global npm bin directory must be present in PATH before PowerShell can resolve ellygent.

npm bin -g
npm list -g --depth=0
where.exe ellygent

Troubleshooting PATH Issues

These sections cover the most common Windows-specific installation failures.

VS Code caches PATH when it starts. If the installer completed successfully in PowerShell, restarting VS Code usually fixes the integrated terminal immediately.

# Close all VS Code windows completely
# Reopen VS Code
# Open a new PowerShell terminal
ellygent --help
$env:Path += ";$env:APPDATA\npm"
ellygent --help

These commands show whether the current terminal can see the install directory and the resolved binary.

npm bin -g
where.exe ellygent
Get-Command ellygent
[Environment]::GetEnvironmentVariable("Path", "User")

Use this only if npm installed the CLI successfully but PowerShell still cannot resolve the global npm bin directory.

$userPath = [Environment]::GetEnvironmentVariable("Path", "User")
$npmBin = npm bin -g

if ($userPath -notlike "*$npmBin*") {
    [Environment]::SetEnvironmentVariable("Path", "$userPath;$npmBin", "User")
}

Multiple Ellygent CLI Installations

If you installed both an older binary-based CLI and the new npm/GitHub workflow, whichever command is first in PATH wins.

where.exe ellygent
npm bin -g
npm list -g --depth=0

If where.exe ellygent shows multiple locations, remove or deprioritize the older entry so the official binary is used first.

npm E404 when installing @ellygent/cli

Use either the PowerShell installer wrapper or a direct GitHub checkout installation.

irm https://ellygent.com/cli/install.ps1 | iex
git clone --depth 1 https://github.com/EEQuality/ellygent-cli.git
Set-Location ellygent-cli
npm install
npm run build
npm install -g .
where.exe ellygent
ellygent --version

Common Issues & Solutions

Symptoms:

Error: 401 Unauthorized or login failed

Common Causes:
  • Invalid or expired Personal Access Token

  • Wrong API URL

  • An older CLI build is being resolved first

Solutions:

1. Verify token format

# Confirm the token starts with elly_pat_
# Then retry with the same PAT

2. Check API URL

ellygent config
# Verify api-url is correct

3. Regenerate PAT

# Go to Account -> Personal Access Tokens in the web UI
# Revoke the old token and create a new one

4. Retry PAT login

ellygent auth login --token <your-personal-access-token>
ellygent whoami

Symptoms:

ECONNREFUSED, ETIMEDOUT, or unable to reach the API

Common Causes:
  • Firewall or proxy blocking connections

  • Incorrect API URL

  • API service is down

Solutions:

1. Check API URL

ellygent config
# Verify api-url is correct and accessible

2. Test connectivity

curl https://www.ellygent.com/api/health
# Should return 200 OK

3. Configure proxy if needed

export HTTP_PROXY=http://proxy.example.com:8080
export HTTPS_PROXY=http://proxy.example.com:8080

4. Check firewall

# Ensure outbound HTTPS (443) is allowed
# Contact IT if behind a corporate firewall

Symptoms:

Sync command fails, ZIP extraction errors, or missing files

Common Causes:
  • Network interruption during download

  • Insufficient disk space

  • Corrupt ZIP package

  • Project or version not found

Solutions:

1. Verify project and version exist

ellygent context projects --org <org-name>
ellygent context versions --project <project-id>

2. Check disk space

df -h .  # Unix/macOS
# Ensure sufficient free space

3. Retry sync

ellygent context pull --project <project-id> --version <version>

4. Clean and retry

rm -rf .ellygent/
ellygent context pull --project <project-id> --version <version>

Symptoms:

Token expired or invalid token errors

Common Causes:
  • PAT was revoked

  • The stored token no longer has access

  • A different CLI install is being used

Solutions:

1. Re-authenticate

ellygent auth login --token <your-personal-access-token>

2. Generate new PAT

# Go to Account -> Personal Access Tokens
# Create a new token and update environment

3. Clear and re-login

rm ~/.ellygent/config.json
ellygent auth login --token <your-personal-access-token>

Getting Help

Gather Diagnostic Info
# System information
node --version
npm --version
ellygent --help
ellygent --version

# Current configuration
ellygent config

# Environment variables
Get-ChildItem Env:ELLYGENT*

# Recent error messages
ellygent <command> 2>&1 | Tee-Object error.log
Contact Support
Previous: CI/CD IntegrationNext: Reference