productivity
Lokalise CLI for Headless Automation
Use the Lokalise CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write API token auth
Lokalise CLI for Headless Automation
Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.
Use headless automation when another tool needs a stable local command surface. 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 Headless Automation
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
| Function | Type | Parameters | Description |
|---|---|---|---|
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
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.