@wafflebase/cli 0.6.7 → 0.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +42 -4
  2. package/dist/bin.js +7718 -5619
  3. package/package.json +4 -4
package/README.md CHANGED
@@ -57,10 +57,12 @@ rather than failing the whole export: one `src` you cannot fix must not cost
57
57
  you the export you asked for. The rest of the document still exports, minus
58
58
  those images.
59
59
 
60
- ## Command Tree (v0.3.7)
60
+ ## Command Tree
61
61
 
62
62
  Plural namespaces are canonical; singular forms are accepted as
63
- aliases for back-compat with earlier scripts.
63
+ aliases for back-compat with earlier scripts. `wafflebase schema` is the
64
+ machine-readable version of this tree — every command below has an entry
65
+ there carrying its parameters, response shape and safety level.
64
66
 
65
67
  ```
66
68
  wafflebase
@@ -75,7 +77,11 @@ wafflebase
75
77
  │ ├── delete <doc-id>
76
78
  │ ├── content <doc-id> --format json|md|text + --pages
77
79
  │ ├── export <doc-id> <file> --format pdf|docx + --pages (PDF)
78
- │ └── import <file> --replace <id> --yes for in-place
80
+ │ ├── import <file> --replace <id> --yes for in-place
81
+ │ └── set-content <doc-id> --data <json> | stdin (destructive)
82
+ │
83
+ │ slides and notes mirror docs: list / create / get / rename / delete /
84
+ │ content / export / import / set-content.
79
85
  │
80
86
  ├── sheets (aliases: sheet, spreadsheet, spreadsheets)
81
87
  │ ├── tabs (alias: tab)
@@ -88,7 +94,24 @@ wafflebase
88
94
  │ │ ├── batch <doc-id> --data <json> | stdin
89
95
  │ │ └── delete <doc-id> <ref>
90
96
  │ ├── import <doc-id> <file> CSV/JSON
91
- │ └── export <doc-id> <file> CSV/JSON
97
+ │ ├── export <doc-id> <file> CSV/JSON
98
+ │ ├── clear / insert / delete / move <doc-id>
99
+ │ │ --data <json> | stdin. insert /
100
+ │ │ delete / move act on rows or
101
+ │ │ columns; clear empties a range
102
+ │ └── get/set pairs over the rest of a tab's state, each --tab + --data:
103
+ │ styles (style, range-styles) · sheet-style · column-styles ·
104
+ │ row-styles · column-widths · row-heights · freeze · hidden ·
105
+ │ merges (merge) · conditional-formats · data-validations ·
106
+ │ charts (chart) · filter · pivot
107
+ │
108
+ ├── files (alias: file) Any file, stored as bytes
109
+ │ └── upload / download / list / get / rename / delete
110
+ │
111
+ ├── images (alias: image) Workspace image bucket
112
+ │ ├── upload <file> png|jpeg|gif|webp, 10 MB cap
113
+ │ ├── get <image-id> [out] --force to overwrite
114
+ │ └── delete <image-id>
92
115
  │
93
116
  ├── api-keys (alias: api-key)
94
117
  │ ├── create <name>
@@ -120,11 +143,26 @@ wafflebase sheets cells get abc-123 A1:D100
120
143
  echo '{"A1":"Name","B1":"Score"}' | wafflebase sheets cells batch abc-123
121
144
  wafflebase sheets export abc-123 out.csv
122
145
 
146
+ # Everything on a tab that is not a cell (get/set pairs, JSON on stdin)
147
+ wafflebase sheets styles get abc-123
148
+ echo '{"1":180,"2":90}' | wafflebase sheets column-widths set abc-123
149
+ echo '{"rows":1,"cols":0}' | wafflebase sheets freeze set abc-123
150
+ wafflebase sheets charts get abc-123 | wafflebase sheets charts set abc-123
151
+
152
+ # Rows and columns (delete removes rows/columns; clear empties a range)
153
+ echo '{"range":"A2:C99"}' | wafflebase sheets clear abc-123
154
+ echo '{"axis":"row","index":2,"count":3}' | wafflebase sheets insert abc-123
155
+
156
+ # Workspace images
157
+ wafflebase images upload logo.png
158
+ wafflebase images get img-42 logo.png --force
159
+
123
160
  # Word-processor docs
124
161
  wafflebase docs content abc-123 --format md
125
162
  wafflebase docs export abc-123 out.pdf --pages 1-3
126
163
  wafflebase docs import draft.docx --title "Final Draft"
127
164
  wafflebase docs import revision.docx --replace abc-123 --yes
165
+ wafflebase docs content abc-123 | wafflebase docs set-content abc-123
128
166
 
129
167
  # Schema introspection (singular aliases resolve too)
130
168
  wafflebase schema docs.content