Command line
The fastwater CLI, for scripts and agents with a shell.
fastwater (npm package @fastwaterapp/cli)
adds magnets, waits for transfers, lists and downloads files, and prints
links. Every command takes --json, so agents with a shell use it too.
Install Node.js
The CLI needs Node.js 20 or later, from nodejs.org. Then
run it with npx, no install needed:
npx @fastwaterapp/cli --helpOr install it, to type fastwater instead:
npm install -g @fastwaterapp/cliSign in
npx @fastwaterapp/cli loginIt shows a code and opens your browser. Check the code matches and approve it. The computer then shows under Account, Devices, where you can sign it out.
Use it
npx @fastwaterapp/cli add "$MAGNET" --wait # add a magnet and wait for it
npx @fastwaterapp/cli files sintel # search your files
npx @fastwaterapp/cli link $FILE_ID # links to watch and download
npx @fastwaterapp/cli download $FILE_ID -o ~/Downloadsnpx @fastwaterapp/cli --help lists every command.
For coding agents
Install the agent skill, so Claude Code knows the commands:
npx @fastwaterapp/cli skill installnpx @fastwaterapp/cli skill prints it for other agents.
On a server or in CI
There's no browser to approve a code, so sign in with an API key instead:
echo "$FASTWATER_KEY" | npx @fastwaterapp/cli login --with-tokenOr set FASTWATER_TOKEN to the key.
Exit codes
| Code | Means |
|---|---|
0 | Success |
1 | API error |
2 | Usage error |
3 | Not signed in |