Fileport
Official# Fileport CLI
Upload large files to [Fileport](https://fileport.io) from your terminal, your scripts and your AI assistant, and get a link that works at once.
```
$ npx @fileport/cli send ./build
https://fileport.io/Kd7pQx3mRt9a
```
The link works as soon as the upload starts, so people can download while it uploads.
## Install
Node.js 22 or later runs it with `npx @fileport/cli`, or install it once:
```
npm install -g @fileport/cli
```
## API key
Keys come with every paid plan. Create one on the [API page in your account](https://fileport.io/account/api), then set it for each run:
```
export FILEPORT_API_KEY=fpk_...
```
Or save it on this computer, in `~/.config/fileport/config.json`:
```
fileport login
```
## Commands
| Command | What it does |
| --- | --- |
| `fileport send <paths...>` | Uploads files and folders, and prints the link |
| `fileport add <id> <paths...>` | Adds files and folders to an upload |
| `fileport list` | Lists your uploads, newest first |
| `fileport get <id>` | Shows an upload's details and files |
| `fileport edit <id>` | Changes an upload's name, expiry, password and more |
| `fileport remove <id> <numbers...>` | Removes files from an upload |
| `fileport delete <id>` | Deletes an upload |
| `fileport account` | Shows your plan, storage and uploads left today |
| `fileport login` | Saves your API key on this computer |
| `fileport logout` | Removes the saved key |
| `fileport mcp` | Runs the MCP server for AI assistants |
`--json` prints any answer as JSON, and `--help` shows a command's options.
`send` takes `--name`, `--photobook` to make a photo album, and `--region`, like `eu-central`, for where the upload server is.
## AI assistants
`fileport mcp` connects Fileport to assistants that use MCP. Ask yours to send a folder with Fileport, and it answers with the link.
Give your assistant an Upload Only key, so it can't see or delete your uploads.
Claude Code:
```
claude mcp add fileport -e FILEPORT_API_KEY=fpk_... -- npx -y @fileport/cli mcp
```
Cursor (`~/.cursor/mcp.json`) and Claude Desktop (`claude_desktop_config.json`):
```json
{
"mcpServers": {
"fileport": {
"command": "npx",
"args": ["-y", "@fileport/cli", "mcp"],
"env": { "FILEPORT_API_KEY": "fpk_..." }
}
}
}
```
VS Code (`.vscode/mcp.json`):
```json
{
"servers": {
"fileport": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@fileport/cli", "mcp"],
"env": { "FILEPORT_API_KEY": "${input:fileport-key}" }
}
},
"inputs": [{ "type": "promptString", "id": "fileport-key", "description": "Fileport API key", "password": true }]
}
```
Its tools are Send Files, Add Files, List Uploads, Get Upload, Edit Upload, Remove Files, Delete Upload and Account.
## The API
The CLI uses Fileport's API, which the [docs](https://fileport.io/api) describe with examples in curl, JavaScript and Python.
## License
MIT
TDQS
Scored across 8 tools
Most tools map cleanly to distinct actions: create/list/get/edit/delete uploads, plus add/remove files and account lookup. The one mild overlap is send_files vs. add_files, since both upload local files, but their descriptions clarify new-upload vs. existing-upload behavior.
All names follow a consistent snake_case verb_noun pattern with predictable verbs: send/add/list/delete/get/edit/remove/get. Singular/plural nouns are used sensibly for single resources vs. collections.
Eight tools is well-scoped for a file upload service: enough to cover creation, listing, inspection, editing, deletion, file add/remove, and account status without bloat.
The upload lifecycle is well covered: create via send_files, inspect via list/get, update via edit_upload, delete, and file add/remove. Minor gaps exist around explicit pagination for list_uploads and file-level operations beyond remove-by-index, but core workflows are supported.