Skip to main content
Gleef CLI provides a simple set of commands to manage your translation workflow. Each command is designed to handle a specific aspect of the localization process.

Available Commands

gleef init

Initialize Gleef in your project by detecting locale files and creating configuration

gleef login

Authenticate with Gleef using your API key

gleef push

Push new and updated translation keys to Gleef

gleef translate

Generate AI translations and merge them back into your local files

gleef pull

Get the latest translations from Gleef and update local files

Command Reference

Core Commands

Global Flags

All commands support these global flags:

Getting Help

Get help for any command using the --help flag:
You can also use the dedicated help command:

Command Workflow

Here’s the typical workflow using Gleef CLI commands:
1

Initial Setup

2

Push New Content

3

Sync Updates

4

Ongoing Development

Command Examples

Basic Usage

Advanced Usage

Error Handling

All commands provide clear error messages and exit codes:
  • Exit code 0: Command completed successfully
  • Exit code 1: Command failed with an error
Common error scenarios:
  • Authentication errors: Run gleef login to re-authenticate
  • Configuration errors: Check your .gleef/config.json file
  • Network errors: Verify your internet connection and API access
  • File errors: Ensure your locale files are properly formatted

Next Steps

Workflow Guide

Learn best practices for using these commands together

Configuration

Customize CLI behavior with configuration options