@dropthis/cli 0.11.0 → 0.13.0
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.
- package/README.md +13 -6
- package/dist/cli.cjs +608 -106
- package/dist/cli.cjs.map +1 -1
- package/node_modules/@dropthis/node/README.md +1 -0
- package/node_modules/@dropthis/node/dist/{drops-DEJcU6qw.d.cts → drops-DP4F1PQu.d.cts} +7 -1
- package/node_modules/@dropthis/node/dist/{drops-DEJcU6qw.d.ts → drops-DP4F1PQu.d.ts} +7 -1
- package/node_modules/@dropthis/node/dist/edge.cjs +7 -3
- package/node_modules/@dropthis/node/dist/edge.cjs.map +1 -1
- package/node_modules/@dropthis/node/dist/edge.d.cts +1 -1
- package/node_modules/@dropthis/node/dist/edge.d.ts +1 -1
- package/node_modules/@dropthis/node/dist/edge.mjs +7 -3
- package/node_modules/@dropthis/node/dist/edge.mjs.map +1 -1
- package/node_modules/@dropthis/node/dist/index.cjs +7 -3
- package/node_modules/@dropthis/node/dist/index.cjs.map +1 -1
- package/node_modules/@dropthis/node/dist/index.d.cts +2 -2
- package/node_modules/@dropthis/node/dist/index.d.ts +2 -2
- package/node_modules/@dropthis/node/dist/index.mjs +7 -3
- package/node_modules/@dropthis/node/dist/index.mjs.map +1 -1
- package/node_modules/@dropthis/node/package.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -177,10 +177,11 @@ dropthis publish [input...] # Same as above, explicit form
|
|
|
177
177
|
|
|
178
178
|
dropthis update-content <drop-id> [input] # Replace a drop's content (same URL)
|
|
179
179
|
dropthis update-settings <drop-id> # Change title/visibility/password/expiry/metadata
|
|
180
|
-
dropthis pull <id|url> [-o <dir>]
|
|
181
|
-
dropthis get <
|
|
180
|
+
dropthis pull <id|url|slug> [-o <dir>] # Download a drop's files to a local directory
|
|
181
|
+
dropthis get <id|url|slug> # Show drop details
|
|
182
182
|
dropthis list # List your drops
|
|
183
|
-
dropthis
|
|
183
|
+
dropthis list --domain reports.example.com # Only drops on a custom domain
|
|
184
|
+
dropthis delete <id|url|slug> # Delete a drop (--yes to confirm)
|
|
184
185
|
|
|
185
186
|
dropthis deployments # View deployment history
|
|
186
187
|
|
|
@@ -197,6 +198,7 @@ dropthis api-keys create # Create an API key
|
|
|
197
198
|
dropthis api-keys list # List API keys
|
|
198
199
|
dropthis api-keys delete <key-id> # Delete an API key (--yes to confirm)
|
|
199
200
|
|
|
201
|
+
dropthis upgrade # Update the CLI to the latest version
|
|
200
202
|
dropthis doctor # CLI diagnostics
|
|
201
203
|
dropthis commands # Machine-readable command metadata
|
|
202
204
|
```
|
|
@@ -211,6 +213,7 @@ The CLI is designed for non-interactive use. In non-TTY environments (pipes, CI,
|
|
|
211
213
|
export DROPTHIS_API_KEY=sk_live_... # API key (same as --api-key)
|
|
212
214
|
export DROPTHIS_API_URL=https://... # Override API base URL (same as --api-url)
|
|
213
215
|
export DROPTHIS_NON_INTERACTIVE=1 # Disable interactive prompts (same as --no-interactive)
|
|
216
|
+
export DROPTHIS_NO_UPDATE_NOTIFIER=1 # Disable the startup update notice (also auto-disabled in CI, non-TTY, --json/--quiet)
|
|
214
217
|
```
|
|
215
218
|
|
|
216
219
|
```bash
|
|
@@ -233,8 +236,10 @@ dropthis publish ./dist --url
|
|
|
233
236
|
| 1 | API or generic error |
|
|
234
237
|
| 2 | Invalid usage |
|
|
235
238
|
| 3 | Auth required |
|
|
236
|
-
| 4 | Local input error |
|
|
237
|
-
| 5 | Network error |
|
|
239
|
+
| 4 | Local input error (file or directory not found, too many files) |
|
|
240
|
+
| 5 | Network error (could not reach the API) |
|
|
241
|
+
| 6 | Domain verification pending (`domains verify` one-shot, not live yet) |
|
|
242
|
+
| 7 | Domain verification timeout (`domains verify --wait` exceeded `--timeout`) |
|
|
238
243
|
|
|
239
244
|
**JSON output shape:**
|
|
240
245
|
|
|
@@ -266,7 +271,9 @@ Reports CLI version, auth source (`env`, `flag`, `storage`, or `missing`), and c
|
|
|
266
271
|
|
|
267
272
|
- **Free ($0)** — drops expire after 7 days, 5 MB per drop, dropthis badge.
|
|
268
273
|
- **Personal ($5/mo)** — drops stay live while subscribed (no expiry), no badge, 100 MB per drop, 2 GB account storage.
|
|
269
|
-
- **Pro ($19/mo)** — everything in Personal plus password protection
|
|
274
|
+
- **Pro ($19/mo)** — everything in Personal plus password protection and analytics.
|
|
275
|
+
|
|
276
|
+
Custom domains (`dropthis domains`) are available on every tier — they are not plan-gated.
|
|
270
277
|
|
|
271
278
|
`dropthis account` shows your active tier and its limits. Note: password protection ships with Pro and is not enabled on any tier yet — the API rejects the `--password` option until then.
|
|
272
279
|
|