Log in to OL CLI

After installing OL CLI, you need to sign up to OL HUB and generate an API key. Then you can log in to OL CLI and start working in OL CLI or OL HUB.

To login to the OL CLI:

  1. Generate an API key on the OL Hub and save it in a secure location.

  2. In OL CLI, run ol login and paste the key you saved as the value of the api-key option.

>ol login <api-key>
$ol login <api-key>

For example: ol login E0NC05Njc5LTdhYWZlNGYxOTMwYw==

If successful, the login process ends with the message:

You are now logged in to OL HUB.