KosmoKrator

productivity

Lokalise CLI for Shell Scripts

Use the Lokalise CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write API token auth

Lokalise CLI for Shell Scripts

Call integration functions from shell scripts with stable JSON input and output.

Use shell scripts for small local automations that need one or more integration calls. The Lokalise CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Lokalise CLI for Shell Scripts
kosmokrator integrations:configure lokalise --set api_token="$LOKALISE_API_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call lokalise.lokalise_list_projects '{"limit":1,"page":1}' --json

Discovery Before Execution

Agents and scripts can inspect Lokalise docs and schemas before choosing a function.

kosmo integrations:docs lokalise --json
kosmo integrations:docs lokalise.lokalise_list_projects --json
kosmo integrations:schema lokalise.lokalise_list_projects --json
kosmo integrations:search "Lokalise" --json
kosmo integrations:list --json

Useful Lokalise CLI Functions

FunctionTypeParametersDescription
lokalise.lokalise_list_projects Read limit, page List Lokalise projects. Returns project IDs, names, languages, and other metadata. Supports pagination.
lokalise.lokalise_get_project Read project_id Get details of a specific Lokalise project. Returns project name, description, languages, statistics, and settings.
lokalise.lokalise_list_keys Read project_id, limit, page List translation keys in a Lokalise project. Returns key IDs, names, platforms, and other metadata. Supports pagination.
lokalise.lokalise_get_key Read project_id, key_id Get details of a specific translation key in a Lokalise project. Returns key name, platforms, translations, and other metadata.
lokalise.lokalise_create_key Write project_id, key_name, platforms, translations, description, tags Create a new translation key in a Lokalise project. The key name and optional translations for each language can be provided.
lokalise.lokalise_list_translations Read project_id, limit, page List translations in a Lokalise project. Returns translation values, language codes, and key references. Supports pagination.
lokalise.lokalise_get_current_user Read none Get the currently authenticated Lokalise user. Returns user email, name, and account details.

Automation Notes

Related Lokalise CLI Pages