@wafflebase/cli 0.6.7 → 0.6.9

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 +57 -4
  2. package/dist/bin.js +22653 -20237
  3. package/package.json +5 -5
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
@@ -72,10 +74,16 @@ wafflebase
72
74
  │ ├── create <title> [--type doc|sheet]
73
75
  │ ├── get <doc-id>
74
76
  │ ├── rename <doc-id> <title>
77
+ │ ├── copy <doc-id> → "<title> (copy)" (any type)
78
+ │ ├── move <doc-id> [folder-id] Omit the folder for the root
75
79
  │ ├── delete <doc-id>
76
80
  │ ├── content <doc-id> --format json|md|text + --pages
77
81
  │ ├── export <doc-id> <file> --format pdf|docx + --pages (PDF)
78
- │ └── import <file> --replace <id> --yes for in-place
82
+ │ ├── import <file> --replace <id> --yes for in-place
83
+ │ └── set-content <doc-id> --data <json> | stdin (destructive)
84
+ │
85
+ │ slides and notes mirror docs: list / create / get / rename / delete /
86
+ │ content / export / import / set-content.
79
87
  │
80
88
  ├── sheets (aliases: sheet, spreadsheet, spreadsheets)
81
89
  │ ├── tabs (alias: tab)
@@ -88,7 +96,31 @@ wafflebase
88
96
  │ │ ├── batch <doc-id> --data <json> | stdin
89
97
  │ │ └── delete <doc-id> <ref>
90
98
  │ ├── import <doc-id> <file> CSV/JSON
91
- │ └── export <doc-id> <file> CSV/JSON
99
+ │ ├── export <doc-id> <file> CSV/JSON
100
+ │ ├── clear / insert / delete / move <doc-id>
101
+ │ │ --data <json> | stdin. insert /
102
+ │ │ delete / move act on rows or
103
+ │ │ columns; clear empties a range
104
+ │ └── get/set pairs over the rest of a tab's state, each --tab + --data:
105
+ │ styles (style, range-styles) · sheet-style · column-styles ·
106
+ │ row-styles · column-widths · row-heights · freeze · hidden ·
107
+ │ merges (merge) · conditional-formats · data-validations ·
108
+ │ charts (chart) · filter · pivot
109
+ │
110
+ ├── files (alias: file) Any file, stored as bytes
111
+ │ └── upload / download / list / get / rename / delete
112
+ │
113
+ ├── images (alias: image) Workspace image bucket
114
+ │ ├── upload <file> png|jpeg|gif|webp, 10 MB cap
115
+ │ ├── get <image-id> [out] --force to overwrite
116
+ │ └── delete <image-id>
117
+ │
118
+ ├── folders (alias: folder) Workspace folder tree
119
+ │ ├── list Flat; parentId builds the tree
120
+ │ ├── create <name> --parent <id>, else the root
121
+ │ ├── rename <folder-id> <name>
122
+ │ ├── move <folder-id> [parent-id] Omit the parent for the root
123
+ │ └── delete <folder-id> Its documents go to the root
92
124
  │
93
125
  ├── api-keys (alias: api-key)
94
126
  │ ├── create <name>
@@ -120,11 +152,32 @@ wafflebase sheets cells get abc-123 A1:D100
120
152
  echo '{"A1":"Name","B1":"Score"}' | wafflebase sheets cells batch abc-123
121
153
  wafflebase sheets export abc-123 out.csv
122
154
 
155
+ # Everything on a tab that is not a cell (get/set pairs, JSON on stdin)
156
+ wafflebase sheets styles get abc-123
157
+ echo '{"1":180,"2":90}' | wafflebase sheets column-widths set abc-123
158
+ echo '{"rows":1,"cols":0}' | wafflebase sheets freeze set abc-123
159
+ wafflebase sheets charts get abc-123 | wafflebase sheets charts set abc-123
160
+
161
+ # Rows and columns (delete removes rows/columns; clear empties a range)
162
+ echo '{"range":"A2:C99"}' | wafflebase sheets clear abc-123
163
+ echo '{"axis":"row","index":2,"count":3}' | wafflebase sheets insert abc-123
164
+
165
+ # Workspace images
166
+ wafflebase images upload logo.png
167
+ wafflebase images get img-42 logo.png --force
168
+
169
+ # Folders (organizational only — they carry no permissions)
170
+ wafflebase folders create "Q1 Reports"
171
+ wafflebase folders list
172
+ wafflebase docs move abc-123 fld-1 # file it; omit fld-1 for the root
173
+ wafflebase docs copy abc-123 # → "<title> (copy)"
174
+
123
175
  # Word-processor docs
124
176
  wafflebase docs content abc-123 --format md
125
177
  wafflebase docs export abc-123 out.pdf --pages 1-3
126
178
  wafflebase docs import draft.docx --title "Final Draft"
127
179
  wafflebase docs import revision.docx --replace abc-123 --yes
180
+ wafflebase docs content abc-123 | wafflebase docs set-content abc-123
128
181
 
129
182
  # Schema introspection (singular aliases resolve too)
130
183
  wafflebase schema docs.content