notionsh
v0.0.2
Published
A shell script manager built on Notion.
Downloads
15
Maintainers
Readme
Notion Sh
Organize your shell scripts in Notion and run your scripts from anywhere.
Table of Content
Getting Started
- Create a Notion Developer Integration here
- Save the token somewhere safe, will use it in step 5
- Create a Notion page
notion-sh
(spelling must be same) - Create child pages inside
notion-sh
- the name of the child page will be the shell command name
- include alphabetical characters only, like
echo
- Add code blocks for your shell scripts
NOTION_TOKEN=... npx notionsh run
- 🎉
Command Structure
Under the notion-sh
page, all child pages are executable commands. Grouping commands into categories are also avaliable.
In the above example, npx notionsh run
will list 4 commands:
$ npx notionsh run
✔ Loading scripts from your Notion pages...
? Execute -> echo
echo
command
command subcommand
command subcommand test
Usage
$ npx notionsh run
✔ Loading scripts from your Notion pages...
Select a script to execute:
- xxx
- xxx
...
# Or run a command directly
$ npx notionsh run COMMAND
...
Commands
notionsh run
Fetch your script from Notion and execute it.
USAGE
$ notionsh run
$ notionsh run COMMAND