@nickchristensen/ppls 1.0.1

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 (107) hide show
  1. package/README.md +1190 -0
  2. package/bin/dev.cmd +3 -0
  3. package/bin/dev.js +5 -0
  4. package/bin/run.cmd +3 -0
  5. package/bin/run.js +5 -0
  6. package/dist/add-command.d.ts +24 -0
  7. package/dist/add-command.js +47 -0
  8. package/dist/base-command.d.ts +63 -0
  9. package/dist/base-command.js +306 -0
  10. package/dist/commands/config/get.d.ts +11 -0
  11. package/dist/commands/config/get.js +34 -0
  12. package/dist/commands/config/init.d.ts +15 -0
  13. package/dist/commands/config/init.js +43 -0
  14. package/dist/commands/config/list.d.ts +13 -0
  15. package/dist/commands/config/list.js +64 -0
  16. package/dist/commands/config/remove.d.ts +11 -0
  17. package/dist/commands/config/remove.js +26 -0
  18. package/dist/commands/config/set.d.ts +12 -0
  19. package/dist/commands/config/set.js +58 -0
  20. package/dist/commands/correspondents/add.d.ts +12 -0
  21. package/dist/commands/correspondents/add.js +20 -0
  22. package/dist/commands/correspondents/delete.d.ts +16 -0
  23. package/dist/commands/correspondents/delete.js +18 -0
  24. package/dist/commands/correspondents/list.d.ts +9 -0
  25. package/dist/commands/correspondents/list.js +15 -0
  26. package/dist/commands/correspondents/show.d.ts +14 -0
  27. package/dist/commands/correspondents/show.js +17 -0
  28. package/dist/commands/correspondents/update.d.ts +18 -0
  29. package/dist/commands/correspondents/update.js +24 -0
  30. package/dist/commands/custom-fields/add.d.ts +16 -0
  31. package/dist/commands/custom-fields/add.js +91 -0
  32. package/dist/commands/custom-fields/delete.d.ts +16 -0
  33. package/dist/commands/custom-fields/delete.js +18 -0
  34. package/dist/commands/custom-fields/list.d.ts +9 -0
  35. package/dist/commands/custom-fields/list.js +12 -0
  36. package/dist/commands/custom-fields/show.d.ts +14 -0
  37. package/dist/commands/custom-fields/show.js +17 -0
  38. package/dist/commands/custom-fields/update.d.ts +20 -0
  39. package/dist/commands/custom-fields/update.js +93 -0
  40. package/dist/commands/document-types/add.d.ts +12 -0
  41. package/dist/commands/document-types/add.js +22 -0
  42. package/dist/commands/document-types/delete.d.ts +16 -0
  43. package/dist/commands/document-types/delete.js +18 -0
  44. package/dist/commands/document-types/list.d.ts +9 -0
  45. package/dist/commands/document-types/list.js +12 -0
  46. package/dist/commands/document-types/show.d.ts +14 -0
  47. package/dist/commands/document-types/show.js +17 -0
  48. package/dist/commands/document-types/update.d.ts +18 -0
  49. package/dist/commands/document-types/update.js +26 -0
  50. package/dist/commands/documents/add.d.ts +70 -0
  51. package/dist/commands/documents/add.js +166 -0
  52. package/dist/commands/documents/delete.d.ts +16 -0
  53. package/dist/commands/documents/delete.js +18 -0
  54. package/dist/commands/documents/download.d.ts +48 -0
  55. package/dist/commands/documents/download.js +152 -0
  56. package/dist/commands/documents/list.d.ts +9 -0
  57. package/dist/commands/documents/list.js +14 -0
  58. package/dist/commands/documents/show.d.ts +14 -0
  59. package/dist/commands/documents/show.js +19 -0
  60. package/dist/commands/documents/update.d.ts +25 -0
  61. package/dist/commands/documents/update.js +42 -0
  62. package/dist/commands/profile.d.ts +13 -0
  63. package/dist/commands/profile.js +19 -0
  64. package/dist/commands/tags/add.d.ts +17 -0
  65. package/dist/commands/tags/add.js +29 -0
  66. package/dist/commands/tags/delete.d.ts +16 -0
  67. package/dist/commands/tags/delete.js +18 -0
  68. package/dist/commands/tags/list.d.ts +10 -0
  69. package/dist/commands/tags/list.js +18 -0
  70. package/dist/commands/tags/show.d.ts +16 -0
  71. package/dist/commands/tags/show.js +24 -0
  72. package/dist/commands/tags/update.d.ts +21 -0
  73. package/dist/commands/tags/update.js +30 -0
  74. package/dist/delete-command.d.ts +20 -0
  75. package/dist/delete-command.js +48 -0
  76. package/dist/helpers/config-store.d.ts +4 -0
  77. package/dist/helpers/config-store.js +35 -0
  78. package/dist/helpers/date-utils.d.ts +3 -0
  79. package/dist/helpers/date-utils.js +27 -0
  80. package/dist/helpers/table.d.ts +20 -0
  81. package/dist/helpers/table.js +42 -0
  82. package/dist/index.d.ts +1 -0
  83. package/dist/index.js +1 -0
  84. package/dist/list-command.d.ts +49 -0
  85. package/dist/list-command.js +98 -0
  86. package/dist/paginated-command.d.ts +48 -0
  87. package/dist/paginated-command.js +89 -0
  88. package/dist/show-command.d.ts +27 -0
  89. package/dist/show-command.js +50 -0
  90. package/dist/types/correspondents.d.ts +28 -0
  91. package/dist/types/correspondents.js +1 -0
  92. package/dist/types/custom-fields.d.ts +18 -0
  93. package/dist/types/custom-fields.js +1 -0
  94. package/dist/types/document-types.d.ts +27 -0
  95. package/dist/types/document-types.js +1 -0
  96. package/dist/types/documents.d.ts +70 -0
  97. package/dist/types/documents.js +1 -0
  98. package/dist/types/profile.d.ts +15 -0
  99. package/dist/types/profile.js +1 -0
  100. package/dist/types/shared.d.ts +4 -0
  101. package/dist/types/shared.js +1 -0
  102. package/dist/types/tags.d.ts +31 -0
  103. package/dist/types/tags.js +1 -0
  104. package/dist/update-command.d.ts +28 -0
  105. package/dist/update-command.js +51 -0
  106. package/oclif.manifest.json +3313 -0
  107. package/package.json +87 -0
package/README.md ADDED
@@ -0,0 +1,1190 @@
1
+ # ppls
2
+
3
+ A node-based paperless-ngx cli
4
+
5
+ [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
6
+ [![Version](https://img.shields.io/npm/v/%40nickchristensen%2Fppls.svg)](https://npmjs.org/package/@nickchristensen/ppls)
7
+ [![Downloads/week](https://img.shields.io/npm/dw/%40nickchristensen%2Fppls.svg)](https://npmjs.org/package/@nickchristensen/ppls)
8
+
9
+ <!-- toc -->
10
+ * [ppls](#ppls)
11
+ * [Quickstart](#quickstart)
12
+ * [Configuration](#configuration)
13
+ * [Commands](#commands)
14
+ <!-- tocstop -->
15
+
16
+ # Quickstart
17
+
18
+ ```
19
+ $ npm install -g @nickchristensen/ppls
20
+ $ ppls config set hostname http://your-paperless-installation
21
+ $ ppls config set token your-api-auth-token
22
+ $ ppls --help
23
+ ```
24
+
25
+ # Configuration
26
+
27
+ Configuration options can be specified via config file (`$XDG_CONFIG_HOME/ppls/config.json`), environment variables, or command flags.
28
+
29
+ | Config file | Env var | Flag | Notes |
30
+ | ------------ | ------------------ | --------------- | --------------------------------------------------------------------------------------- |
31
+ | `hostname` | `PPLS_HOSTNAME` | `--hostname` | **Required** |
32
+ | `token` | `PPLS_TOKEN` | `--token` | **Required** |
33
+ | `headers` | `PPLS_HEADERS` | `--header` | `--header` and `PPLS_HEADERS` use `Key=Value` (repeat `--header` for multiple headers). |
34
+ | `dateFormat` | `PPLS_DATE_FORMAT` | `--date-format` | uses [date-fns format tokens](https://date-fns.org/v3.6.0/docs/format) |
35
+
36
+ Precedence: command flags > environment variables > config file.
37
+
38
+ ### Config file management
39
+
40
+ See the `ppls config` commands (`init`, `set`, `get`, `list`, `remove`) to manage the config file.
41
+
42
+ Examples:
43
+
44
+ ```
45
+ $ ppls config init
46
+ $ ppls config set hostname https://paperless.example.com
47
+ $ ppls config set token your-api-token
48
+ $ ppls config set headers '{"X-Api-Key":"token"}'
49
+ $ ppls config list
50
+ $ ppls config get hostname
51
+ ```
52
+
53
+ # Commands
54
+
55
+ <!-- commands -->
56
+ * [`ppls config get KEY`](#ppls-config-get-key)
57
+ * [`ppls config init`](#ppls-config-init)
58
+ * [`ppls config list`](#ppls-config-list)
59
+ * [`ppls config remove KEY`](#ppls-config-remove-key)
60
+ * [`ppls config set KEY VALUE`](#ppls-config-set-key-value)
61
+ * [`ppls correspondents add NAME`](#ppls-correspondents-add-name)
62
+ * [`ppls correspondents delete ID`](#ppls-correspondents-delete-id)
63
+ * [`ppls correspondents list`](#ppls-correspondents-list)
64
+ * [`ppls correspondents show ID`](#ppls-correspondents-show-id)
65
+ * [`ppls correspondents update ID`](#ppls-correspondents-update-id)
66
+ * [`ppls custom-fields add NAME`](#ppls-custom-fields-add-name)
67
+ * [`ppls custom-fields delete ID`](#ppls-custom-fields-delete-id)
68
+ * [`ppls custom-fields list`](#ppls-custom-fields-list)
69
+ * [`ppls custom-fields show ID`](#ppls-custom-fields-show-id)
70
+ * [`ppls custom-fields update ID`](#ppls-custom-fields-update-id)
71
+ * [`ppls document-types add NAME`](#ppls-document-types-add-name)
72
+ * [`ppls document-types delete ID`](#ppls-document-types-delete-id)
73
+ * [`ppls document-types list`](#ppls-document-types-list)
74
+ * [`ppls document-types show ID`](#ppls-document-types-show-id)
75
+ * [`ppls document-types update ID`](#ppls-document-types-update-id)
76
+ * [`ppls documents add [PATH]`](#ppls-documents-add-path)
77
+ * [`ppls documents delete ID`](#ppls-documents-delete-id)
78
+ * [`ppls documents download ID`](#ppls-documents-download-id)
79
+ * [`ppls documents list`](#ppls-documents-list)
80
+ * [`ppls documents show ID`](#ppls-documents-show-id)
81
+ * [`ppls documents update ID`](#ppls-documents-update-id)
82
+ * [`ppls help [COMMAND]`](#ppls-help-command)
83
+ * [`ppls profile`](#ppls-profile)
84
+ * [`ppls tags add NAME`](#ppls-tags-add-name)
85
+ * [`ppls tags delete ID`](#ppls-tags-delete-id)
86
+ * [`ppls tags list`](#ppls-tags-list)
87
+ * [`ppls tags show ID`](#ppls-tags-show-id)
88
+ * [`ppls tags update ID`](#ppls-tags-update-id)
89
+
90
+ ## `ppls config get KEY`
91
+
92
+ Get a config value
93
+
94
+ ```
95
+ USAGE
96
+ $ ppls config get KEY [--json]
97
+
98
+ ARGUMENTS
99
+ KEY Config key
100
+
101
+ GLOBAL FLAGS
102
+ --json Format output as json.
103
+
104
+ DESCRIPTION
105
+ Get a config value
106
+
107
+ EXAMPLES
108
+ $ ppls config get hostname
109
+ ```
110
+
111
+ _See code: [src/commands/config/get.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/config/get.ts)_
112
+
113
+ ## `ppls config init`
114
+
115
+ Initialize a config file
116
+
117
+ ```
118
+ USAGE
119
+ $ ppls config init [--json] [-f]
120
+
121
+ FLAGS
122
+ -f, --force Overwrite existing config file
123
+
124
+ GLOBAL FLAGS
125
+ --json Format output as json.
126
+
127
+ DESCRIPTION
128
+ Initialize a config file
129
+
130
+ EXAMPLES
131
+ $ ppls config init
132
+ ```
133
+
134
+ _See code: [src/commands/config/init.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/config/init.ts)_
135
+
136
+ ## `ppls config list`
137
+
138
+ List config values
139
+
140
+ ```
141
+ USAGE
142
+ $ ppls config list [--plain | --json | --table]
143
+
144
+ FLAGS
145
+ --plain Format output as plain text.
146
+ --table Format output as table.
147
+
148
+ GLOBAL FLAGS
149
+ --json Format output as json.
150
+
151
+ DESCRIPTION
152
+ List config values
153
+
154
+ EXAMPLES
155
+ $ ppls config list
156
+ ```
157
+
158
+ _See code: [src/commands/config/list.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/config/list.ts)_
159
+
160
+ ## `ppls config remove KEY`
161
+
162
+ Remove a config value
163
+
164
+ ```
165
+ USAGE
166
+ $ ppls config remove KEY [--json]
167
+
168
+ ARGUMENTS
169
+ KEY Config key
170
+
171
+ GLOBAL FLAGS
172
+ --json Format output as json.
173
+
174
+ DESCRIPTION
175
+ Remove a config value
176
+
177
+ EXAMPLES
178
+ $ ppls config remove token
179
+ ```
180
+
181
+ _See code: [src/commands/config/remove.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/config/remove.ts)_
182
+
183
+ ## `ppls config set KEY VALUE`
184
+
185
+ Set a config value
186
+
187
+ ```
188
+ USAGE
189
+ $ ppls config set KEY VALUE [--json]
190
+
191
+ ARGUMENTS
192
+ KEY Config key
193
+ VALUE Config value
194
+
195
+ GLOBAL FLAGS
196
+ --json Format output as json.
197
+
198
+ DESCRIPTION
199
+ Set a config value
200
+
201
+ EXAMPLES
202
+ $ ppls config set hostname https://paperless.example.com
203
+
204
+ $ ppls config set headers '{"X-Api-Key":"token"}'
205
+ ```
206
+
207
+ _See code: [src/commands/config/set.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/config/set.ts)_
208
+
209
+ ## `ppls correspondents add NAME`
210
+
211
+ Create a correspondent
212
+
213
+ ```
214
+ USAGE
215
+ $ ppls correspondents add NAME [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
216
+ --table] [--token <value>]
217
+
218
+ ARGUMENTS
219
+ NAME Correspondent name
220
+
221
+ GLOBAL FLAGS
222
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
223
+ --json Format output as json.
224
+ --plain Format output as plain text.
225
+ --table Format output as table.
226
+
227
+ ENVIRONMENT FLAGS
228
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
229
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
230
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
231
+
232
+ DESCRIPTION
233
+ Create a correspondent
234
+
235
+ EXAMPLES
236
+ $ ppls correspondents add "Acme Corp"
237
+ ```
238
+
239
+ _See code: [src/commands/correspondents/add.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/correspondents/add.ts)_
240
+
241
+ ## `ppls correspondents delete ID`
242
+
243
+ Delete a correspondent
244
+
245
+ ```
246
+ USAGE
247
+ $ ppls correspondents delete ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
248
+ --table] [--token <value>] [-y]
249
+
250
+ ARGUMENTS
251
+ ID Correspondent id
252
+
253
+ FLAGS
254
+ -y, --yes Skip confirmation prompt
255
+
256
+ GLOBAL FLAGS
257
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
258
+ --json Format output as json.
259
+ --plain Format output as plain text.
260
+ --table Format output as table.
261
+
262
+ ENVIRONMENT FLAGS
263
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
264
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
265
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
266
+
267
+ DESCRIPTION
268
+ Delete a correspondent
269
+
270
+ EXAMPLES
271
+ $ ppls correspondents delete 123
272
+ ```
273
+
274
+ _See code: [src/commands/correspondents/delete.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/correspondents/delete.ts)_
275
+
276
+ ## `ppls correspondents list`
277
+
278
+ List correspondents
279
+
280
+ ```
281
+ USAGE
282
+ $ ppls correspondents list [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
283
+ --table] [--token <value>] [--page <value>] [--page-size <value>] [--id-in <value> | --name-contains <value>]
284
+ [--sort <value>]
285
+
286
+ FLAGS
287
+ --id-in=<value> Filter by id list (comma-separated)
288
+ --name-contains=<value> Filter by name substring
289
+ --page=<value> Page number to fetch
290
+ --page-size=<value> Number of results per page
291
+ --sort=<value> Sort results by the provided field
292
+
293
+ GLOBAL FLAGS
294
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
295
+ --json Format output as json.
296
+ --plain Format output as plain text.
297
+ --table Format output as table.
298
+
299
+ ENVIRONMENT FLAGS
300
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
301
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
302
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
303
+
304
+ DESCRIPTION
305
+ List correspondents
306
+
307
+ EXAMPLES
308
+ $ ppls correspondents list
309
+ ```
310
+
311
+ _See code: [src/commands/correspondents/list.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/correspondents/list.ts)_
312
+
313
+ ## `ppls correspondents show ID`
314
+
315
+ Show correspondent details
316
+
317
+ ```
318
+ USAGE
319
+ $ ppls correspondents show ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
320
+ --table] [--token <value>]
321
+
322
+ ARGUMENTS
323
+ ID Correspondent id
324
+
325
+ GLOBAL FLAGS
326
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
327
+ --json Format output as json.
328
+ --plain Format output as plain text.
329
+ --table Format output as table.
330
+
331
+ ENVIRONMENT FLAGS
332
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
333
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
334
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
335
+
336
+ DESCRIPTION
337
+ Show correspondent details
338
+
339
+ EXAMPLES
340
+ $ ppls correspondents show 123
341
+ ```
342
+
343
+ _See code: [src/commands/correspondents/show.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/correspondents/show.ts)_
344
+
345
+ ## `ppls correspondents update ID`
346
+
347
+ Update a correspondent
348
+
349
+ ```
350
+ USAGE
351
+ $ ppls correspondents update ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
352
+ --table] [--token <value>] [--name <value>]
353
+
354
+ ARGUMENTS
355
+ ID Correspondent id
356
+
357
+ FLAGS
358
+ --name=<value> Correspondent name
359
+
360
+ GLOBAL FLAGS
361
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
362
+ --json Format output as json.
363
+ --plain Format output as plain text.
364
+ --table Format output as table.
365
+
366
+ ENVIRONMENT FLAGS
367
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
368
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
369
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
370
+
371
+ DESCRIPTION
372
+ Update a correspondent
373
+
374
+ EXAMPLES
375
+ $ ppls correspondents update 123 --name "Acme Corp"
376
+ ```
377
+
378
+ _See code: [src/commands/correspondents/update.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/correspondents/update.ts)_
379
+
380
+ ## `ppls custom-fields add NAME`
381
+
382
+ Create a custom field
383
+
384
+ ```
385
+ USAGE
386
+ $ ppls custom-fields add NAME --data-type boolean|date|integer|number|monetary|text|url|document link|select|long
387
+ text [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json | --table] [--token
388
+ <value>] [--option <value>...]
389
+
390
+ ARGUMENTS
391
+ NAME Custom field name
392
+
393
+ FLAGS
394
+ --data-type=<option> (required) Custom field data type
395
+ <options: boolean|date|integer|number|monetary|text|url|document link|select|long text>
396
+ --option=<value>... Select option label (repeatable)
397
+
398
+ GLOBAL FLAGS
399
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
400
+ --json Format output as json.
401
+ --plain Format output as plain text.
402
+ --table Format output as table.
403
+
404
+ ENVIRONMENT FLAGS
405
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
406
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
407
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
408
+
409
+ DESCRIPTION
410
+ Create a custom field
411
+
412
+ EXAMPLES
413
+ $ ppls custom-fields add "Due Date" --data-type date
414
+ ```
415
+
416
+ _See code: [src/commands/custom-fields/add.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/custom-fields/add.ts)_
417
+
418
+ ## `ppls custom-fields delete ID`
419
+
420
+ Delete a custom field
421
+
422
+ ```
423
+ USAGE
424
+ $ ppls custom-fields delete ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
425
+ --table] [--token <value>] [-y]
426
+
427
+ ARGUMENTS
428
+ ID Custom field id
429
+
430
+ FLAGS
431
+ -y, --yes Skip confirmation prompt
432
+
433
+ GLOBAL FLAGS
434
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
435
+ --json Format output as json.
436
+ --plain Format output as plain text.
437
+ --table Format output as table.
438
+
439
+ ENVIRONMENT FLAGS
440
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
441
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
442
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
443
+
444
+ DESCRIPTION
445
+ Delete a custom field
446
+
447
+ EXAMPLES
448
+ $ ppls custom-fields delete 123
449
+ ```
450
+
451
+ _See code: [src/commands/custom-fields/delete.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/custom-fields/delete.ts)_
452
+
453
+ ## `ppls custom-fields list`
454
+
455
+ List custom fields
456
+
457
+ ```
458
+ USAGE
459
+ $ ppls custom-fields list [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
460
+ --table] [--token <value>] [--page <value>] [--page-size <value>] [--id-in <value> | --name-contains <value>]
461
+ [--sort <value>]
462
+
463
+ FLAGS
464
+ --id-in=<value> Filter by id list (comma-separated)
465
+ --name-contains=<value> Filter by name substring
466
+ --page=<value> Page number to fetch
467
+ --page-size=<value> Number of results per page
468
+ --sort=<value> Sort results by the provided field
469
+
470
+ GLOBAL FLAGS
471
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
472
+ --json Format output as json.
473
+ --plain Format output as plain text.
474
+ --table Format output as table.
475
+
476
+ ENVIRONMENT FLAGS
477
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
478
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
479
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
480
+
481
+ DESCRIPTION
482
+ List custom fields
483
+
484
+ EXAMPLES
485
+ $ ppls custom-fields list
486
+ ```
487
+
488
+ _See code: [src/commands/custom-fields/list.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/custom-fields/list.ts)_
489
+
490
+ ## `ppls custom-fields show ID`
491
+
492
+ Show custom field details
493
+
494
+ ```
495
+ USAGE
496
+ $ ppls custom-fields show ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
497
+ --table] [--token <value>]
498
+
499
+ ARGUMENTS
500
+ ID Custom field id
501
+
502
+ GLOBAL FLAGS
503
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
504
+ --json Format output as json.
505
+ --plain Format output as plain text.
506
+ --table Format output as table.
507
+
508
+ ENVIRONMENT FLAGS
509
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
510
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
511
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
512
+
513
+ DESCRIPTION
514
+ Show custom field details
515
+
516
+ EXAMPLES
517
+ $ ppls custom-fields show 123
518
+ ```
519
+
520
+ _See code: [src/commands/custom-fields/show.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/custom-fields/show.ts)_
521
+
522
+ ## `ppls custom-fields update ID`
523
+
524
+ Update a custom field
525
+
526
+ ```
527
+ USAGE
528
+ $ ppls custom-fields update ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
529
+ --table] [--token <value>] [--data-type boolean|date|integer|number|monetary|text|url|document link|select|long
530
+ text] [--name <value>] [--option <value>...]
531
+
532
+ ARGUMENTS
533
+ ID Custom field id
534
+
535
+ FLAGS
536
+ --data-type=<option> Custom field data type
537
+ <options: boolean|date|integer|number|monetary|text|url|document link|select|long text>
538
+ --name=<value> Custom field name
539
+ --option=<value>... Select option label (repeatable)
540
+
541
+ GLOBAL FLAGS
542
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
543
+ --json Format output as json.
544
+ --plain Format output as plain text.
545
+ --table Format output as table.
546
+
547
+ ENVIRONMENT FLAGS
548
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
549
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
550
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
551
+
552
+ DESCRIPTION
553
+ Update a custom field
554
+
555
+ EXAMPLES
556
+ $ ppls custom-fields update 123 --name "Due Date"
557
+ ```
558
+
559
+ _See code: [src/commands/custom-fields/update.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/custom-fields/update.ts)_
560
+
561
+ ## `ppls document-types add NAME`
562
+
563
+ Create a document type
564
+
565
+ ```
566
+ USAGE
567
+ $ ppls document-types add NAME [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
568
+ --table] [--token <value>]
569
+
570
+ ARGUMENTS
571
+ NAME Document type name
572
+
573
+ GLOBAL FLAGS
574
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
575
+ --json Format output as json.
576
+ --plain Format output as plain text.
577
+ --table Format output as table.
578
+
579
+ ENVIRONMENT FLAGS
580
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
581
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
582
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
583
+
584
+ DESCRIPTION
585
+ Create a document type
586
+
587
+ EXAMPLES
588
+ $ ppls document-types add "Invoice"
589
+ ```
590
+
591
+ _See code: [src/commands/document-types/add.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/document-types/add.ts)_
592
+
593
+ ## `ppls document-types delete ID`
594
+
595
+ Delete a document type
596
+
597
+ ```
598
+ USAGE
599
+ $ ppls document-types delete ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
600
+ --table] [--token <value>] [-y]
601
+
602
+ ARGUMENTS
603
+ ID Document type id
604
+
605
+ FLAGS
606
+ -y, --yes Skip confirmation prompt
607
+
608
+ GLOBAL FLAGS
609
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
610
+ --json Format output as json.
611
+ --plain Format output as plain text.
612
+ --table Format output as table.
613
+
614
+ ENVIRONMENT FLAGS
615
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
616
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
617
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
618
+
619
+ DESCRIPTION
620
+ Delete a document type
621
+
622
+ EXAMPLES
623
+ $ ppls document-types delete 123
624
+ ```
625
+
626
+ _See code: [src/commands/document-types/delete.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/document-types/delete.ts)_
627
+
628
+ ## `ppls document-types list`
629
+
630
+ List document types
631
+
632
+ ```
633
+ USAGE
634
+ $ ppls document-types list [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
635
+ --table] [--token <value>] [--page <value>] [--page-size <value>] [--id-in <value> | --name-contains <value>]
636
+ [--sort <value>]
637
+
638
+ FLAGS
639
+ --id-in=<value> Filter by id list (comma-separated)
640
+ --name-contains=<value> Filter by name substring
641
+ --page=<value> Page number to fetch
642
+ --page-size=<value> Number of results per page
643
+ --sort=<value> Sort results by the provided field
644
+
645
+ GLOBAL FLAGS
646
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
647
+ --json Format output as json.
648
+ --plain Format output as plain text.
649
+ --table Format output as table.
650
+
651
+ ENVIRONMENT FLAGS
652
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
653
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
654
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
655
+
656
+ DESCRIPTION
657
+ List document types
658
+
659
+ EXAMPLES
660
+ $ ppls document-types list
661
+ ```
662
+
663
+ _See code: [src/commands/document-types/list.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/document-types/list.ts)_
664
+
665
+ ## `ppls document-types show ID`
666
+
667
+ Show document type details
668
+
669
+ ```
670
+ USAGE
671
+ $ ppls document-types show ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
672
+ --table] [--token <value>]
673
+
674
+ ARGUMENTS
675
+ ID Document type id
676
+
677
+ GLOBAL FLAGS
678
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
679
+ --json Format output as json.
680
+ --plain Format output as plain text.
681
+ --table Format output as table.
682
+
683
+ ENVIRONMENT FLAGS
684
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
685
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
686
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
687
+
688
+ DESCRIPTION
689
+ Show document type details
690
+
691
+ EXAMPLES
692
+ $ ppls document-types show 123
693
+ ```
694
+
695
+ _See code: [src/commands/document-types/show.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/document-types/show.ts)_
696
+
697
+ ## `ppls document-types update ID`
698
+
699
+ Update a document type
700
+
701
+ ```
702
+ USAGE
703
+ $ ppls document-types update ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
704
+ --table] [--token <value>] [--name <value>]
705
+
706
+ ARGUMENTS
707
+ ID Document type id
708
+
709
+ FLAGS
710
+ --name=<value> Document type name
711
+
712
+ GLOBAL FLAGS
713
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
714
+ --json Format output as json.
715
+ --plain Format output as plain text.
716
+ --table Format output as table.
717
+
718
+ ENVIRONMENT FLAGS
719
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
720
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
721
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
722
+
723
+ DESCRIPTION
724
+ Update a document type
725
+
726
+ EXAMPLES
727
+ $ ppls document-types update 123 --name "Invoice"
728
+ ```
729
+
730
+ _See code: [src/commands/document-types/update.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/document-types/update.ts)_
731
+
732
+ ## `ppls documents add [PATH]`
733
+
734
+ Upload one or more documents. Supports multiple arguments or a glob.
735
+
736
+ ```
737
+ USAGE
738
+ $ ppls documents add [PATH...] [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain |
739
+ --json | --table] [--token <value>] [--archive-serial-number <value>] [--correspondent <value>] [--created <value>]
740
+ [--document-type <value>] [--storage-path <value>] [--tag <value>...] [--title <value>]
741
+
742
+ ARGUMENTS
743
+ [PATH...] Document file path(s)
744
+
745
+ FLAGS
746
+ --archive-serial-number=<value> Archive serial number
747
+ --correspondent=<value> Correspondent id
748
+ --created=<value> Document created date-time
749
+ --document-type=<value> Document type id
750
+ --storage-path=<value> Storage path id
751
+ --tag=<value>... Tag id (repeatable)
752
+ --title=<value> Document title
753
+
754
+ GLOBAL FLAGS
755
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
756
+ --json Format output as json.
757
+ --plain Format output as plain text.
758
+ --table Format output as table.
759
+
760
+ ENVIRONMENT FLAGS
761
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
762
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
763
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
764
+
765
+ DESCRIPTION
766
+ Upload one or more documents. Supports multiple arguments or a glob.
767
+
768
+ EXAMPLES
769
+ $ ppls documents add ./receipt.pdf --title "Receipt"
770
+ ```
771
+
772
+ _See code: [src/commands/documents/add.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/documents/add.ts)_
773
+
774
+ ## `ppls documents delete ID`
775
+
776
+ Delete a document
777
+
778
+ ```
779
+ USAGE
780
+ $ ppls documents delete ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
781
+ --table] [--token <value>] [-y]
782
+
783
+ ARGUMENTS
784
+ ID Document id
785
+
786
+ FLAGS
787
+ -y, --yes Skip confirmation prompt
788
+
789
+ GLOBAL FLAGS
790
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
791
+ --json Format output as json.
792
+ --plain Format output as plain text.
793
+ --table Format output as table.
794
+
795
+ ENVIRONMENT FLAGS
796
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
797
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
798
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
799
+
800
+ DESCRIPTION
801
+ Delete a document
802
+
803
+ EXAMPLES
804
+ $ ppls documents delete 123
805
+ ```
806
+
807
+ _See code: [src/commands/documents/delete.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/documents/delete.ts)_
808
+
809
+ ## `ppls documents download ID`
810
+
811
+ Download one or more documents
812
+
813
+ ```
814
+ USAGE
815
+ $ ppls documents download ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
816
+ --table] [--token <value>] [--original] [-o <value> | --output-dir <value>]
817
+
818
+ ARGUMENTS
819
+ ID Document id or comma-separated list of ids
820
+
821
+ FLAGS
822
+ -o, --output=<value> Output file path (single document)
823
+ --original Download original file
824
+ --output-dir=<value> Output directory (multiple documents)
825
+
826
+ GLOBAL FLAGS
827
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
828
+ --json Format output as json.
829
+ --plain Format output as plain text.
830
+ --table Format output as table.
831
+
832
+ ENVIRONMENT FLAGS
833
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
834
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
835
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
836
+
837
+ DESCRIPTION
838
+ Download one or more documents
839
+
840
+ EXAMPLES
841
+ $ ppls documents download 123 --output document.pdf
842
+
843
+ $ ppls documents download 123,124 --output-dir ./downloads
844
+ ```
845
+
846
+ _See code: [src/commands/documents/download.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/documents/download.ts)_
847
+
848
+ ## `ppls documents list`
849
+
850
+ List documents
851
+
852
+ ```
853
+ USAGE
854
+ $ ppls documents list [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
855
+ --table] [--token <value>] [--page <value>] [--page-size <value>] [--id-in <value> | --name-contains <value>]
856
+ [--sort <value>]
857
+
858
+ FLAGS
859
+ --id-in=<value> Filter by id list (comma-separated)
860
+ --name-contains=<value> Filter by name substring
861
+ --page=<value> Page number to fetch
862
+ --page-size=<value> Number of results per page
863
+ --sort=<value> Sort results by the provided field
864
+
865
+ GLOBAL FLAGS
866
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
867
+ --json Format output as json.
868
+ --plain Format output as plain text.
869
+ --table Format output as table.
870
+
871
+ ENVIRONMENT FLAGS
872
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
873
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
874
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
875
+
876
+ DESCRIPTION
877
+ List documents
878
+
879
+ EXAMPLES
880
+ $ ppls documents list
881
+ ```
882
+
883
+ _See code: [src/commands/documents/list.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/documents/list.ts)_
884
+
885
+ ## `ppls documents show ID`
886
+
887
+ Show document details
888
+
889
+ ```
890
+ USAGE
891
+ $ ppls documents show ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
892
+ --table] [--token <value>]
893
+
894
+ ARGUMENTS
895
+ ID Document id
896
+
897
+ GLOBAL FLAGS
898
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
899
+ --json Format output as json.
900
+ --plain Format output as plain text.
901
+ --table Format output as table.
902
+
903
+ ENVIRONMENT FLAGS
904
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
905
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
906
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
907
+
908
+ DESCRIPTION
909
+ Show document details
910
+
911
+ EXAMPLES
912
+ $ ppls documents show 123
913
+ ```
914
+
915
+ _See code: [src/commands/documents/show.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/documents/show.ts)_
916
+
917
+ ## `ppls documents update ID`
918
+
919
+ Update a document
920
+
921
+ ```
922
+ USAGE
923
+ $ ppls documents update ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
924
+ --table] [--token <value>] [--archive-serial-number <value>] [--content <value>] [--correspondent <value>]
925
+ [--created <value>] [--document-type <value>] [--storage-path <value>] [--tag <value>...] [--title <value>]
926
+
927
+ ARGUMENTS
928
+ ID Document id
929
+
930
+ FLAGS
931
+ --archive-serial-number=<value> Archive serial number
932
+ --content=<value> Document content
933
+ --correspondent=<value> Correspondent id
934
+ --created=<value> Document created date
935
+ --document-type=<value> Document type id
936
+ --storage-path=<value> Storage path id
937
+ --tag=<value>... Tag id (repeatable)
938
+ --title=<value> Document title
939
+
940
+ GLOBAL FLAGS
941
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
942
+ --json Format output as json.
943
+ --plain Format output as plain text.
944
+ --table Format output as table.
945
+
946
+ ENVIRONMENT FLAGS
947
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
948
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
949
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
950
+
951
+ DESCRIPTION
952
+ Update a document
953
+
954
+ EXAMPLES
955
+ $ ppls documents update 123 --title "Receipt"
956
+ ```
957
+
958
+ _See code: [src/commands/documents/update.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/documents/update.ts)_
959
+
960
+ ## `ppls help [COMMAND]`
961
+
962
+ Display help for ppls.
963
+
964
+ ```
965
+ USAGE
966
+ $ ppls help [COMMAND...] [-n]
967
+
968
+ ARGUMENTS
969
+ [COMMAND...] Command to show help for.
970
+
971
+ FLAGS
972
+ -n, --nested-commands Include all nested commands in the output.
973
+
974
+ DESCRIPTION
975
+ Display help for ppls.
976
+ ```
977
+
978
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.36/src/commands/help.ts)_
979
+
980
+ ## `ppls profile`
981
+
982
+ Show profile details
983
+
984
+ ```
985
+ USAGE
986
+ $ ppls profile [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
987
+ --table] [--token <value>]
988
+
989
+ GLOBAL FLAGS
990
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
991
+ --json Format output as json.
992
+ --plain Format output as plain text.
993
+ --table Format output as table.
994
+
995
+ ENVIRONMENT FLAGS
996
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
997
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
998
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
999
+
1000
+ DESCRIPTION
1001
+ Show profile details
1002
+
1003
+ ALIASES
1004
+ $ ppls whoami
1005
+
1006
+ EXAMPLES
1007
+ $ ppls profile
1008
+ ```
1009
+
1010
+ _See code: [src/commands/profile.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/profile.ts)_
1011
+
1012
+ ## `ppls tags add NAME`
1013
+
1014
+ Create a tag
1015
+
1016
+ ```
1017
+ USAGE
1018
+ $ ppls tags add NAME [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
1019
+ --table] [--token <value>] [--color <value>] [--inbox] [--parent <value>]
1020
+
1021
+ ARGUMENTS
1022
+ NAME Tag name
1023
+
1024
+ FLAGS
1025
+ --color=<value> Tag color (hex value)
1026
+ --inbox Mark tag as an inbox tag
1027
+ --parent=<value> Parent tag id
1028
+
1029
+ GLOBAL FLAGS
1030
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
1031
+ --json Format output as json.
1032
+ --plain Format output as plain text.
1033
+ --table Format output as table.
1034
+
1035
+ ENVIRONMENT FLAGS
1036
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
1037
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
1038
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
1039
+
1040
+ DESCRIPTION
1041
+ Create a tag
1042
+
1043
+ EXAMPLES
1044
+ $ ppls tags add Inbox
1045
+ ```
1046
+
1047
+ _See code: [src/commands/tags/add.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/tags/add.ts)_
1048
+
1049
+ ## `ppls tags delete ID`
1050
+
1051
+ Delete a tag
1052
+
1053
+ ```
1054
+ USAGE
1055
+ $ ppls tags delete ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
1056
+ --table] [--token <value>] [-y]
1057
+
1058
+ ARGUMENTS
1059
+ ID Tag id
1060
+
1061
+ FLAGS
1062
+ -y, --yes Skip confirmation prompt
1063
+
1064
+ GLOBAL FLAGS
1065
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
1066
+ --json Format output as json.
1067
+ --plain Format output as plain text.
1068
+ --table Format output as table.
1069
+
1070
+ ENVIRONMENT FLAGS
1071
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
1072
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
1073
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
1074
+
1075
+ DESCRIPTION
1076
+ Delete a tag
1077
+
1078
+ EXAMPLES
1079
+ $ ppls tags delete 123
1080
+ ```
1081
+
1082
+ _See code: [src/commands/tags/delete.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/tags/delete.ts)_
1083
+
1084
+ ## `ppls tags list`
1085
+
1086
+ List tags
1087
+
1088
+ ```
1089
+ USAGE
1090
+ $ ppls tags list [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
1091
+ --table] [--token <value>] [--page <value>] [--page-size <value>] [--id-in <value> | --name-contains <value>]
1092
+ [--sort <value>]
1093
+
1094
+ FLAGS
1095
+ --id-in=<value> Filter by id list (comma-separated)
1096
+ --name-contains=<value> Filter by name substring
1097
+ --page=<value> Page number to fetch
1098
+ --page-size=<value> Number of results per page
1099
+ --sort=<value> Sort results by the provided field
1100
+
1101
+ GLOBAL FLAGS
1102
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
1103
+ --json Format output as json.
1104
+ --plain Format output as plain text.
1105
+ --table Format output as table.
1106
+
1107
+ ENVIRONMENT FLAGS
1108
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
1109
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
1110
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
1111
+
1112
+ DESCRIPTION
1113
+ List tags
1114
+
1115
+ EXAMPLES
1116
+ $ ppls tags list
1117
+ ```
1118
+
1119
+ _See code: [src/commands/tags/list.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/tags/list.ts)_
1120
+
1121
+ ## `ppls tags show ID`
1122
+
1123
+ Show tag details
1124
+
1125
+ ```
1126
+ USAGE
1127
+ $ ppls tags show ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
1128
+ --table] [--token <value>]
1129
+
1130
+ ARGUMENTS
1131
+ ID Tag id
1132
+
1133
+ GLOBAL FLAGS
1134
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
1135
+ --json Format output as json.
1136
+ --plain Format output as plain text.
1137
+ --table Format output as table.
1138
+
1139
+ ENVIRONMENT FLAGS
1140
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
1141
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
1142
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
1143
+
1144
+ DESCRIPTION
1145
+ Show tag details
1146
+
1147
+ EXAMPLES
1148
+ $ ppls tags show 123
1149
+ ```
1150
+
1151
+ _See code: [src/commands/tags/show.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/tags/show.ts)_
1152
+
1153
+ ## `ppls tags update ID`
1154
+
1155
+ Update a tag
1156
+
1157
+ ```
1158
+ USAGE
1159
+ $ ppls tags update ID [--date-format <value>] [--header <value>...] [--hostname <value>] [--plain | --json |
1160
+ --table] [--token <value>] [--color <value>] [--inbox] [--name <value>] [--parent <value>]
1161
+
1162
+ ARGUMENTS
1163
+ ID Tag id
1164
+
1165
+ FLAGS
1166
+ --color=<value> Tag color (hex value)
1167
+ --[no-]inbox Mark tag as an inbox tag
1168
+ --name=<value> Tag name
1169
+ --parent=<value> Parent tag id
1170
+
1171
+ GLOBAL FLAGS
1172
+ --date-format=<value> [default: yyyy-MM-dd, env: PPLS_DATE_FORMAT] Format output dates using a template.
1173
+ --json Format output as json.
1174
+ --plain Format output as plain text.
1175
+ --table Format output as table.
1176
+
1177
+ ENVIRONMENT FLAGS
1178
+ --header=<value>... [env: PPLS_HEADERS] Add a custom request header (repeatable, format: Key=Value)
1179
+ --hostname=<value> [env: PPLS_HOSTNAME] Paperless-ngx base URL
1180
+ --token=<value> [env: PPLS_TOKEN] Paperless-ngx API token
1181
+
1182
+ DESCRIPTION
1183
+ Update a tag
1184
+
1185
+ EXAMPLES
1186
+ $ ppls tags update 123 --name Inbox
1187
+ ```
1188
+
1189
+ _See code: [src/commands/tags/update.ts](https://github.com/nickchristensen/ppls/blob/v1.0.1/src/commands/tags/update.ts)_
1190
+ <!-- commandsstop -->