@axelote/cli v0.2.2
Axelote CLI
Light and fast CLI for the Axelote
Official website: https://axelote.com
Official docs: https://axelote.com/docs#cli
Table of Contents
Features
- Hash SQL queries using files patterns
- Authentication
Installation
Using npm:
$ npm install -g @axelote/cliExample
Display help
axelote --helpLogin using prompt
axelote loginHash queries
axelote hash -f dist/**/*.jsAuthentication
To use Axelote CLI you must be authenticated. Axelote CLI and Axelote Provider API offers a single point of authentication.
To login into Axelote Provider API you can use automatic command prompts asking you about host to Axelote Provider API, username and password.
axelote loginAlternatively, especially for automation you can pass host to Axelote Provider API, username and password in command line params.
axelote login -h http://foohost -u foo_username -p foo_passwordNOTE: http or https protocol must be declared
Axelote Prime
If you have Axelote Prime solution, you may have two-factor authentication configured in the Keycloak. Hence, when you use login with prompt, you may be asked to provide one-time token from authentication application/email.
axelote loginThere is possibility to pass one-time token in command line param as well.
axelote login -h http://foohost -u foo_username -p foo_password -t foo_tokenHashing queries
The goal of Axelote is to secure SQL queries on frontend side during build phrase of your project. Securing queries is super simple, but you must be authenticated before you will be able to execute hashing command.
axelote hash -f dist/**/*.jsWhere the only param needed is -f which is pattern to files which you want to process.
NOTE: Hashing changes files, thus should be used as a final step during your build only on output, already build sources.
Debugging
If you are facing problems and you want to report an issue, or you just want to see more information, you can pass --debug parameter to both
login and hash main commands.
axelote hash -f dist/**/*.js --debugResources
License
Axelote CLI is completely free to use. See LICENSE.md or License page
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago