How do I use the Endevor plugin for Zowe CLI to create an Endevor package from a local file?
Zowe CLI and Endevor plugin
Validate the default Endevor profile is functional:
Your local file (e.g., localfile.txt) can contain any valid SCL. Below is an example of a MOVE action:
File: localfile.txt
MOVE ELEMENT 'HARRY'
FROM ENVIRONMENT 'XXX' SYSTEM 'XXX' SUBSYSTEM 'XXX'
TYPE 'XXX' STAGE 1
Run the following command to create the package using the local file as input. This example assumes you are using your default Endevor profile:
zowe endevor create package ZOWEPKG1 --ff localfile.txt -d "test package" -t S -i ENDEVOR
Parameters used:
--ff localfile.txt: Specifies the local source file for the SCL.
-d "test package": Provides the required package description.
-t S: Defines the package type as Standard.
-i ENDEVOR: Specifies the Endevor Instance.
Upon success, the CLI will return a confirmation similar to this:
[INFO] Running on host: host:port instance: ENDEVOR
[INFO] Endevor reports written in endevor-report-2020-01-28-093910.txt
DEFINE of ZOWEPKG1 finished with 0
After the command finishes with a return code of 0, verify that the new package was created successfully in the Mainframe Endevor environment (via ISPF or Zowe CLI list command).
Use "zowe endevor create package --help" command to get more detailed option of creating Endevor package.
For Endevor Zowe CLI 6.5, by default, a standard package is created:
zowe endevor create package DEMO -d "demo" --ff scl.txt -i ENDEVOR
To create a Emergency package, use option --ep:
zowe endevor create package DEMO -d "demo" --ff scl.txt -i ENDEVOR --vs false --ep
Link on How to create an Endevor Package