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

maximo-dev-tools

v1.15.7

Published

Tools used with the development of Maximo projects

Downloads

41

Readme

Introduction

The Maximo Developer Tools provide command line tools for developing and deploying automation scripts and other customizations. It is the command line companion to the Maximo Script Deploy Visual Studio Code extension: https://marketplace.visualstudio.com/items?itemName=sharptree.maximo-script-deploy.

Install

Using npm:

$ npm install -g maximo-dev-tools

Settings

The configuration settings can be provided as command line arguments or in a settings JSON file or a combination of the two. The command line arguments override the values provided in the settings JSON file.

Command Line Arguments

Global

The following table provides the available global arguments.

| Argument | Default | Description | | :-----------------------------| :---------------------| :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | --allow-untrusted-certs | false | Allow untrusted or invalid SSL certificates. Useful for testing when using self signed certificates, default is false. | | --apikey | -a | | The Maximo API key that will be used to access Maximo. If provided, the user name and password are ignored if configured. | | --ca | | Path to the Maximo server certificate authority (CA) if it is not part of the system CA chain. | | --context | -c | maximo | The part of the URL that follows the hostname, default is maximo. | | --host | -h | | The Maximo host name or IP address without the http/s protocol prefix. | | --install | -i | true | Indicates if the utility scripts should install and upgrade automatically, default is true. | | --key | -k | .settings.json.key | The path to the encryption key for the settings encrypted values. A relative path is relative to the settings.json file directory. | | --maxauth | false | Force native Maximo authentication, default is false. | | --password | --passwd | | The Maximo user password. | | --port | -p | 80 / 443 | The Maximo server port, defaults to 80 if the --ssl argument is false, 443 if the --ssl argument is true. | | --settings | -s | settings.json | The path to the settings file, default is settings.json. | | --ssl | true | Indicates if SSL will be used, defaults to true. | | --timeout | -t | 30 | The connection timeout in seconds, default is 30 seconds. | | --username | -u | | The maximo user name. | | --help | | Prints the help information. | | --version | | Prints the version number. |

Encrypt

The encrypt command encrypts the plain text password and API key values in the settings file. There are no additional arguments for the encrypt command.

Extract

The extract command extracts scripts from the target Maximo system to a local directory.

| Argument | Default | Description | | :-------------------------| :---------------------| :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | --directory | -d | ./ | The directory to extract the scripts to, defaults is the current directory. | | --overwrite | -o | true | Overwrite existing files if different from the server, default is true. | | --type | script | The type of object to extract, form, report, screen or script. |

Deploy

The deploy command deploys one or more script files, inspection forms or screens from the local machine to the target Maximo system.

| Argument | Default | Description | | :--------------------------| :---------------------| :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | --allowAdminMode | -a | false | Indicates that the deployment can place the server in Admin Mode and perform a Database Configuration if required. This option may cause a system disruption. | | --deleteAll | false | Indicates if any script not in the current deploy directory, but on the server, will be deleted from the server. This option is may be destructive, the default is false. | | --deleteList | delete.json | Path to a file that contains a JSON list of the scripts on the server to delete if they exist, the default is delete.json. | | --directory | -d | ./ | The directory to deploy the scripts from, defaults is the current directory. | | --file | -f | | The path to a single script file to deploy, if a relative path is provided it is relative to the --directory argument path. | | --recursive | -r | true | Indicates if subdirectories will be included when deploying all scripts, the default is true. |

Log

The log command streams the Maximo log to the console. This can then be piped to a file using the OS > filename.log command.

| Argument | Default | Description | | :-------------------------| :---------------------| :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | --log-timeout | 30 | Number of seconds between logging requests, the default is 30. |

Settings File

A sample settings JSON file is provided below with the default values.

{
    "allowUntrustedCerts": false,
    "apikey": undefined,
    "ca": undefined,
    "context": 'maximo',
    "maxauth": false,
    "host": undefined,
    "password": undefined,
    "port": 80|443,
    "ssl": true,
    "key": "~/.settings.json.key",
    "timeout": 30,
    "username": undefined,
    "install": true,
    "deploy": {
        "allowAdminMode": false,
        "file": undefined,
        "recursive": true,
        "directory": './',
        "deleteAll": false,
        "deleteList": "delete.json"
    },
    "extract": {
        "directory": "./",
        "overwrite": true
    }
    "log": {
        "timeout": 30
    },
}