This command will add the card do not forget milk
to the trello board and list of your liking.
teezeit@1231239EB:~$ trello do not forget milk
- Log in to trello.
- Go to: https://trello.com/1/appKey/generate.
- This is your
APP_KEY
. - At the same page, click on "generate Token".
- This is your
USER_TOKEN
. - Take the board of your choosing. look at the url and extract the
BOARD_ID
: e.g. in https://trello.com/b/eV33ltgS/work it would beeV33ltgS
. - run in a browser or curl (replace
BOARD_ID
,APP_KEY
andUSER_TOKEN
: https://api.trello.com/1/board/BOARD_ID?cards=open&lists=open&checklists=all&key=APP_KEY&token=USER_TOKEN - In the resulting json, search for the name of the list you like to add the cards to and extract the
LIST_ID
. e.g. if you have the two lists called "today" and "later" the important part of the json looks like this:
{"id":"daf38f754ebbdaffaadc5332","name":"today","closed":false,"idBoard":"533334efb72ae5e34342d","pos":131271,"subscribed":false},{"id":"53dadffa5594a1cf68f8959ae2","name":"later","closed":false,"idBoard":"333f74efb72ae5e3ae3434","pos":126607,"subscribed":false}
and if you want to add to list "today", LIST_ID
would be daf38f754ebbdaffaadc5332
- copy the file trello from https://github.com/teezeit/add_trello_card_from_terminal/blob/master/trello
- replace
APP_KEY
,USER_TOKEN
andLIST_ID
with your information. ideally, keep the filename trello - put trello in
/usr/local/bin/
and make the file executable - you should be able to run
teezeit@1231239EB:~$ trello do not forget milk
from terminal. all inputs after trello will be concatenated
do not forget milk
should be appear as a card in your trello list "today"- let me know if it works!