KosmoKrator

productivity

Immigrant CLI for Headless Automation

Use the Immigrant CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write Bearer token auth

Immigrant 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 Immigrant CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Immigrant CLI for Headless Automation
kosmokrator integrations:configure immigrant --set access_token="$IMMIGRANT_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call immigrant.immigrant_list_applications '{"limit":1,"page":1,"status":"example_status"}' --json

Discovery Before Execution

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

kosmo integrations:docs immigrant --json
kosmo integrations:docs immigrant.immigrant_list_applications --json
kosmo integrations:schema immigrant.immigrant_list_applications --json
kosmo integrations:search "Immigrant" --json
kosmo integrations:list --json

Useful Immigrant CLI Functions

FunctionTypeParametersDescription
immigrant.immigrant_list_applications Read limit, page, status List immigration applications. Returns a paginated list of applications, optionally filtered by status.
immigrant.immigrant_get_application Read id Get details of a specific immigration application by its ID.
immigrant.immigrant_create_application Write type, applicant_name, details Create a new immigration application. Requires a type and applicant name. Optionally provide additional details.
immigrant.immigrant_list_documents Read application_id, limit, page List documents for a specific immigration application. Returns a paginated list of documents.
immigrant.immigrant_get_document Read id Get details of a specific document by its ID.
immigrant.immigrant_list_statuses Read none List all available immigration application statuses. Use this to understand valid status values for filtering.
immigrant.immigrant_get_current_user Read none Get the profile of the currently authenticated Immigrant user. Use this to verify credentials and see user details.

Automation Notes

Related Immigrant CLI Pages