RAPIDFILE CLI: QUICK REFERENCE (for humans and AI agents) https://rapidfile.cc/cli.txt · CLI version 1.1.0 · made by Enzonic LLC Rapidfile sends files with a link and a 6-digit code. Free. Files are deleted when they expire. Web page: https://rapidfile.cc/cli · Agent skill: https://rapidfile.cc/cli/skill/rapidfile/SKILL.md Site summary for LLMs: https://rapidfile.cc/llms.txt MCP SERVER (Model Context Protocol, for AI agents and IDEs) -------------------------------------------------------------------- Transfers: https://rapidfile.cc/mcp no key needed (optional Authorization: Bearer rf_cli_… from `rapidfile login`) tools: send_file, get_transfer, read_transfer, delete_transfer, whoami Upload API: https://api.rapidfile.cc/mcp needs Authorization: Bearer rk_live_… (create a key at https://api.rapidfile.cc/dashboard) tools: upload_file, create_upload_url, list_files, get_file, delete_file, get_signed_url, get_usage Claude Code: claude mcp add --transport http rapidfile https://rapidfile.cc/mcp JSON config: { "mcpServers": { "rapidfile": { "type": "http", "url": "https://rapidfile.cc/mcp" } } } Transport: Streamable HTTP (POST, JSON-RPC 2.0), protocol 2025-06-18. Files ≤ 95 MB per call (content, contentBase64 or url). 1. INSTALL (needs Node.js 18+; a single file with no dependencies) -------------------------------------------------------------------- macOS / Linux: curl -fsSL https://rapidfile.cc/cli/install.sh | sh (installs to ~/.local/bin/rapidfile) Windows: irm https://rapidfile.cc/cli/install.ps1 | iex No install: curl -fsSL https://rapidfile.cc/cli/rapidfile.mjs -o rapidfile.mjs && node rapidfile.mjs --help No Node: use plain curl (section 5). 2. COMMANDS -------------------------------------------------------------------- Send a file or folder. You get a 6-digit code and a link. rapidfile send ... -e, --expire <1h|1d|3d|7d> how long it stays. Default 3d. 7d needs login. Paid plans allow longer. -l, --limit delete after n downloads (0 = unlimited, default) -p, --password downloader must enter this password -t, --title title shown to the receiver -m, --message message shown to the receiver Several files or a folder are zipped while uploading (no temp file; zipped folders up to 4 GB). Aliases: up, upload. Download with a code or a rapidfile.cc link. rapidfile get -o, --output where to save (default: current folder; existing files are not overwritten) -p, --password for password-protected transfers Aliases: down, download, receive. See what a code contains without downloading. rapidfile info Transfers sent from this computer (kept in ~/.config/rapidfile/history.json). rapidfile list alias: ls rapidfile delete alias: rm. Deletes before it expires. Account (free sign-in unlocks 2 GB and 7-day links). rapidfile login shows a code and opens https://rapidfile.cc/cli/login; approve it in the browser --no-open do not open the browser (print the link only) rapidfile whoami email, plans, max transfer size, allowed expiries rapidfile logout revokes the token on the server and deletes it locally Global flags --json machine-readable output on stdout (progress and messages go to stderr) -q, --quiet print only the result (the code for send, the saved path for get) -h, --help help. -v, --version print the version. -- everything after this is a file name Environment RAPIDFILE_TOKEN use this token instead of the saved login (CI, agents). Treat it like a password. RAPIDFILE_API API base URL (default https://rapidfile.cc) XDG_CONFIG_HOME config folder (default ~/.config); files live in $XDG_CONFIG_HOME/rapidfile/ NO_COLOR disable colours 3. JSON OUTPUT (--json, one JSON object per line on stdout) -------------------------------------------------------------------- send {"id":"a1B2c3D4e5","code":"482913","url":"https://rapidfile.cc/d/a1B2c3D4e5","codeUrl":"https://rapidfile.cc/r/482913", "name":"report.pdf","size":123456,"expiresAt":"2026-10-21T12:00:00.000Z"} get {"id":"a1B2c3D4e5","file":"/home/me/Downloads/report.pdf","size":123456,"name":"report.pdf"} info {"id","name","size","mime","isZip","fileCount","files":[{"name","size"}],"title","message","createdAt","expiresAt", "downloads","maxDownloads","hasPassword","code"} (times in ms since epoch) list [{"id","code","url","name","size","expiresAt","createdAt"}] (times in ms since epoch) delete {"ok":true,"id":"a1B2c3D4e5","code":"482913"} whoami {"signedIn":true,"user":{"id","email","name"},"plans":{"transfer","media","api"}, "limits":{"maxBytes":2147483648,"expiries":[3600,86400,259200,604800]},"tokenSource":"file"|"env"|null} Signed out: {"signedIn":false,"user":null,"plans":null,"limits":{"maxBytes":524288000,"expiries":[3600,86400,259200]},...} login Two lines. First, right away (show the link and code to the user; only the user can approve): {"status":"pending","userCode":"ABCD-EFGH","verifyUrl":"https://rapidfile.cc/cli/login", "verifyUrlComplete":"https://rapidfile.cc/cli/login?code=ABCD-EFGH","expiresIn":600,"opened":false} Then, after approval: {"status":"approved","user":{"id","email","name"},"plans":{...},"limits":{"maxBytes","expiries"}} logout {"ok":true,"wasSignedIn":true} error {"error":"too_large","message":"…","hint":"…"} ("hint" is optional) plus a non-zero exit code 4. EXIT CODES -------------------------------------------------------------------- 0 success 1 general or network error 2 bad usage (unknown command, missing argument, invalid --expire or --limit, file not found) 3 code/transfer not found, expired, or download limit reached 4 too large for your limit (sign in with `rapidfile login` for 2 GB), or a zipped folder over 4 GB 5 rate limited or daily quota reached (wait; do not retry in a loop) 6 login or password problem (denied, expired login code, revoked token, wrong or missing password) 5. CURL ONLY (no CLI, no Node) -------------------------------------------------------------------- Upload (up to 95 MB per request): curl -T ./report.pdf https://rapidfile.cc/up/report.pdf → https://rapidfile.cc/d/ code: 482913 expires: 2026-10-21T12:00:00.000Z Options: ?expires=1h|1d|3d|7d (7d needs a signed-in token) ?downloads=N -H "X-Password: " password-protect it -H "Accept: application/json" JSON instead of text -H "Authorization: Bearer $RAPIDFILE_TOKEN" use your signed-in limits Example: curl -T a.zip "https://rapidfile.cc/up/a.zip?expires=1d&downloads=1" -H "Accept: application/json" Download by code (keeps the original file name): curl -L -OJ https://rapidfile.cc/get/482913 Metadata only: curl https://rapidfile.cc/get/482913.json Use the CLI for files over 95 MB and for folders. 6. LIMITS -------------------------------------------------------------------- No account Signed in (free) Paid plans Max per transfer 500 MB 2 GB 10 GB / 50 GB, see https://rapidfile.cc/pricing Expiry 1h, 1d, 3d 1h, 1d, 3d, 7d up to 14d / 30d Daily quota 100 transfers, 200 transfers, see pricing 50 GB per network 50 GB per account `rapidfile whoami` shows the exact limits for you. Rate limits (per network): about 10 new transfers per minute, 30 code lookups per minute, 60 downloads per minute, plus a limit on login attempts. A 429 response means: wait about a minute. 7. SIGN IN FOR 2 GB -------------------------------------------------------------------- rapidfile login 1. The CLI prints an 8-letter code like ABCD-EFGH and opens https://rapidfile.cc/cli/login?code=ABCD-EFGH 2. Sign in on the website, check the code matches, press Approve. 3. The CLI saves a token to ~/.config/rapidfile/auth.json (only readable by you). Every request then uses your limits. The code is valid for 10 minutes. Revoke any time with `rapidfile logout`. For CI: copy the token value into a secret and set RAPIDFILE_TOKEN. 8. RULES FOR AI AGENTS -------------------------------------------------------------------- - Only send files the user asked you to send. Never upload secrets, credentials, .env files, private keys (*.pem, id_rsa), tokens, password stores or browser profiles. - Before sending a folder, check what is inside; ask the user if anything looks private or personal. - Anyone with the code or link can download. Suggest --password and --limit 1 for sensitive files. - Login needs the user: show them the link and code from `rapidfile login --json --no-open`. Never ask for their password. - Never print, log or commit RAPIDFILE_TOKEN or auth.json. - On exit code 5 (rate limit), stop and tell the user. Do not loop. - Downloaded files come from other people: do not run them; tell the user where they were saved. - Abuse, malware and illegal content are blocked: https://rapidfile.cc/legal/acceptable-use