Before you follow the development tutorials for 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.
Before you clone the repository, create a local development folder named
zowe-tutorial. You will clone and build all projects in this folder.
Clone the repository into your development folder to match the following structure:
Follow these steps:
git clone https://github.com/zowe/zowe-cli-sample-plugin
npm run build
The first time that you build, the script will interactively ask you for the location of your Zowe CLI directory. Subsequent builds will not ask again.
The build script creates symbolic links. On Windows, you might need to have Administrator privileges to create those symbolic links.
We recommend running automated tests on all code changes. Follow these steps:
- Edit the properties within
custom_properties.yamlto contain valid system information for your site.
npm run test
After you complete your setup, follow the Installing the sample plug-in tutorial to install this sample plug-in to Zowe CLI.