Version: v3.0.x LTS
Setting up your development environment
Setting up your development environment
Before you follow the development tutorials for creating a Zowe™ CLI plug-in, follow these steps to set up your environment.
Prerequisites
Initial setup
Clone and build your project
-
Create a local development folder named
zowe-tutorial
to clone and build all projects in this folder. -
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- Open a terminal and enter
cd zowe-tutorial
to change directory into yourzowe-tutorial
folder. - Enter
git clone https://github.com/zowe/zowe-cli-sample-plugin
to clone thezowe-cli-sample-plugin
repository. - Enter
cd zowe-cli-sample-plugin
to change directory into yourzowe-cli-sample-plugin
folder. - Enter
npm install
to install all dependencies and modules for the project. - Enter
npm run build
to create a production build.
- Open a terminal and enter
Optional step: Run automated tests
We recommend running automated tests on all code changes.
To run automated tests:
- Use Visual Studio Code or your file explorer to copy the content in the
example_properties.yaml
file to thecustom_properties.yaml
file. - Use a text editor to edit the properties within
custom_properties.yaml
to contain valid system information for your site. - In a terminal, enter
cd zowe-cli-sample-plugin
to change directory into yourzowe-cli-sample-plugin
folder. - Enter
npm run test
to run the automated test.
Next steps
After you complete your setup, follow the Installing the sample plug-in tutorial to install this sample plug-in to Zowe CLI.