Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/useshortcut/exporter
Shortcut data exporter
https://github.com/useshortcut/exporter
Last synced: about 2 months ago
JSON representation
Shortcut data exporter
- Host: GitHub
- URL: https://github.com/useshortcut/exporter
- Owner: useshortcut
- License: mit
- Created: 2015-11-02T19:39:10.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2024-04-26T20:00:03.000Z (8 months ago)
- Last Synced: 2024-04-27T14:32:59.773Z (8 months ago)
- Language: Shell
- Homepage:
- Size: 28.3 KB
- Stars: 30
- Watchers: 21
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```shell
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.
``` shell
SHORTCUT_API_TOKEN="YOUR API TOKEN HERE" ./exporter.sh
```## Development
Install dependencies:
- jq (used for testing)
- shellcheck (used for linting)If on macOS, you can use Homebrew to install them:
```shell
brew install jq shellcheck
```The following Makefile targets are available:
- `make lint` runs the `shellcheck` command to lint the exporter script
- `make run` runs the exporter script
- `make test` should be used after `make run` and checks the contents of each exported JSON fileThe `test` target is not made to depend on the `run` target because of how long the `run` target takes to execute.