# upload

Get a one-time link to send an App's folder to from your own shell, for deploy to deploy.

The tool of [`basemodo upload`](https://basemodo.com/docs/cli/upload), on the local MCP and the remote one. It changes things, so an agent's client may ask you before it runs.

For an agent with a shell that reaches Basemodo through the Remote MCP, whose folder is on a computer the MCP is not: it sends the folder with the curl line this answers, then deploys it with deploy --upload, so no file passes through the conversation. The link takes one folder (a gzipped tar of at most 50 MB) within 10 minutes, opened by a one-time key in its Authorization header; the folder then waits 10 minutes for its Deploy (an hour once the Deploy asks for a Charge Approval), which is made like a folder's: its ignore files and .env files left out, a key in its code refused (secret_in_code). Only the person who asked deploys it, to the App named (created then, as deploy creates one), never one linked to GitHub (code_on_github). With the CLI on the folder's own computer, deploy the folder itself instead.

## Arguments

- `name` (text, required): The App the folder is for: the Deploy of what is sent names it too. Created by that Deploy the first time, as deploy creates one.

## On the remote MCP

The same on the remote MCP.

## Answer

It answers {"upload_id", "name", "upload_url", "authorization" (the Authorization header's value, the one-time key), "expires_at", "max_bytes", "curl" (tar piped into curl, to run in the App's folder: the key goes to curl in a file, never as an argument), "next"}. curl answers {"upload_id", "files", "size_bytes", "kept_until", "next"} once the folder arrived, or an error: a link used already, upload_link_used; expired, upload_link_expired; a link, a path out of the folder or a special file in it, invalid_source; past 50 MB, source_too_large.