Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions apps/docs/content/docs/cli/reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8837,6 +8837,38 @@ Prints a builder in brief (an example call, the required params with types, the

Exit codes: 0 printed; 1 no builder or namespace of that name (the closest one is named), or no cached catalog (run a get once).

### sim workflows source find

Print a block's code, edges and readers with line numbers (offline)

```bash
sim workflows source find <block> [options]
```

**Arguments**

<CommandTable>

| Argument | Required | Description |
| --- | --- | --- |
| `block` | Yes | Block name, key or identifier; a part of a name matches every block |

</CommandTable>

**Options**

<CommandTable>

| Option | Required | Description |
| --- | --- | --- |
| `--dir <dir>` | No | Workflow source directory to read. Defaults to `.`. |

</CommandTable>

Prints each block the name matches, read from the directory alone (no request is made): its declaration in workflow.ts with line numbers, its function file, the wiring statements of its incoming and outgoing edges, and every block that reads its outputs (a param, a branch, or a function file's $ref), each as file:line. &lt;block&gt; is a block name (Security Score), its key (securityscore) or its identifier (securityScore); with no exact match, every block whose name contains it is printed (at most 20). Run it from a workflow source directory, or pass --dir.

Exit codes: 0 printed; 1 no block matches (the closest name is suggested), or the directory is not a workflow source directory.

### sim workflows get

Get workflow
Expand Down
32 changes: 32 additions & 0 deletions apps/docs/content/docs/cli/workflows.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1569,6 +1569,38 @@ Without --server, each file created, edited or deleted since the directory was r

API request and response schemas: [getWorkflowSource](/api-reference/workflows/getWorkflowSource).

### Print a block's code, edges and readers with line numbers

Offline.

```bash
sim workflows source find <block> [options]
```

**Arguments**

<CommandTable>

| Argument | Required | Description |
| --- | --- | --- |
| `block` | Yes | Block name, key or identifier; a part of a name matches every block |

</CommandTable>

**Options**

<CommandTable>

| Option | Required | Description |
| --- | --- | --- |
| `--dir <dir>` | No | Workflow source directory to read. Defaults to `.`. |

</CommandTable>

Prints each block the name matches, read from the directory alone (no request is made): its declaration in workflow.ts with line numbers, its function file, the wiring statements of its incoming and outgoing edges, and every block that reads its outputs (a param, a branch, or a function file's $ref), each as file:line. &lt;block&gt; is a block name (Security Score), its key (securityscore) or its identifier (securityScore); with no exact match, every block whose name contains it is printed (at most 20). Run it from a workflow source directory, or pass --dir.

Exit codes: 0 printed; 1 no block matches (the closest name is suggested), or the directory is not a workflow source directory.

### Print a builder's params and outputs from the cached block catalog

Offline.
Expand Down
1 change: 1 addition & 0 deletions apps/docs/content/docs/workflows/code/coding-agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ For a whole workspace, use `sim workspaces source` with the same steps; see [Man

## Look things up

- `sim workflows source find <block>` prints one block of the workflow by name, key or identifier, from the directory without a request: its declaration with line numbers, its function file, its incoming and outgoing wiring and every block that reads its outputs, each as `file:line`. A part of a name prints every block it matches.
- `sim workflows source params <builder>` prints a builder in brief (an example call, the required params with types, the optional ones by name and the outputs) from the cached block catalog without a request. `--full` prints every param with its type, options, default and doc. A legacy builder names the one that replaces it, and a namespace such as `gmail` lists its builders.
- `sim workflows source resources` lists the tables, knowledge bases, credentials, workflows, skills, custom tools, MCP servers and environment variable names the file can name.
- `sim workflows source catalog` shows the block catalog the source is checked against.
Expand Down
Loading
Loading