Before you follow the development tutorials for installing, extending, and creating a Zowe CLI plug-in, follow these steps to set up your environment.
To create your development space, you will clone and build zowe-cli-sample-plugin from source.
Clone the repository into your development folder to match the following structure:
zowe-tutorial
└── zowe-cli-sample-plugin
cd
to yourzowe-tutorial
foldergit clone https://github.com/zowe/zowe-cli-sample-plugin
cd zowe-cli-sample-plugin
npm install
npm run build
cd __tests__/__resources__/properties
- Copy
example_properties.yaml
tocustom_properties.yaml
. - Edit the properties within
custom_properties.yaml
to contain valid system information for your site. cd
to yourzowe-cli-sample-plugin
foldernpm run test
After you complete your setup, follow the Installing the sample plug-in to Zowe CLI tutorial to install this sample plug-in to Zowe CLI.