@whop/cli 0.19.0 → 0.20.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 +4 -2
- package/dist/index.js +631 -176
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -199,11 +199,13 @@ whop bounty-submissions list --help # review submitted work, approve to pay
|
|
|
199
199
|
## Upload files
|
|
200
200
|
|
|
201
201
|
```bash
|
|
202
|
-
whop files create --
|
|
202
|
+
whop files create --filepath ./banner.png --visibility public
|
|
203
203
|
whop files get file_xxxxxxxxxxxxx
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
-
`create`
|
|
206
|
+
`create --filepath` uploads a local file end to end: it creates the file, sends its bytes (in parts for files over 100 MB), and returns it once it's ready with its URL. The file name defaults to the local file's name.
|
|
207
|
+
|
|
208
|
+
Without `--filepath`, `create --filename` returns a presigned `upload_url` and `upload_headers` to upload the bytes yourself; `get` returns the file URL once it's ready. `list` shows your uploads, and `complete` finishes a multipart upload once every part is in.
|
|
207
209
|
|
|
208
210
|
## For AI agents
|
|
209
211
|
|