A CLI to add new game-related cards to your Trello board.
Before running this CLI, you'll need to install:
Also, suffice to say, you will need a Trello board to operate on.
To install the project dependencies, run:
npm install
Or, in case you're using yarn
:
yarn install
You will need a .env
file with the following content:
TIMEOUT=
TRELLO_API_KEY=
TRELLO_API_TOKEN=
TRELLO_BOARD_ID=
Where:
TIMEOUT
is the general request timeout in milisecondsTRELLO_API_KEY
is your Trello API keyTRELLO_API_TOKEN
is your Trello API tokenTRELLO_BOARD_ID
is your board id
To generate your API key and token, click here. To get a board id, just generate a JSON file through your own board menu on Trello and copy the content from the id
property (like the demo below).
With the dependencies installed, just run:
npm run start
Or:
yarn start
You have two ways of adding new cards to your board. The first way is to add one single card, choosing the first option from the main menu. When using this option, the following will happen:
- An input prompt will show up for you to type the game's name
- In the next menu you need to choose in which list to place your card
- After that, you just choose the labels you want to put on it (in this section, you can choose zero or more)
After that, your card will be generated and sent to your Trello board.
The lists and labels are loaded from your board.
The second way is to choose the second option in the main menu. To use this option you will need:
- A list with the
Temp
name on your board - A file with all the games you want to add listed like the following
game 1
game 2
...
- The file need to be, at least, in the project's root directory
After choosing this option a menu will ask for you to choose the file where the games are listed. After choosing the file, just wait until the process is done.
For the time being, there's no option to add labels and choosing a diferent list to add your cards on when using this option.
The restulted card should be like this:
The project license can be found here.