This is a python application that will take a Todoist project and convert it into a script. This was made for the purpose of creating installation scripts from Todoist projects.
- Create a new project in Todoist.
- Add sections for each step in your process, and add tasks for each command you want to run in the terminal.
- Create a
.env
file and add your API token asAPI_TOKEN=<token>
. - Run
python todoist.py
and enter the project id when prompted. You can find this by going to the settings of your Todoist project, or by looking at the output oftodoist.py
. - Enter the section id when prompted (the name should match what you entered as section names).
- Open setup.sh and run it with bash:
bash setup.sh
.
The application uses the Todoist API to get all of your projects, sections, and tasks from Todoist, then writes them into a shell script called setup.sh that will be created in the same directory as todoist_to_script
. The file looks like this:
# Section name 1
Command 1...
Command 2...
# Section name 2
Command 1...
Command 2...