Skip to main content
This guide covers common issues you might encounter when using Gleef CLI and provides step-by-step solutions to resolve them.

Installation Issues

Node.js Version Compatibility

Error:
Solution:
  1. Check current version: node --version
  2. Update Node.js: Download latest from nodejs.org
  3. Or use nvm:

Permission Errors

Error:
Solution (macOS/Linux):
Solution (Windows):
  1. Run Command Prompt as Administrator
  2. Install the CLI: npm install -g @gleef/cli

Network/Firewall Issues

Error:
Solution:
  1. Check internet connection
  2. Configure corporate proxy:
  3. Use different registry:

Authentication Issues

Invalid API Key

Error:
Solution:
  1. Verify key format: API keys start with gl_ followed by alphanumeric characters
  2. Check for extra characters: Remove any spaces or newlines from the key
  3. Generate new key: Visit https://app.gleef.eu/settings/api-keys
  4. Re-authenticate:

Authentication Storage Issues

Error:
Solution (macOS/Linux):
Solution (Windows):

Network Authentication Issues

Error:
Solution:
  1. Check DNS: nslookup api.gleef.eu
  2. Try different DNS:
  3. Corporate firewall: Contact IT to whitelist *.gleef.eu
  4. VPN issues: Try without VPN or with different VPN server

Configuration Issues

No Files Detected During Init

Error:
Solutions:
  1. Check file extensions:
  2. Check .gitignore exclusions:
  3. Manual configuration:

Invalid Configuration File

Error:
Solution:
  1. Validate JSON syntax:
  2. Common JSON errors:
    • Missing quotes around keys
    • Trailing commas
    • Unclosed brackets/braces
  3. Reset configuration:

Pattern Matching Issues

Error:
Solution:
  1. Fix pattern syntax:
  2. Test patterns:

Command Execution Issues

”Nothing new to push” When Expecting Changes

Issue: Running gleef push shows no changes despite having new keys. Solutions:
  1. Check if files have actual changes:
  2. Verify configuration patterns or run:
  3. Check for conflicts:
  4. Reset and retry:

Pull Command Not Updating Files

Issue: gleef pull claims to update files but no changes appear locally. Solutions:
  1. Check file permissions:
  2. Verify files match patterns:
  3. Check if translations are approved in Gleef Studio
  4. Force full sync:
  5. Remove .gleef/lock.json

Conflict Resolution Issues

Error:
Solutions:
  1. Accept remote changes:
  2. Keep local changes:
    • Update the conflicting key in Gleef Studio to match your local version
    • Run gleef push again
  3. Manual resolution:
    • Decide on the correct value
    • Update both locally and in Gleef Studio
    • Run gleef push

File Format Issues

JSON Syntax Errors

Error:
Solution:
  1. Find the problematic file:
  2. Common JSON issues:
    • Trailing commas: {"key": "value",}{"key": "value"}
    • Unescaped quotes: "He said "hello"""He said \"hello\""
    • Missing commas: {"a": "b" "c": "d"}{"a": "b", "c": "d"}
  3. Fix with automated tools:

XML Format Issues

Error:
Solution:
  1. Validate XML:
  2. Common XML issues:
    • Unclosed tags: <string name="key">value<string name="key">value</string>
    • Invalid characters: &&amp;, <&lt;, >&gt;
    • Missing declarations: Add <?xml version="1.0" encoding="UTF-8"?>

YAML Format Issues

Error:
Solution:
  1. Validate YAML:
  2. Common YAML issues:
    • Indentation: Use consistent spaces (not tabs)
    • Missing quotes: key: value with: colonkey: "value with: colon"
    • List formatting: Ensure proper - spacing

Performance Issues

Slow Translation Processing

Issue: gleef push or gleef translate takes very long to complete. Solutions:
  1. Use pattern matching:
  2. Check file sizes:
  3. Optimize patterns:

High Memory Usage

Issue: CLI uses excessive memory during processing. Solutions:
  1. Process files in batches:
  2. Reduce file sizes: Split large translation files into smaller ones
  3. Close other applications: Free up system memory

Recovery Procedures

Complete Reset

If you encounter persistent issues, try a complete reset:

Configuration Recovery

If your configuration is corrupted:

File Recovery

If translation files are corrupted:

Getting Help

Diagnostic Information

When reporting issues, include this diagnostic info:

Log Files

Enable verbose logging for debugging:
Contact Gleef to enable verbose/debug mode.

Support Channels

Next Steps

Best Practices

Learn techniques to prevent common issues and optimize your workflow

Commands Reference

Review all available commands and their options