basemodo upload
Get a one-time link to send an App's folder to from your own shell, for deploy to deploy.
basemodo upload [OPTIONS] --name <NAME>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 <NAME>(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.
Like every command, it also takes the global options --json and --api-url.
Examples
Get a link for the App lunch-rota, send the folder, and deploy it:
basemodo upload --name lunch-rotabasemodo deploy --upload <upload_id> --name lunch-rotaOutput
With --json, it prints {"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.
From an agent
Basemodo's MCP serves it as the tool upload. It changes things, so an agent's client may ask you before it runs. Its arguments are the command's, named as JSON keys: name (text). It answers what the command prints with --json.