analytics
Microsoft Power BI CLI for CI
Use the Microsoft Power BI CLI for CI with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 7 read 0 write Manual OAuth token auth
Microsoft Power BI CLI for CI
Run integration calls from CI jobs with JSON output, explicit credentials, and predictable exit status.
Use this shape when a pipeline needs to read or update an external service. 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 CI
kosmokrator integrations:configure powerbi --set access_token="$POWERBI_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call powerbi.powerbi_list_workspaces '{"top":1}' --json Discovery Before Execution
Agents and scripts can inspect Microsoft Power BI docs and schemas before choosing a function.
kosmo integrations:docs powerbi --json
kosmo integrations:docs powerbi.powerbi_list_workspaces --json
kosmo integrations:schema powerbi.powerbi_list_workspaces --json
kosmo integrations:search "Microsoft Power BI" --json
kosmo integrations:list --json Useful Microsoft Power BI CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
powerbi.powerbi_list_workspaces | Read | top | List Power BI workspaces (groups) the authenticated user has access to. Returns workspace IDs and names that can be used to query datasets and reports. |
powerbi.powerbi_get_workspace | Read | id | Get details for a specific Power BI workspace (group) by its ID. |
powerbi.powerbi_list_datasets | Read | workspace_id | List datasets within a Power BI workspace. Returns dataset IDs, names, and configuration details. |
powerbi.powerbi_get_dataset | Read | workspace_id, dataset_id | Get details for a specific Power BI dataset within a workspace, including schema and refresh configuration. |
powerbi.powerbi_list_reports | Read | workspace_id | List reports within a Power BI workspace. Returns report IDs, names, embed URLs, and associated dataset IDs. |
powerbi.powerbi_get_report | Read | workspace_id, report_id | Get details for a specific Power BI report within a workspace, including embed URL and associated dataset. |
powerbi.powerbi_get_current_user | Read | none | Get the authenticated user's Power BI profile, including display name and email address. |
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.