Troubleshooting
Common issues, error messages, and solutions for the Ellygent CLI.
Quick Diagnostic
Run these commands to gather diagnostic information:
# Check CLI version
ellygent --version
# Check Node.js version
node --version
# View current configuration
ellygent config
# Test API connectivity
curl https://api.ellygent.com/health
# Check environment variables
env | grep ELLYGENTCommon Issues & Solutions
Symptoms:
Error: 401 Unauthorized or Login failed
Common Causes:
Incorrect email or password
Invalid or expired Personal Access Token
Wrong API URL
Solutions:
1. Verify credentials
# Check your email and password
# Or verify PAT starts with elly_pat_2. Check API URL
ellygent config
# Verify api-url is correct3. Regenerate PAT
# Go to Account → Personal Access Tokens in web UI
# Revoke old token and create a new one4. Test login interactively
ellygent auth login
# Follow prompts to verify credentials workSymptoms:
ellygent: command not found or 'ellygent' is not recognized
Common Causes:
CLI not installed globally
npm global bin directory not in PATH
Node.js not installed or outdated
Solutions:
1. Install CLI globally
npm install -g @ellygent/cli2. Verify installation
npm list -g @ellygent/cli3. Check PATH (Unix/macOS)
echo $PATH
npm config get prefix
# Ensure npm global bin is in PATH4. Check PATH (Windows)
echo %PATH%
npm config get prefix
# Add npm global path to system PATHSymptoms:
ECONNREFUSED, ETIMEDOUT, or Unable to reach 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 accessible2. Test connectivity
curl https://api.ellygent.com/health
# Should return 200 OK3. Configure proxy (if needed)
export HTTP_PROXY=http://proxy.example.com:8080
export HTTPS_PROXY=http://proxy.example.com:80804. Check firewall
# Ensure outbound HTTPS (443) is allowed
# Contact IT if behind corporate firewallSymptoms:
EACCES: permission denied or Access denied writing config
Common Causes:
Insufficient file system permissions
Config directory not writable
npm global install requires sudo
Solutions:
1. Fix npm permissions (recommended)
# Configure npm to use a directory in your home folder
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc2. Install with user permissions
npm install -g @ellygent/cli --unsafe-perm3. Check config directory permissions
ls -la ~/.ellygent/
# Should be owned by your user
chmod 755 ~/.ellygent/
chmod 600 ~/.ellygent/config.jsonSymptoms:
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 space3. 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:
Unexpected token, invalid JSON, or parse errors
Common Causes:
Mixing output formats
Piping non-JSON output to jq
Corrupt API response
Solutions:
1. Explicitly request JSON
ellygent context projects --org <org-name> --format json2. Validate JSON before parsing
ellygent context projects --org <org-name> -f json | jq . > /dev/null
# Check for errors before processing3. Check for error messages
# Read the full output before piping to jq
ellygent context projects --org <org-name> -f jsonSymptoms:
Token expired or Invalid token errors
Common Causes:
Access token has expired
PAT was revoked
Refresh token is invalid
Solutions:
1. Re-authenticate
ellygent auth login2. Generate new PAT
# Go to Account → Personal Access Tokens
# Create new token and update environment3. Clear and re-login
rm ~/.ellygent/config.json
ellygent auth loginPlatform-Specific Issues
Windows
Execution Policy Errors
PowerShell may block script execution.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserPath Issues
Ensure npm global bin is in system PATH.
npm config get prefix\n# Add this path to System Environment Variables
macOS
Command Line Tools Missing
xcode-select --installNode.js Installation
If you don't have Node.js installed, download it from nodejs.org or use Homebrew:
brew install node\nnpm install -g @ellygent/cli
Linux
Permission Issues
# Use node version manager (nvm) instead of system Node.js\ncurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash\nnvm install 18\nnpm install -g @ellygent/cli
Getting Help
Gather Diagnostic Info
# System information
ellygent --version
node --version
npm --version
# Current configuration
ellygent config
# Environment variables
env | grep ELLYGENT
# Recent error messages
ellygent <command> 2>&1 | tee error.logContact Support
Email: support@ellygent.com
GitHub Issues: ellygent-cli/issues
Documentation: Getting Started Guide