@credenceanalytics/iwfcli v3.3.1
iwfcli
The "@credenceanalytics/iwfcli" npm package is a powerful command-line interface (CLI) tool designed to simplify the management and configuration of applications. With a wide range of commands and functionalities, this package provides developers with a convenient way to initialize, configure, and troubleshoot their applications.
The package offers a comprehensive set of commands for tasks such as initializing the application, updating database details, configuring Java settings, managing RabbitMQ configurations, changing ports, and modifying product details. It also provides features for extracting logs, creating thread and heap dump files, generating encryption key-pairs, and migrating existing configurations to newer versions.
The CLI tool is easy to install globally using npm, and it requires Node.js version 14.16.0 or higher and Oracle Instant Client version 18.5.0.0 for proper functioning.
Installation
Prerequisites
iwfcli installation need:
- Node.js >=14.16.0 (Download Link) installed.
- Oracle Instant Client == 18.5.0.0 (Download Link) installed.
Online Mode
iwfcliis available in npm. To install it, type:$ npm i -g @credenceanalytics/iwfcli
Offline Mode
Extract iwfcli.zip. Place the extracted
iwfclifolder to somewhere safe on your disk.Run
npm link --forceinsideiwfclifolder. (This will start the installation process)
Test installation by typing following command:
$ iwfcli --help
Commands
iwfcli config:init
Initialize the application. Takes input of paths of the JBOSS server directory and all the other microservice and creates a config.json file and stores the paths in it.
USAGE
$ iwfcli config:initiwfcli config:database
Initialize or update the database details. For any errors reinitialize using iwfcli config:init command. Sensitive data encryption is now supported.
USAGE
$ iwfcli config:databaseiwfcli config:java
Update the java details in the JBOSS folder. For any errors reinitialize using config:init command.
USAGE
$ iwfcli config:javaiwfcli config:mq
Initialize the rabbitMq config files. For any errors reinitialize using config:init command. Sensitive data encryption is now supported. Feature to store MQ details into database in case of Wildfly/JBoss WAR.
USAGE
$ iwfcli config:mqiwfcli config:port
Change the port for nrest and App Server application.
USAGE
$ iwfcli config:portiwfcli config:product
Change the product details. Sensitive data encryption is now supported.
USAGE
$ iwfcli config:productiwfcli info:system
Display system information on console.
USAGE
$ iwfcli info:systemiwfcli extract:logs
Extract logs from installed microservices and application (jboss/wildfly).
USAGE
$ iwfcli extract:logsiwfcli create:threaddump
Creates java thread dump file for application (jboss/wildfly) in current working directory.
USAGE
$ iwfcli create:threaddumpiwfcli create:heapdump
Creates java heap dump file for application (JBoss/Wildfly) in current working directory.
USAGE
$ iwfcli create:heapdumpiwfcli generate:keys
Create new encryption key-pairs and store them in microservice/keys/ folder.
USAGE
$ iwfcli generate:keys
OPTIONS
--bits=bits The size of the encryption key to generate in bits. It should be 1024 OR 2048. e.g --bits=1024
--location=location Path where encryption keys should be generated. e.g= --location="/credence/microservice/"
--pubkey-format=pubkey-format Public Key format pkcs8 or pkcs1 e.g --pubkey-format=pkcs8
--pvtkey-format=pvtkey-format Private key format pkcs8 or pkcs1 e.g --pvtkey-format=pkcs8iwfcli migrate:encryption
Migrate existing microservice configurations to newer version. In this migration, any sensitive data will be encrypted using microservice/keys/ encryption key-pairs.
USAGE
$ iwfcli migrate:encryptioniwfcli help [COMMAND]
Display help for iwfcli.
USAGE
$ iwfcli help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLIHow To
You can find video tutorial of commands here.
Troubleshooting Tips
For any errors, reinitialize using iwfcli config:init command.
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
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago