@dropthis/cli 0.9.2 → 0.9.3

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 +30 -28
  2. package/dist/cli.cjs +3 -3
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -126,48 +126,50 @@ These flags are inherited by all commands:
126
126
 
127
127
  ## Update
128
128
 
129
- Update an existing drop's content, metadata, or both via `drops update`:
129
+ Change an existing drop without creating a new URL. Content and settings are **separate** operations — pass the full `drop_…` id (not the slug):
130
130
 
131
131
  ```bash
132
- # Replace content
133
- dropthis drops update drop_abc123 ./dist-v2
132
+ # Replace the content at the same URL (ships a new deployment)
133
+ dropthis update-content drop_abc123 ./dist-v2
134
134
 
135
- # Update metadata only
136
- dropthis drops update drop_abc123 --title "New title"
135
+ # Change settings only — title, visibility, password, expiry, metadata
136
+ dropthis update-settings drop_abc123 --title "New title"
137
137
 
138
- # Optimistic concurrency
139
- dropthis drops update drop_abc123 ./dist-v2 --if-revision 1
138
+ # Optimistic concurrency (both accept --if-revision)
139
+ dropthis update-content drop_abc123 ./dist-v2 --if-revision 1
140
140
  ```
141
141
 
142
- `drops update` supports all publish flags plus `--if-revision`.
142
+ `update-content` replaces the files at the URL; `update-settings` changes title, visibility, password, noindex, expiry, or metadata. Creating a new drop is always `publish` neither update command makes a new URL.
143
143
 
144
144
  ## Commands
145
145
 
146
146
  ```bash
147
- dropthis [input...] # Publish content (default command)
148
- dropthis publish [input...] # Same as above, explicit form
147
+ dropthis [input...] # Publish content (default command)
148
+ dropthis publish [input...] # Same as above, explicit form
149
149
 
150
- dropthis drops list # List your drops
151
- dropthis drops get <drop-id> # Get drop details
152
- dropthis drops update <drop-id> [input] # Update content or metadata
153
- dropthis drops delete <drop-id> # Delete a drop
150
+ dropthis update-content <drop-id> [input] # Replace a drop's content (same URL)
151
+ dropthis update-settings <drop-id> # Change title/visibility/password/expiry/metadata
152
+ dropthis get <drop-id> # Show drop details
153
+ dropthis list # List your drops
154
+ dropthis delete <drop-id> # Delete a drop (--yes to confirm)
154
155
 
155
- dropthis login # Authenticate with email OTP
156
- dropthis login request --email <email> # Request OTP (non-interactive)
157
- dropthis login verify --email <email> --otp <code> # Verify OTP
158
- dropthis logout # Remove stored credentials
159
- dropthis whoami # Show current auth status
160
- dropthis account # Account details
156
+ dropthis deployments # View deployment history
161
157
 
162
- dropthis api-keys create # Create an API key
163
- dropthis api-keys list # List API keys
164
- dropthis api-keys delete <key-id> # Delete an API key
158
+ dropthis login # Authenticate with email OTP
159
+ dropthis login request --email <email> # Request OTP (non-interactive)
160
+ dropthis login verify --email <email> --otp <code> # Verify OTP
161
+ dropthis logout # Remove stored credentials
162
+ dropthis whoami # Show current auth status
165
163
 
166
- dropthis deployments list <drop-id> # List deployments
167
- dropthis deployments get <drop-id> <dep-id> # Get deployment details
164
+ dropthis account # Show account details
165
+ dropthis account update --display-name <name> # Update your display name
168
166
 
169
- dropthis doctor # CLI diagnostics
170
- dropthis commands # Machine-readable command metadata
167
+ dropthis api-keys create # Create an API key
168
+ dropthis api-keys list # List API keys
169
+ dropthis api-keys delete <key-id> # Delete an API key (--yes to confirm)
170
+
171
+ dropthis doctor # CLI diagnostics
172
+ dropthis commands # Machine-readable command metadata
171
173
  ```
172
174
 
173
175
  ## Agent & CI/CD usage
@@ -190,7 +192,7 @@ dropthis publish ./dist --url
190
192
 
191
193
  - Use `--url` to get only the published URL (cleanest for agents)
192
194
  - Use `--json` for the full structured response
193
- - Use `--yes` for destructive commands (`drops delete`, `api-keys delete`)
195
+ - Use `--yes` for destructive commands (`delete`, `api-keys delete`, `account delete`)
194
196
  - Use `--no-interactive` to disable inline auth prompts
195
197
  - All errors write to stderr as JSON with a `next_action` field
196
198
 
package/dist/cli.cjs CHANGED
@@ -769,13 +769,13 @@ async function runDoctor(_input, deps) {
769
769
  const authSource = credential?.source ?? "missing";
770
770
  const storageBackend = stored?.storage ?? "none";
771
771
  const pairs = [
772
- ["Version", "0.9.2"],
772
+ ["Version", "0.9.3"],
773
773
  ["Auth", authSource],
774
774
  ["Storage", storageBackend]
775
775
  ];
776
776
  writeKv(deps, pairs, {
777
777
  ok: true,
778
- version: "0.9.2",
778
+ version: "0.9.3",
779
779
  auth: { source: authSource },
780
780
  storage: { backend: storageBackend }
781
781
  });
@@ -1822,7 +1822,7 @@ function buildProgram(options = {}) {
1822
1822
  ` ${import_picocolors4.default.cyan("dropthis login")}`,
1823
1823
  ` ${import_picocolors4.default.cyan("dropthis publish ./dist")}`
1824
1824
  ].join("\n")
1825
- ).version("0.9.2").configureHelp({
1825
+ ).version("0.9.3").configureHelp({
1826
1826
  subcommandTerm(cmd) {
1827
1827
  const args = cmd.registeredArguments.map((a) => {
1828
1828
  const name = a.name();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dropthis/cli",
3
- "version": "0.9.2",
3
+ "version": "0.9.3",
4
4
  "description": "Official CLI for Dropthis.",
5
5
  "license": "MIT",
6
6
  "repository": {