# In the root directory run the command
./gradlew build
There are two ways to install evolven-cli on a Windows machine:
./InstallWindows.ps1
./InstallWindows.ps1 -AllUsers
destination_directory=~/ # or any other directory
cp -r evolven-cli ${destination_directory}
cmd="export PATH=\${PATH}:${destination_directory}/bin"
echo ${cmd} >> ~/.bashrc
eval ${cmd}
evolven.bat --help
evolven.sh --help
(On linux systems replace use evolven.sh command instead evolven.bat)
# login
evolven.bat login -H host13.evolven.com -p PASS -u evolven -e test
# download a policy from the Evolven server
evolven.bat policy pull -n "@Access"
# edit the policy in a text editor
# ...
# test the policy on hosts that match a search query
evolven.bat policy test -f .\evolven-policies\_Access.yaml -c "host:sergey"
# test the policy on hosts that match a the scope that is defined in the policy
evolven.bat policy test -f .\evolven-policies\_Access.yaml -s
# test the policy on hosts that match a the scope that is defined in the policy and the search criteria
evolven.bat policy test -f .\evolven-policies\_Access.yaml -s -c "host:sergey"
# push the policy to the Evolven server
evolven.bat policy push -f .\evolven-policies\_Access.yaml
# Logout from the Evolven server
evolven.bat logout
evolven.bat login -H host13.evolven.com -p PASS -u evolven -e test
evolven.bat login -H host13.evolven.com -p PASS -u evolven -e test1
evolven.bat logout
evolven.bat config set -a test
evolven.bat config get -a
evolven.bat config set -e test -n username -v admin
evolven.bat config get -e test -n username
evolven.bat policy pull -o evolven-policies
evolven.bat policy pull -n "@Access"
evolven.bat policy test -f .\evolven-policies\_Access.yaml -c "host:sergey"
evolven.bat policy push -f .\evolven-policies\Taras-test-AAAS__Connectivity_Check___Windows__WinRM-Enabled.yaml
The configuration file for the cli is located at "~/.evolven-cli/policy-config.yaml" usually.
The logs are located at "~/.evolven-cli/log/" usually.
# In the root directory run the command
gradlew archive
# In the root directory run the command
git tag -a vMAJOR.MINOR.PATH -m "RELEASE MASSAGE"
git push origin vMAJOR.MINOR.PATH
The binaries will be published under https://github.com/evolven-software/evolven-cli/releases.