The Altostra CLI needs to be authenticated before it can access and use the Altostra services.
In a terminal window run:
$ alto login
The command opens an authentication page in your browser where you can use your Altostra account to log in. Once the login process is complete, you can close the browser tab/window and get back to the terminal:
At any point you can check your login status and expiration by using the
$ alto whoami ✔ Getting user information... User ID: xxxxxxxx Expires: Wed Dec 25 2019 20:55:55
If at some point you need to log out of your account - for example, if you've been working on someone else's machine or if you need to switch users - run the following command:
$ alto logout
Now that you have logged in to Altostra, it's time to build something. Head over to the next section to find out how.