 Since all zero is a developer first company developer experience has been a priority for us since day one We're always looking for ways to simplify the development process and ease friction along the way with the CLI You're able to create applications test logins tail logs and many other cool things and that sounds really good But I think the best thing for us to do now is to actually take a look All right, so I'm starting on the page for the github repository It's got the documentation in here to go through all the things that we're doing so you have a link to that in the description below So make sure to check it out. I do want to highlight the first section which is just getting started in installation So I'm personally on a Mac. So I use brew install to install the CLI There's also manual downloads and installations for Mac as well as Windows and Linux So whatever operating system you're on you should be covered now. I have opened my all-zero dashboard I'm inside of my James Q quick demos to Tenant tenant is basically grouping of applications and notice that I only have one application installed here or Created here. So we want to create another one with the all-zero CLI So I've got the CLI already installed You can see that here and we're gonna start with doing an all zero log in So this will take us over when we press enter take us over to the browser It will allow us to log in or confirm that we want to be able to be logged in with the CLI And we'll give it access specifically to that tenant demos to for me So we accept that that will finish this login process and now if I come back to my terminal You can see that that's that login happens successfully And it's asking me if I want to change my default tenant to that new tenant sure we can do that So now that we have logged in and we can now run all zero apps create Now this is the beauty of this instead of having to go into the dashboard to create the application We can do it right here and we can call this my CLI test a description. This is the best app There is I Want this to be a next JS application in this example So I'm gonna choose a regular web application and then for our callback URLs in this case our callback for it Next JS is going to be HTTP local host 3000 and then the callback URL is going to be slash API slash off Slash callback now if you're interested in why that is the way this is set up for next JS specifically You can check out the next JS quick start as well as we'll have more videos on that on this channel coming soon So make sure to subscribe so you can catch them when they come out So that will be our callback URL and then we also need a few other URLs But we don't need to change those these will just be 3000 So I'll just press enter to go through and have all that stuff taken care of so this application now Should be created if we come back to our browser page and refresh We should see a new application here on a refresh that is our CLI test Cool, and that thing has been created successfully for us including the Callback URLs and the allowed logout URLs that stuff worked really well, which is really nice Now after this happens all zero CLI gives you a couple of helpful hints in here on other things that you can do So you can test the login box We'll see that here in a second and you can also download the quick start application to have something up and running in just a few seconds So let's start with there's this all zero test login I'm not gonna copy that whole thing because I want to show you if you type this in without passing in the client ID Which is this part what this will do is it will read all of your applications and let you choose for one So there's no like copying and pasting this really long ID. I can toggle up and down and choose my CLI test What this is going to do when I say yes is send me over to the browser again now I get to go through this login experience Let's try this All right, so that worked well It's asking for access to profile information the application is so we'll accept that after we finish It says log in the successful and now you see a couple of different things happened One you saw on the browser that it finished successfully you get Noted in here to let you know that it happened successfully We also get an ID token and this is a JWT or a JSON web token And if you're curious what these look like or what that information represents you can go to JWT IO link below in the description as well To decode at this token and see what information is there You can see email and picture and the sub which is the unique identifier for the user all really cool stuff It works really well. So now we know that this login process is working But what if we don't want to just take all zeroes word for it? What if we want to test it out ourselves in a real application? Well, this is where we can download our quick start So this is really cool. We can run the all zero quick starts download Again, since I didn't pass a client ID It's gonna let us choose between a different application So we can choose the CLI test app and then now we get greeted with here's all of the different languages Frameworks that you might be interested in downloading for Mention that this is gonna be next chance. We've come down to next chance It's gonna do this download and then we'll have that thing ready, which is really amazing So I'm gonna cd into that directory. So cd into my CLI test sample zero one We'll do an npm install to make sure all those packages get installed The other thing we'll do when this finishes is we'll actually open up the source code nvs code and let you take a look at it before we run it just to show you that this stuff works All right, so that finished installing all of our packages and we've got the code open here in vs code Now we can run an npm run dev to start this application and while that's loading I just want to show that the environment variables in here are already populated from the quick start So it since it downloaded the quick start associated with a specific app We get the credentials for that application already configured for us and I'll show you how this works here in a second So that stuff is ready to go But one thing I want to do is when we test this login in this quick start I want to be able to show the logs in the terminal here So with the all-zero CLI you can do an all-zero logs tail and now you'll be able to see all of these logs So let's scroll over to our application. Let's open it up on localhost 3000 We should be greeted with a beautiful application here already configured for all zero for our application We can click on login. We can go through this login process See that that just happened there if I log out just to show you that this works We'll log out as well So I wanted to show you inside of the terminal that we saw both the login process and the logout process and the terminal Now one other thing I want to show is we can run that same command But add on the debug flag which will basically provide us a little bit more information Like or as an example if we log in with a bad password or if we fail to log in so let's try that let's try the same email address but Type in just kind of a made-up password Obviously that thing won't let us log in and if we scroll back to our CLI now We get some more details in these logs to show us what went wrong, which was a wrong email or password So in just a few minutes We were able to use the all-zero CLI to create an application to download quick start information and to tail logs But there's actually several other things you could do as well So inside of the terminal you can type all zero help We'll give you a list of the different resources that you can work with including working with your tenants your apps your rules Your apis and so on and so on so make sure to give all of these features a look as you try it out All right, so that is the off-zero CLI which can really help simplify your process for just building applications and getting stuff done Hopefully you enjoyed that if you have any feedback on the CLI Let us know in the comments below if you have any suggestions or maybe a PR that you'd like to add to the Repository feel free to contribute in that way as well. Thank you as always for checking out the video and we'll catch you next time