Invoice Ninja CLI Setup Invoice Ninja can be configured headlessly with `kosmokrator integrations:configure invoiceninja`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure invoiceninja --set api_token=" $INVOICENINJA_API_TOKEN " --enable --read allow --write ask --json
kosmokrator integrations:doctor invoiceninja --json
kosmokrator integrations:status --json Credentials
Authentication type: API token api_token. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Call Invoice Ninja Headlessly Use the generic call form when another coding CLI or script needs a stable universal interface.
kosmo integrations:call invoiceninja.invoiceninja_list_invoices '{
"per_page": 1,
"page": 1,
"client_id": "example_client_id",
"status": "example_status",
"number": "example_number",
"sort": "example_sort"
}' --json Use the provider shortcut form for shorter human-facing commands.
kosmo integrations:invoiceninja invoiceninja_list_invoices '{
"per_page": 1,
"page": 1,
"client_id": "example_client_id",
"status": "example_status",
"number": "example_number",
"sort": "example_sort"
}' --json Agent Discovery Commands
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs invoiceninja --json
kosmo integrations:docs invoiceninja.invoiceninja_list_invoices --json
kosmo integrations:schema invoiceninja.invoiceninja_list_invoices --json
kosmo integrations:search "Invoice Ninja" --json
kosmo integrations:list --json All CLI Functions
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Invoice Ninja.
invoiceninja.invoiceninja_list_invoices Read read List invoices from Invoice Ninja. Supports filtering by client, status, and date range with pagination.
per_page, page, client_id, status, number, sort kosmo integrations:call invoiceninja.invoiceninja_list_invoices '{"per_page":1,"page":1,"client_id":"example_client_id","status":"example_status","number":"example_number","sort":"example_sort"}' --json copy kosmo integrations:invoiceninja invoiceninja_list_invoices '{"per_page":1,"page":1,"client_id":"example_client_id","status":"example_status","number":"example_number","sort":"example_sort"}' --json copy
invoiceninja.invoiceninja_get_invoice Read read Get a single invoice from Invoice Ninja by ID. Returns full invoice details including line items, client info, and payment status.
id kosmo integrations:call invoiceninja.invoiceninja_get_invoice '{"id":"example_id"}' --json copy kosmo integrations:invoiceninja invoiceninja_get_invoice '{"id":"example_id"}' --json copy
invoiceninja.invoiceninja_create_invoice Write write Create a new invoice in Invoice Ninja. Requires a client_id and at least one line item. Supports custom due dates, partial deposits, and notes.
client_id, line_items, due_date, date, public_notes, private_notes, discount, is_amount_discount, tax_name1, tax_rate1, partial, partial_due_date kosmo integrations:call invoiceninja.invoiceninja_create_invoice '{"client_id":"example_client_id","line_items":"example_line_items","due_date":"example_due_date","date":"example_date","public_notes":"example_public_notes","private_notes":"example_private_notes","discount":1,"is_amount_discount":true}' --json copy kosmo integrations:invoiceninja invoiceninja_create_invoice '{"client_id":"example_client_id","line_items":"example_line_items","due_date":"example_due_date","date":"example_date","public_notes":"example_public_notes","private_notes":"example_private_notes","discount":1,"is_amount_discount":true}' --json copy
invoiceninja.invoiceninja_list_clients Read read List clients from Invoice Ninja. Supports filtering by name, email, and ID number with pagination.
per_page, page, search, id_number, sort kosmo integrations:call invoiceninja.invoiceninja_list_clients '{"per_page":1,"page":1,"search":"example_search","id_number":"example_id_number","sort":"example_sort"}' --json copy kosmo integrations:invoiceninja invoiceninja_list_clients '{"per_page":1,"page":1,"search":"example_search","id_number":"example_id_number","sort":"example_sort"}' --json copy
invoiceninja.invoiceninja_create_client Write write Create a new client in Invoice Ninja. Provide name and at least one contact with an email address.
name, contacts, id_number, vat_number, website, phone, address1, address2, city, state, postal_code, country_id, private_notes, public_notes kosmo integrations:call invoiceninja.invoiceninja_create_client '{"name":"example_name","contacts":"example_contacts","id_number":"example_id_number","vat_number":"example_vat_number","website":"example_website","phone":"example_phone","address1":"example_address1","address2":"example_address2"}' --json copy kosmo integrations:invoiceninja invoiceninja_create_client '{"name":"example_name","contacts":"example_contacts","id_number":"example_id_number","vat_number":"example_vat_number","website":"example_website","phone":"example_phone","address1":"example_address1","address2":"example_address2"}' --json copy
invoiceninja.invoiceninja_list_products Read read List products from Invoice Ninja. Supports filtering by product key, custom value, and text search with pagination.
per_page, page, product_key, sort, is_deleted kosmo integrations:call invoiceninja.invoiceninja_list_products '{"per_page":1,"page":1,"product_key":"example_product_key","sort":"example_sort","is_deleted":true}' --json copy kosmo integrations:invoiceninja invoiceninja_list_products '{"per_page":1,"page":1,"product_key":"example_product_key","sort":"example_sort","is_deleted":true}' --json copy
invoiceninja.invoiceninja_list_payments Read read List payments from Invoice Ninja. Supports filtering by client, invoice, status, and date range with pagination.
per_page, page, client_id, invoice_id, status, sort kosmo integrations:call invoiceninja.invoiceninja_list_payments '{"per_page":1,"page":1,"client_id":"example_client_id","invoice_id":"example_invoice_id","status":"example_status","sort":"example_sort"}' --json copy kosmo integrations:invoiceninja invoiceninja_list_payments '{"per_page":1,"page":1,"client_id":"example_client_id","invoice_id":"example_invoice_id","status":"example_status","sort":"example_sort"}' --json copy
invoiceninja.invoiceninja_get_current_user Read read Get the profile of the currently authenticated Invoice Ninja user. Useful for verifying connection details and account information.
none kosmo integrations:call invoiceninja.invoiceninja_get_current_user '{}' --json copy kosmo integrations:invoiceninja invoiceninja_get_current_user '{}' --json copy Function Schemas Use these parameter tables when building CLI payloads without calling integrations:schema first.
Operation Read read
Schema command kosmo integrations:schema invoiceninja.invoiceninja_list_invoices --json
Operation Read read
Schema command kosmo integrations:schema invoiceninja.invoiceninja_get_invoice --json
Operation Write write
Schema command kosmo integrations:schema invoiceninja.invoiceninja_create_invoice --json
Operation Read read
Schema command kosmo integrations:schema invoiceninja.invoiceninja_list_clients --json
Operation Write write
Schema command kosmo integrations:schema invoiceninja.invoiceninja_create_client --json
Operation Read read
Schema command kosmo integrations:schema invoiceninja.invoiceninja_list_products --json
Operation Read read
Schema command kosmo integrations:schema invoiceninja.invoiceninja_list_payments --json
Operation Read read
Schema command kosmo integrations:schema invoiceninja.invoiceninja_get_current_user --json Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.