1.1.0 • Published 8 months ago
instaleap-lola-cli v1.1.0
Lola CLI
Lola is a sister CLI tool to Coulson, designed to host and run scripts that don’t fit within Coulson's scope. It enables the support and solutions team to execute custom scripts that are reviewed and audited by the Internal Tools team, ensuring flexibility without compromising security and quality.
Usage Process
Installation command :
npm i instaleap-lola-cli o npm i instaleap-lola-cli -g
Commands:
You can find more information about the CLI by simply typing lola in the cmd command. This will display information such as a link to the slite documentation and a description of the commands.
lola
- login : This command allows a user to authenticate with Auth0 and communicate with Coulson, which will allow you to interact with the rest of the commands. If you do not do this, it will show you a message that you are not authenticated. Please run the login command.
lola login
- web : This command is responsible for requesting a name and then it will make a request to the webhook where the name we provide will be and we will be able to review the URL that the command passes as a response.
lola web
- logout : This command allows us to close the session in the CLI and it is important to execute it when we finish using it.
lola logout
- routing : This command runs the routing script that is responsible for receiving a route where an Excel file is located, then it will ask for the range of days which if we enter from Monday to Wednesday would be as follows: monday, tuesday, wednesday, it will validate and return the information in JSON within a folder that it will create on the desktop called routingOutputFile.
lola routing
For more information you can consult the sqlite documentation
Example Usage
lola web
What is your name? // Enter a name.
Command response.
You can check the webhook status here: https://webhook.site/#!/view/ca45e28f-38f8-4b6c-b417-edcae53f5785/97a1caf0-5cd8-4f51-a31f-c80a9db0a2ac/1
Webhook sent successfully.