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
Copy file name to clipboardExpand all lines: README.md
+83-5Lines changed: 83 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,27 @@
2
2
3
3
CLI client for [Daptin](https://github.com/daptin/daptin) — the headless CMS and API server.
4
4
5
-
All Daptin entities are accessed uniformly via CRUD commands. All Daptin actions (signin, signup, upload, export, etc.) are executed uniformly via `execute`. No special-case commands.
5
+
All Daptin entities are accessed uniformly via CRUD commands, and all Daptin actions can be executed uniformly via `execute`. Common workflows such as cloud storage and file asset uploads also have ergonomic wrapper commands.
6
+
7
+
## Discovery
8
+
9
+
The CLI is self-describing. Start with:
10
+
11
+
```bash
12
+
daptin-cli --help
13
+
daptin-cli list --help
14
+
daptin-cli execute --help
15
+
daptin-cli describe action --help
16
+
daptin-cli storage --help
17
+
daptin-cli asset --help
18
+
```
19
+
20
+
For any Daptin action, use `describe action` before `execute` to see whether the action needs an instance reference id and which input fields it accepts:
Direct `storage ls` and `storage download` for `cloud_store` paths are intentionally not implemented as direct cloud-store commands because Daptin exposes those flows through site file actions and asset routes, not direct `cloud_store` actions.
284
+
285
+
## Asset Columns
286
+
287
+
Use `asset` for `file.*` columns on normal entity rows. These commands use Daptin's `/asset/...` routes.
Description: "These commands wrap Daptin's cloud_store records and supported cloud_store actions. Direct cloud_store ls/download are not exposed by Daptin; use site file actions or asset routes for those flows.",
0 commit comments