useshortcut / exporter

Shortcut data exporter
MIT License
32 stars 11 forks source link

Shortcut Data Exporter

This shell script will export all of your Shortcut organization data to JSON files, which you can use to transfer your data to another system, to keep locally as a backup, or for data analysis.

Instructions

Download the latest version of this exporter:

curl -L -o "exporter.sh" "https://github.com/useshortcut/exporter/raw/main/exporter.sh"
chmod u+x ./exporter.sh

Then you'll need a Shortcut API token defined as an environment variable (see below). If you don't have a token already, you can create one by navigating to Settings > My Account > API Tokens.

SHORTCUT_API_TOKEN="YOUR API TOKEN HERE" ./exporter.sh

Development

Install dependencies:

If on macOS, you can use Homebrew to install them:

brew install jq shellcheck

The following Makefile targets are available:

The test target is not made to depend on the run target because of how long the run target takes to execute.