npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@credenceanalytics/iwfcli

v3.3.1

Published

iwfcli ==========

Downloads

24

Readme

iwfcli

oclif Version Downloads/week

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:

Online Mode

  • iwfcli is available in npm. To install it, type:

    $ npm i -g @credenceanalytics/iwfcli

    See how

Offline Mode

  • Extract iwfcli.zip. Place the extracted iwfcli folder to somewhere safe on your disk.

  • Run npm link --force inside iwfcli folder. (This will start the installation process)

    img

  • 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:init

iwfcli 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:database

iwfcli config:java

Update the java details in the JBOSS folder. For any errors reinitialize using config:init command.

USAGE
  $ iwfcli config:java

iwfcli 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:mq

iwfcli config:port

Change the port for nrest and App Server application.

USAGE
  $ iwfcli config:port

iwfcli config:product

Change the product details. Sensitive data encryption is now supported.

USAGE
  $ iwfcli config:product

iwfcli info:system

Display system information on console.

USAGE
  $ iwfcli info:system

iwfcli extract:logs

Extract logs from installed microservices and application (jboss/wildfly).

USAGE
  $ iwfcli extract:logs

iwfcli create:threaddump

Creates java thread dump file for application (jboss/wildfly) in current working directory.

USAGE
  $ iwfcli create:threaddump

iwfcli create:heapdump

Creates java heap dump file for application (JBoss/Wildfly) in current working directory.

USAGE
  $ iwfcli create:heapdump

iwfcli 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=pkcs8

iwfcli 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:encryption

iwfcli help [COMMAND]

Display help for iwfcli.

USAGE
  $ iwfcli help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

How To

You can find video tutorial of commands here.

Troubleshooting Tips

For any errors, reinitialize using iwfcli config:init command.