7.24.0 • Published 7 days ago

@zowe/cli v7.24.0

Weekly downloads
980
License
EPL-2.0
Repository
github
Last release
7 days ago

Zowe CLI

Zowe CLI is a command-line interface that lets application developers interact with the mainframe in a familiar format. Zowe CLI helps to increase overall productivity, reduce the learning curve for developing mainframe applications, and exploit the ease-of-use of off-platform tools. Zowe CLI lets application developers use common tools such as Integrated Development Environments (IDEs), shell commands, bash scripts, and build tools for mainframe development. It provides a set of utilities and services for application developers that want to become efficient in supporting and building z/OS applications quickly.

Contents

Documentation

For more information about how to install, configure, and use Zowe CLI, see Zowe CLI Documentation. The documentation also includes examples and tutorials for how to contribute to Zowe CLI and develop CLI plug-ins.

The docs directory in this repository contains auto-generated typescript documentation under the docs/typedoc directory. To access the typescript documentation locally, navigate to the local node_modules directory that contains the installed package and access the docs directory after you install the Zowe CLI package.

Note: Some links in the auto-generated typescript documentation are not functional at this time.

Contribution Guidelines

The following information is critical to working with the code, running/writing/maintaining automated tests, developing consistent syntax in your plug-in, and ensuring that your plug-in integrates with Zowe CLI properly:

For more information about ...See:
General guidelines that apply to contributing to Zowe CLI and Plug-insContribution Guidelines
Conventions and best practices for creating packages and plug-ins for Zowe CLIPackage and Plug-in Guidelines
Guidelines for running tests on Zowe CLITesting Guidelines
Guidelines for running tests on the plug-ins that you buildPlug-in Testing Guidelines
Documentation that describes the features of the Imperative CLI FrameworkAbout Imperative CLI Framework
Versioning conventions for Zowe CLI and Plug-insVersioning Guidelines

Tip: Visit our Sample Plug-in repository for example plug-in code. You can follow developer tutorials here.

Build Zowe CLI from Source

The first time that you download Zowe CLI from the GitHub repository, issue the following commands to install the required Zowe CLI dependencies and several development tools:

npm config set @zowe:registry https://api.bintray.com/npm/ca/brightside
npm install --registry https://registry.npmjs.org

Note: When necessary, you can run the npm install --registry https://registry.npmjs.org command again to update dependencies that were changed in package.json.

If you have credentials to connect to gizaartifactory.jfrog.io, you can issue npm install without the --registry option.

Note: If you see npm ERR! code E401 during execution of npm install you need to issue npm login and provide username, password and email address to connect to gizaartifactory.jfrog.io.

  npm install
  npm ERR! code E401
  npm ERR! 404 401 Unauthorized: js-yaml@3.9.0

  npm ERR! A complete log of this run can be found in:
  npm ERR!     xxxx\npm-cache\_logs\2018-09-20T12_53_07_651Z-debug.log

To build your code changes, issue the following command:

npm run build

When you update package.json to include new dependencies, or when you pull changes that affect package.json, issue the npm update command to download the dependencies.

Install Zowe CLI from Source

From your copy of this repository, after a build, issue the following command to install Zowe CLI from source:

npm install -g

Notes:

  • Depending on how you configured npm on Linux or Mac, you might need to refix the npm install -g command or the npm uninstall -g command with sudo to let npm have write access to the installation directory.
  • On Windows, the npm install -g command might fail several times due to an EPERM error. This appears to be a bug that npm documented in their GitHub issues. This behaviour does not appear to be specific to installing the Zowe CLI package. Unfortunately, the only solution that we know of is to issue the npm cache clean command and the npm install -g command repeatedly until it works.

Uninstall Zowe CLI

From your local copy of this repository, issue the following command to uninstall Zowe CLI:

npm uninstall --global @zowe/cli

Configure Zowe CLI

Zowe CLI configuration is made up of different profiles. The profiles contain the information that Zowe CLI needs to communicate with the mainframe system. For example, credentials and z/OSMF host name. If you try to use Zowe CLI functionality and you get an error message that Zowe CLI failed to load any profiles, see the zowe profiles create --help command for the group of commands that you are trying to use (if any) to initialize your configuration.

The most fundamental Zowe CLI profile is a zosmf profile. Issue the following command to understand how to create a zosmf profile in Zowe CLI:

zowe profiles create zosmf-profile --help

After you create your profile, you can confirm that the properties of your profile can connect to and communicate with your mainframe system sucessfully by issuing the following command:

zowe zosmf check status

Tip: When you confirm that your profile connects to and communicates with your mainframe system successfully, you can issue the same command at any time to verify the availability and status of the z/OSMF subsystem on your mainframe.

Run System Tests

In addition to Node.js, you must have a means to execute .sh (bash) scripts, which are required for running integration tests. On Windows, you can install "Git Bash" (bundled with the standard Git installation - check "Use Git and Unix Tools from Windows Command Prompt" installation option).

After downloading/installing the prerequisites, ensure that you can execute the following commands and receive success responses: 1. node --version 2. npm --version 3. On Windows: where sh

To run Zowe CLI system tests, you need a configured properties file with proper system information present.

A dummy properties file is present in the __tests__/__resources__/properties folder, default_properties.yaml. Using this file as a template, you should create a custom_properties.yaml file within the same directory. Git is configured to ignore all properties files in the properties folder, except for the default_properties.yaml file.

Important! Do not check in configured properties files because they contain security principles and other critical information.

You can run the system tests by issuing the following command:

npm run test:system

If the custom_properties.yaml file cannot be found or loaded, an error with relevant details is thrown.

Frequently Asked Questions

How can I install Zowe CLI as a root user on Mac/Linux?

You can install the CLI as root so that all users can access the CLI without installing it individually on their user account. As the root user on Mac/Linux, issue the following command:

npm i -g @zowe/cli@latest --ignore-scripts

Warning! If you use this method, plug-ins that are installed as root can only be accessed as root. Users must install plug-ins on their user account or share all profiles/plugins/settings/logs with root. You also might encounter npm errors if you install as root. We recommend that Linux administrators implement a user/group environment where permissions can be more carefully controlled.

6.40.28

15 days ago

7.24.0

25 days ago

7.23.9

1 month ago

6.40.27

1 month ago

7.23.8

1 month ago

7.23.7

1 month ago

7.23.5

2 months ago

7.23.6

1 month ago

7.23.4

2 months ago

7.23.3

2 months ago

7.23.2

2 months ago

6.40.26

2 months ago

7.23.1

3 months ago

7.23.0

3 months ago

7.22.0

3 months ago

7.21.4

4 months ago

7.21.3

4 months ago

7.21.2

4 months ago

7.21.1

4 months ago

6.40.25

4 months ago

7.21.0

5 months ago

7.18.6

7 months ago

7.18.7

7 months ago

7.18.4

8 months ago

7.18.5

8 months ago

7.18.2

8 months ago

7.18.3

8 months ago

7.18.0

9 months ago

7.18.1

8 months ago

7.18.8

6 months ago

7.18.9

6 months ago

7.17.0

9 months ago

7.20.0

5 months ago

7.20.1

5 months ago

6.40.24

5 months ago

6.40.21

6 months ago

6.40.20

7 months ago

6.40.23

6 months ago

7.19.0

5 months ago

6.40.22

6 months ago

6.40.18

9 months ago

6.40.19

8 months ago

7.16.6

10 months ago

7.18.11

6 months ago

7.18.10

6 months ago

7.16.0

12 months ago

7.16.1

12 months ago

6.40.17

10 months ago

7.16.4

11 months ago

7.16.2

11 months ago

7.16.3

11 months ago

7.15.0

12 months ago

7.14.0

1 year ago

7.14.1

12 months ago

7.11.3

1 year ago

7.11.1

1 year ago

7.11.2

1 year ago

7.11.0

1 year ago

6.40.16

1 year ago

6.40.15

1 year ago

7.13.0

1 year ago

7.12.0

1 year ago

7.3.1

2 years ago

7.3.0

2 years ago

7.4.2

2 years ago

7.4.1

2 years ago

6.39.0

2 years ago

6.39.1

2 years ago

7.4.0

2 years ago

7.5.1

2 years ago

7.5.0

2 years ago

7.6.2

2 years ago

7.6.1

2 years ago

7.6.0

2 years ago

6.38.0

2 years ago

6.40.3

2 years ago

6.40.2

2 years ago

6.40.5

2 years ago

6.40.4

2 years ago

6.40.7

2 years ago

6.40.6

2 years ago

6.40.8

2 years ago

6.40.1

2 years ago

6.40.0

2 years ago

6.37.8

2 years ago

6.40.14

1 year ago

6.40.13

1 year ago

7.7.0

2 years ago

6.40.10

1 year ago

6.40.11

1 year ago

7.10.4

1 year ago

7.10.2

1 year ago

7.10.3

1 year ago

7.10.0

1 year ago

7.10.1

1 year ago

7.8.0

1 year ago

7.0.0

2 years ago

7.0.2

2 years ago

7.0.1

2 years ago

7.9.3

1 year ago

7.9.2

1 year ago

7.9.1

1 year ago

7.9.0

1 year ago

7.9.7

1 year ago

7.9.6

1 year ago

7.9.5

1 year ago

7.9.4

1 year ago

7.9.8

1 year ago

7.1.3

2 years ago

7.1.2

2 years ago

7.1.1

2 years ago

7.1.0

2 years ago

7.2.5

2 years ago

7.2.4

2 years ago

7.2.3

2 years ago

7.2.2

2 years ago

7.2.1

2 years ago

7.2.0

2 years ago

6.36.1

3 years ago

6.37.5

2 years ago

6.37.2

2 years ago

6.37.3

2 years ago

6.37.6

2 years ago

6.37.7

2 years ago

6.37.0

2 years ago

6.37.1

2 years ago

6.36.0

3 years ago

6.35.0

3 years ago

6.34.0

3 years ago

6.34.1

3 years ago

6.33.4

3 years ago

6.33.2

3 years ago

6.33.3

3 years ago

6.33.1

3 years ago

6.33.0

3 years ago

6.32.2

3 years ago

6.32.1

3 years ago

6.32.0

3 years ago

6.31.2

3 years ago

6.31.1

3 years ago

6.31.0

3 years ago

6.30.0

3 years ago

6.29.0

3 years ago

6.28.0

3 years ago

6.27.1

3 years ago

6.27.0

3 years ago

6.26.0

3 years ago

6.25.2

3 years ago

6.25.1

3 years ago

6.25.0

3 years ago

6.24.6

3 years ago

6.24.5

3 years ago

6.24.4

3 years ago

6.24.3

3 years ago

6.24.2

3 years ago

6.24.1

4 years ago

6.23.0

4 years ago

6.22.0

4 years ago

6.21.1

4 years ago

6.21.0

4 years ago

6.20.0

4 years ago

6.19.1

4 years ago

6.19.0

4 years ago

6.18.0

4 years ago

6.17.3

4 years ago

6.17.2

4 years ago

6.17.1

4 years ago

6.17.0

4 years ago

6.16.0

4 years ago

6.15.0

4 years ago

6.14.0

4 years ago

6.11.2

4 years ago

6.13.0

4 years ago

6.11.1

4 years ago

6.12.0

4 years ago

6.11.0

4 years ago

6.10.3

4 years ago

6.10.2

4 years ago

6.8.3

4 years ago

6.10.1

4 years ago

6.10.0

4 years ago

6.9.2

4 years ago

6.8.2

4 years ago

6.8.1

4 years ago

6.8.0

4 years ago

6.7.2

4 years ago

6.7.0

4 years ago

6.6.4

4 years ago

6.6.3

4 years ago

6.6.1

4 years ago

6.6.2

4 years ago

6.5.0

4 years ago

6.4.1

4 years ago

6.4.0

4 years ago

6.3.0

4 years ago

6.1.0

5 years ago

6.0.1

5 years ago

6.0.0

5 years ago

5.15.0

5 years ago

5.14.2

5 years ago

5.14.1

5 years ago

5.14.0

5 years ago

5.11.0

5 years ago

5.9.1

5 years ago

5.7.3

5 years ago

5.6.0

5 years ago

5.5.2

5 years ago

5.5.0

5 years ago

5.4.1

5 years ago

5.3.0

5 years ago

5.2.1

5 years ago