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
cdto yourzowe-tutorialfoldergit clone https://github.com/zowe/zowe-cli-sample-plugincd zowe-cli-sample-pluginnpm installnpm run build
cd __tests__/__resources__/properties- Copy
example_properties.yamltocustom_properties.yaml. - Edit the properties within
custom_properties.yamlto contain valid system information for your site. cdto yourzowe-cli-sample-pluginfoldernpm 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.