Level 2: Credentials

In this section, you will find a step by step to use credentials on Ritchie.


Create a formula on Ritchie that will return a JSON with Github credentials.

Note: The challenge consists in configure those inputs inside the config.json file, but run the formula without informing them as prompt or stdin (they will be extracted automatically).

You'll find all the informations you need in the how to manipulate credentials tutorial section.

Command suggestion: rit github get credentials


This formula needs to contain (at least) those two inputs parameters:

  1. Username (GIT_USER).

  2. Token ( GIT_TOKEN).

Step by step

The formula needs to follow the next steps:

  1. Extract all inputs parameters.

  2. Create the JSON with Github credentials.

  3. Return the result on the terminal.

Improvement suggestions

If you want to play a little more, here are some suggestions:

  • Develop some Github operation by manipulating these credentials.

  • Code a formula which will allow the user to create a repository on Github.

  • Code a formula which will allow the user to add, commit and push using one command only.

  • Code a formula which will allow the user to generate a release of the informed Github repository.

Next steps

👉 If you've completed the second challenge, let's go to level 3 task!