Read here to get know about how to install
Once you’v installed
jcli. You should provide a config file for it. Please execute cmd
jcli config generate, this will help you to edit the config file
~/.jenkins-cli.yaml. According to your Jenkins configuration to modify this file.
If you want to modify your config file of
jcli. You just need to execute
jcli config edit.
It’s simple to add another Jenkins config item. Here’s a sample cmd:
jcli config add -n yourJenkinsName --url http://localhost:8080/jenkins --token replacethesampletoken.