upload big files to Zenodo.org using cURL, jq and bash
Uploading big files to https://zenodo.org from the commandline using the Zenodo API is not straight forward. zenodo_upload.sh tries to make this a little easier.
Inspired by Max Ogden's gist at https://gist.github.com/maxogden/b758cf0fe6d353846ef9ce7d03fdca0c .
- jq
- curl
- bash
- open a terminal
- clone this repository
- set environment variable
ZENODO_TOKEN
to Zenodo access token (see https://zenodo.org/account/settings/applications/tokens/new/)
export ZENODO_TOKEN=[Zenodo access token]
- create a new publication in Zenodo using the web ui, enter some information (e.g., title) and click
save
- in the browser, copy the deposition id (e.g., in
https://zenodo.org/deposit/12345
, 12345 is the deposition id) - in terminal and upload a file using
./zenodo_upload.sh [deposition id] [filename] [--verbose/-v, optional]
- on completion, you should see something like:
+ curl ...
######################################################################## 100.0%
- in the web ui, refresh the deposition page and observe that the file was uploaded.