You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`context`|`list`, `show`, `pull`, `push`| Workspace Markdown context (e.g. data model `DATAMODEL`) via the context API |
68
69
|`query`|| Execute a SQL query |
69
70
|`queries`|`list`| Inspect query run history |
70
71
|`search`|| Full-text search across a table column |
@@ -147,6 +148,22 @@ hotdata datasets create --url "https://example.com/data.parquet" --label "My Dat
147
148
- Format is auto-detected from file extension or content.
148
149
- Piped stdin is supported: `cat data.csv | hotdata datasets create --label "My Dataset"`
149
150
151
+
## Workspace context
152
+
153
+
Named Markdown documents for a workspace (data model, glossary, etc.) are stored in the **context API**. The CLI treats the server as the **source of truth**; local files are only used where the tool requires a path on disk.
154
+
155
+
```sh
156
+
hotdata context list [-w <id>] [--prefix <stem>] [-o table|json|yaml]
-**`show`** prints Markdown to stdout (no local file needed). Use this to read the workspace data model in scripts or agents.
163
+
-**`pull`** writes `./<name>.md` in the **current directory** from the API. Refuses to overwrite an existing file unless `--force`.
164
+
-**`push`** reads `./<name>.md` and upserts that name in the workspace. Use after editing the file in your project directory.
165
+
- Names follow SQL identifier rules (ASCII letters, digits, underscore; max 128 characters; SQL reserved words are not allowed). The usual stem for the semantic data model is **`DATAMODEL`** (file **`DATAMODEL.md`** for push/pull only).
0 commit comments