CLI

Reference documentation for YAML8n’s CLI

Arguments

Arguments must be entered before commands.

-c [code]

Check/validate a specific language code.

-d

Enable debug logging.

-j

Output JSON instead of YAML.

-n

Disable colored log output.

-w

Fail on translation warnings, like missing translations.

Commands

generate [path]

Generate code for the outputs specified within the Translations located at path.

translate [path]

Add missing translations for the Translations located at path using Google Cloud Translation API. See Guides/Add Missing Translations for more information.

validate [path]

Lint and validate the Translations located at path.

version

Print the current version of YAML8n.

watch [path]

Watch the Translations located at path for changes and generate code for the outputs specified within on change.