@dropkit/cli
v0.2.0
Published
dropkit CLI: one command to wire file uploads into any JS/TS project.
Maintainers
Readme
@dropkit/cli
The dropkit CLI. One command to wire file uploads into any JS/TS project.
Install
npx @dropkit/cli@latest initOr install globally and call the dropkit binary:
npm i -g @dropkit/cli
dropkit initCommands
dropkit init # wire dropkit into the current project
dropkit upload <path> # upload a file or folder
dropkit login # save a project key for future use
dropkit logout
dropkit whoami # show current auth stateZero-signup demo
Run dropkit upload <file> with no key set and the CLI uploads to the public demo (10 MB cap, files expire in 1 hour). Run dropkit login to attach a permanent project.
Env
| var | effect |
|---|---|
| DROPKIT_KEY | Key to use. Takes precedence over saved config. |
| DROPKIT_ENDPOINT | API endpoint. Defaults to https://api.dropkit.app. |
Exit codes
| code | meaning |
|---|---|
| 0 | ok |
| 10 | auth required |
| 20 | network error |
| 30 | validation error |
| 40 | user aborted |
| 50 | conflict (file exists, use --force) |
JSON output
All commands accept --json. Output is machine-readable on stdout, diagnostics go to stderr.
Docs
https://dropkit.app/docs
