analytics
Microsoft Power BI CLI for Headless Automation
Use the Microsoft Power BI CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.
6 functions 6 read 0 write Bearer token auth
Microsoft Power BI 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 Microsoft Power BI CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Microsoft Power BI CLI for Headless Automation
kosmokrator integrations:configure microsoft_powerbi --set access_token="$MICROSOFT_POWERBI_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call microsoft_powerbi.powerbi_list_reports '{}' --json Discovery Before Execution
Agents and scripts can inspect Microsoft Power BI docs and schemas before choosing a function.
kosmo integrations:docs microsoft_powerbi --json
kosmo integrations:docs microsoft_powerbi.powerbi_list_reports --json
kosmo integrations:schema microsoft_powerbi.powerbi_list_reports --json
kosmo integrations:search "Microsoft Power BI" --json
kosmo integrations:list --json Useful Microsoft Power BI CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
microsoft_powerbi.powerbi_list_reports | Read | none | List all Power BI reports the authenticated user has access to. Returns report names, IDs, embed URLs, and workspace associations. |
microsoft_powerbi.powerbi_get_report | Read | report_id | Get details of a specific Power BI report by ID. Returns the report name, embed URL, dataset ID, and other metadata. |
microsoft_powerbi.powerbi_list_datasets | Read | none | List all Power BI datasets the authenticated user has access to. Returns dataset names, IDs, and workspace associations. |
microsoft_powerbi.powerbi_get_dataset | Read | dataset_id | Get details of a specific Power BI dataset by ID. Returns the dataset name, tables, default mode, and other metadata. |
microsoft_powerbi.powerbi_list_workspaces | Read | none | List all Power BI workspaces (groups) the authenticated user has access to. Returns workspace names, IDs, and isolation modes. |
microsoft_powerbi.powerbi_get_current_user | Read | none | Get the profile of the currently authenticated Power BI user. Returns display name, email address, and user identity 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.