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

> ## Agent Instructions
> Choose User guide for browser tasks, Developers for CLI, SDK and external agents, and Administration for organization management.
> Confirm identity and organization/project context before operations. Documentation access does not grant ThinkPlatform permissions.
> Review side effects, verify changes with a read, and do not blindly retry an operation with an uncertain outcome.
> Use documented UI steps for the web app and documented public CLI or SDK interfaces for automation. Follow each page’s prerequisites and authentication requirements.

# Business workflow commands

> Build workflows with database tables, files, flows, and user interfaces.

These examples assume an authenticated active saved profile with the intended organization and project. Confirm it with `tp context show` before running commands. Add root `--json` before the command when machine parsing needs JSON output; use root `--profile <name>` only to override the active profile.

## Check context and available resources

```bash theme={"system"}
tp auth whoami
tp context show
tp db tables list
tp datalake tree --path data/
tp flows list
tp home pages list
tp dynamic-ui list
```

## Shared database state

```bash theme={"system"}
tp db tables create --body @table.json --dry-run
tp db tables create --body @table.json
tp db rows create --table-id <table_id> --body @row.json --dry-run
tp db rows update --table-id <table_id> --row-id <row_id> --body @patch.json --dry-run
tp db rows query --table-id <table_id> --body '{"filters":[],"sort":[],"page":1,"page_size":5}'
```

## Files and Data Lake

```bash theme={"system"}
tp datalake upload-file --local-path ./input.csv --remote-path workflows/demo/input.csv --dry-run
tp datalake preview --path workflows/demo/input.csv
tp datalake upload-dir --local-dir ./outputs --remote-prefix workflows/demo/outputs --dry-run
tp datalake list --path workflows/demo/
```

## Flows and actions

```bash theme={"system"}
tp flows create --name "Example flow" --body @flow.json --dry-run
tp flows create --name "Example flow" --body @flow.json
tp flows save <flow_id> --data @flow-data.json --dry-run
tp flows run <flow_id> --input @input.json
tp modules invoke <module_id> --tool <tool_name> --input @payload.json
```

## Canvas or Dynamic UI

```bash theme={"system"}
tp home pages apply --spec @workflow-page.json --create-if-missing --dry-run
tp home pages apply --spec @workflow-page.json --create-if-missing
tp dynamic-ui create --body @workflow-ui.json --dry-run
tp dynamic-ui create-html --html-file ./workflow.html --title "Workflow Panel" --dry-run
```

## Smoke test checklist

* Create or upload a sample input.
* Run the action through Flow/Module/Agent path.
* Confirm DB row state changed as expected.
* Confirm output file/report exists.
* Confirm Canvas/Dynamic UI shows action and output.


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