> ## Documentation Index
> Fetch the complete documentation index at: https://docs.widgetic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Find a command

> Every widgetic command is one endpoint of the REST API or one tool of the MCP server. How to go from an endpoint to its command, how commands are named, and how to look one up in the terminal.

The commands of `widgetic api` are generated from the contracts that describe the endpoints of the REST API, and the commands of `widgetic mcp` from the ones that describe the tools of the [MCP server](https://docs.widgetic.com/docs/agents/overview.md). So this site keeps no separate list of commands: the command is on the page of its endpoint, and the terminal describes it in full.

## From an endpoint to its command

Every endpoint page of the [API reference](https://docs.widgetic.com/api-reference/introduction.md) has a **CLI** tab beside the cURL and SDK tabs. It shows the command for that endpoint with the flags it needs, ready to copy. [List Widgets](https://docs.widgetic.com/api-reference/widgets/get-widgets.md) has one.

The last two parts of the address of an endpoint page are the group and the command, so you can read one from the other:

| The page | Its command |
| - | - |
| `/api-reference/widgets/get-widgets` | `widgetic api widgets get-widgets` |
| `/api-reference/managed-users/create-managed-user` | `widgetic api managed-users create-managed-user` |

## How a command is named

* **`widgetic api <group> <command>`** runs an endpoint. The command is the name the libraries give the call, written with dashes: `getWidgets`, `GetWidgets` and the other spellings of that name are all `get-widgets` ([how a call is named](https://docs.widgetic.com/docs/sdks/api-classes.md#how-a-call-is-named)). A few commands also answer to a shorter name, such as `list` for `get-widgets`, and `--help` shows both as `get-widgets|list`.
* **`widgetic api call <operationId>`** runs an endpoint by that name without its group: `widgetic api call getWidgets`.
* **`widgetic mcp <command>`** runs a tool. The command is the name of the tool with dashes, so the tool `create_widget` is `widgetic mcp create-widget`, and `widgetic mcp call create_widget` runs it by the tool's own name. [Tools](https://docs.widgetic.com/docs/agents/tools.md) lists every tool with what it does and what it costs.

## In the terminal

These work offline, need no key and describe the version you have installed:

```bash theme={"theme":"css-variables"}
widgetic api --help                      # the groups of the REST API
widgetic api widgets --help              # the commands of one group
widgetic api widgets get-widgets --help  # what one command takes, flag by flag
widgetic schema api widgets get-widgets  # all of it, with the input's JSON Schema
widgetic mcp --help                      # the commands that run the tools
widgetic docs index                      # the index of every command
```

[Configuration](https://docs.widgetic.com/docs/cli/configuration.md#look-things-up) says how to point an agent at them.

## Flags

The parameters of an endpoint, in its path or its query string, and the fields of its body are flags, written with dashes: `canvasId` is `--canvas-id`. `--data` takes the whole body as JSON, as `@file.json` or as `-` for standard input, and the flags override its keys. A tool takes `--input` the same way. Every command also takes `--json` and `--dry-run`, and a few more: see [Scripts and CI](https://docs.widgetic.com/docs/cli/scripts-and-ci.md#output-for-programs).

## The groups of the REST API

Each row links to one endpoint of the group in the API reference. [Keys and workspaces](https://docs.widgetic.com/docs/cli/keys-and-workspaces.md#which-commands-need-which-key) says which commands need a partner key.

| Group | What it covers | In the API reference |
| - | - | - |
| `brand-kit` | Your Brand Kit: the colors, fonts, icons and notes that every new widget follows. | [Brand Kit](https://docs.widgetic.com/api-reference/brand-kit/get-brand-kit.md) |
| `canvases` | The canvases that hold your widgets. | [Canvases](https://docs.widgetic.com/api-reference/canvases/get-all-canvases.md) |
| `compositions` | What is made from a widget: its content, design, preview, versions, data and embed settings. | [Compositions](https://docs.widgetic.com/api-reference/compositions/get-all-compositions.md) |
| `credits` | A credit balance and the ledger behind it. | [Credits](https://docs.widgetic.com/api-reference/credits/get-user-credit-balance.md) |
| `entitlements` | What a partner and its managed users are entitled to. | [Entitlements](https://docs.widgetic.com/api-reference/entitlements/get-partner-entitlements.md) |
| `invoices` | A partner's invoices. | [Invoices](https://docs.widgetic.com/api-reference/invoices/get-invoices-by-partner-id.md) |
| `managed-users` | A partner's managed users: their limits, design defaults and editor sessions. | [Managed Users](https://docs.widgetic.com/api-reference/managed-users/get-all-managed-users.md) |
| `operations` | The status of work that goes on after the call that started it has answered. | [Operations](https://docs.widgetic.com/api-reference/operations/get-operation.md) |
| `organizations` | The websites a workspace allows to show its widgets. | [Organizations](https://docs.widgetic.com/api-reference/organizations/get-organization-domains.md) |
| `partners` | A partner account: analytics, billing, presets, notifications, storage and data. | [Partners](https://docs.widgetic.com/api-reference/partners/get-my-partners.md) |
| `tokens` | Whether the key you send is valid. | [Tokens](https://docs.widgetic.com/api-reference/tokens/validate-token.md) |
| `uploads` | The files you upload, and the upload limits. | [Uploads](https://docs.widgetic.com/api-reference/uploads/list-uploads.md) |
| `users` | Your account: the keys of the services your widgets' adapters act through (adapter connections). | [Users](https://docs.widgetic.com/api-reference/users/get-user-adapter-connections.md) |
| `widgets` | Your library of widgets: list and create them, and start a composition from one. | [Widgets](https://docs.widgetic.com/api-reference/widgets/get-widgets.md) |
| `workflows` | Workflows: create, edit, publish, pause and archive them, and restore their versions. | [Workflows](https://docs.widgetic.com/api-reference/workflows/list-workspace-workflows.md) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.