0.2.2 • Published 12 months ago

@axelote/cli v0.2.2

Weekly downloads
-
License
LICENSE.md
Repository
-
Last release
12 months ago

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/cli

Example

Display help

axelote --help

Login using prompt

axelote login

Hash queries

axelote hash -f dist/**/*.js

Authentication

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 login

Alternatively, 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_password

NOTE: 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 login

There 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_token

Hashing 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/**/*.js

Where 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 --debug

Resources

License

Axelote CLI is completely free to use. See LICENSE.md or License page

0.2.1

1 year ago

0.2.2

12 months ago

0.2.0-beta

1 year ago

0.2.1-beta

1 year ago

0.1.9-alpha

1 year ago

0.2.0

1 year ago

0.1.8-alpha

1 year ago

0.1.7-alpha

1 year ago

0.1.6-alpha

1 year ago

0.1.5-alpha

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago