Terminal upload

Upload files of any type from a server, seedbox or your own machine with one command, and get a share link back for each file. Large uploads resume where they stopped.

1. Get access

  1. Create an account and open Dashboard → Bots.
  2. Generate your API key. It is shown once, so copy it somewhere safe.
  3. Request terminal upload on the same page. An admin approves each account by hand.

2. Upload with the script (Linux, macOS, seedboxes, Windows)

Needs curl and python3, which most systems already have.

On Windows, run the same commands in WSL (Windows Subsystem for Linux) or Git Bash. That is the way to upload files over 16 MB from Windows.

curl -fsSLO https://exastash.com/cli/exastash-upload.sh
mkdir -p ~/.config/exastash && printf '%s' 'esk_YOUR_KEY' > ~/.config/exastash/key && chmod 600 ~/.config/exastash/key

sh exastash-upload.sh movie-pack.zip game.iso some-folder/

It prints one line per file: the file name, a tab, and its share link. Folders are uploaded file by file. If a big upload is interrupted, run the same command again and it continues.

Keep your key out of the command line itself (it would end up in your shell history). Use the key file above or the EXASTASH_KEY environment variable.

3. Or use curl directly (also works on Windows 10+)

For files under 16 MB. Larger files need the script, which uploads in parts.

# 1. Get a 15-minute upload token
curl -s -X POST -A "exastash-cli/1.0.0 (+https://exastash.com/cli)" -H "X-ExaStash-Key: esk_YOUR_KEY" https://api.exastash.com/api/cli/token

# 2. Ask where to upload (use the token from step 1)
curl -s -X POST -A "exastash-cli/1.0.0 (+https://exastash.com/cli)" -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" \
  --data '{"filename":"notes.pdf","contentType":"application/pdf","size":123456}' https://api.exastash.com/api/upload/sign

# 3. Send the file to the "url" from step 2
curl -X PUT -H "Content-Type: application/pdf" --data-binary @notes.pdf "URL_FROM_STEP_2"

# 4. Finish — the reply's "url" is your share link
curl -s -X POST -A "exastash-cli/1.0.0 (+https://exastash.com/cli)" -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" \
  --data '{"key":"KEY_FROM_STEP_2"}' https://api.exastash.com/api/upload/multipart/finalize

Limits and rules