Setting up your development environment
May 9, 2023 · View on GitHub
Before you follow the development tutorials for installing, extending, and creating a Zowe CLI plug-in, follow these steps to set up your environment.
Prequisites
Initial setup
To create your development space, you will clone and build zowe-cli-sample-plugin from source.
Clone zowe-cli-sample-plugin and build 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
(Optional) Run the automated tests
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
Next steps
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.