Complete reference for all Roblox Slang CLI commands.
Available for all commands:
roblox-slang [OPTIONS] <COMMAND>Options:
-h, --help- Show help information-V, --version- Show version information
Examples:
roblox-slang --version
roblox-slang --help
roblox-slang build --helpInitialize a new Roblox Slang project.
Usage:
roblox-slang init [OPTIONS]Options:
--with-overrides- Create overrides.yaml template
Examples:
# Basic initialization
roblox-slang init
# With overrides template
roblox-slang init --with-overridesCreates:
slang-roblox.yaml- Configuration filetranslations/- Empty directory for translation filesoverrides.yaml- (if --with-overrides) Override template
Build translations and generate Luau code.
Usage:
roblox-slang build [OPTIONS]Options:
-w, --watch- Watch mode (auto-rebuild on changes)
Examples:
# One-time build
roblox-slang build
# Watch mode
roblox-slang build --watchGenerates:
output/Translations.lua- Main moduleoutput/types/Translations.d.luau- Type definitionsoutput/roblox_upload.csv- CSV for Roblox Cloud
Exit Codes:
0- Success1- Build error
Import translations from a Roblox CSV file.
Usage:
roblox-slang import <CSV_FILE>Arguments:
<CSV_FILE>- Path to the CSV file to import
Examples:
# Import from Roblox CSV
roblox-slang import existing_table.csv
# Import downloaded translations
roblox-slang import downloaded_translations.csvOutput:
Converts CSV to JSON format in translations/ directory.
Validate translations for errors and inconsistencies.
Usage:
roblox-slang validate [OPTIONS]Options:
--missing- Check for missing translations--unused- Check for unused keys--conflicts- Check for conflicts--coverage- Show coverage report--source <DIR>- Source directory to scan for unused keys--all- Run all checks
Examples:
# Check for missing translations
roblox-slang validate --missing
# Check for unused keys
roblox-slang validate --unused --source src/
# Run all checks
roblox-slang validate --all
# Multiple checks
roblox-slang validate --missing --conflicts --coverageChecks:
- Missing translations - Keys in base locale but not in others
- Unused keys - Defined but never used in source code
- Conflicts - Duplicate keys or conflicting definitions
- Coverage - Translation coverage percentage per locale
Exit Codes:
0- No issues found1- Issues found
Migrate translations from another format.
Usage:
roblox-slang migrate --from <FORMAT> --input <FILE> --output <FILE> [OPTIONS]Options:
--from <FORMAT>- Format to migrate from (custom-json, gettext)--input <FILE>- Input file path--output <FILE>- Output file path--transform <TRANSFORM>- Key transformation strategy (snake-to-camel, upper-to-lower, dot-to-nested, none)
Examples:
# Migrate from custom JSON
roblox-slang migrate --from custom-json --input old.json --output translations/en.json
# Migrate from gettext
roblox-slang migrate --from gettext --input translations.po --output translations/en.json
# With key transformation
roblox-slang migrate --from custom-json --input old.json --output new.json --transform snake-to-camelSupported Formats:
custom-json- Custom JSON formatgettext- GNU gettext (.po files)
Key Transformation Strategies:
none- Keep keys as-issnake-to-camel- Convertui_button_buy→uiButtonBuyupper-to-lower- ConvertUI_BUTTON_BUY→ui_button_buydot-to-nested- Convert flat keys to nested structure
All commands use slang-roblox.yaml in the current directory.
Example:
base_locale: en
supported_locales:
- en
- es
- id
input_directory: translations
output_directory: outputSee Configuration Guide for complete reference.
All commands use standard exit codes:
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error |
# 1. Initialize project
roblox-slang init
# 2. Create translations
# (edit translations/en.json, translations/es.json, etc.)
# 3. Validate
roblox-slang validate --all
# 4. Build
roblox-slang build
# 5. Use in game
# (copy output/Translations.lua to your project)# Start watch mode
roblox-slang build --watch
# In another terminal, edit translations
# Watch mode auto-rebuilds on save# 1. Export from Roblox Cloud
# (download CSV from Creator Dashboard)
# 2. Import to Roblox Slang
roblox-slang import roblox_export.csv
# 3. Build
roblox-slang build# Check for missing translations
roblox-slang validate --missing
# Check for unused keys in source code
roblox-slang validate --unused --source src/
# Full validation
roblox-slang validate --all --source src/# Check installation
which roblox-slang
# Reinstall
rokit install # or aftman install, foreman install# Validate first
roblox-slang validate --all
# Check config
cat slang-roblox.yaml
# Check translation files
ls -la translations/# Check CSV format
head roblox_export.csv
# Verify file exists
ls -la roblox_export.csv- Getting Started - Initial setup
- Configuration - Config file reference
- Roblox Cloud Integration - Upload to Roblox Cloud
- Rojo Integration - Use with Rojo