Installing the Functionize CLI
![Installing the Functionize CLI](/content/images/size/w2000/2024/06/functionizecli.jpeg)
This post describes how to install and setup the Functionize CLI (i.e., fze
) and work through some sample usages.
Installation
- Download the Functionize CLI from here
- Start the installer
unzip CLI.zip
cd CLI
./install.sh
- You will be prompted to get the Client ID and Client Secret from https://app.functionize.com/account/profile/settings?selectedtype=api
![](https://chronicler.tech/content/images/2024/05/image-9.png)
- Follow the instructions of the installer
![](https://chronicler.tech/content/images/2024/05/image-10.png)
Sample Usage
View Help Pages
fze -ha
![](https://chronicler.tech/content/images/2024/06/image-19.png)
Generate a Token
This is required prior to running any fze
command. The token file is created/refreshed at ~/.functionizeToken
.
fze token generate
![](https://chronicler.tech/content/images/2024/06/image-16.png)
List Projects
fze project list
![](https://chronicler.tech/content/images/2024/06/image-15.png)
Lists Steps of a Test
fze test list -e "Live" -p "41173"
Execute a Test
The browser ID "74" corresponds to Mozilla Firefox.
fze test run -b 74 -i "1121014"
![](https://chronicler.tech/content/images/2024/06/image-13.png)
View Test Result Summary
fze test testresultlist -i "1121014"
![](https://chronicler.tech/content/images/2024/06/image-14.png)
![](https://chronicler.tech/content/images/2024/06/image-17.png)
View Test Result Details
The resultid input parameter (from the runid from the screenshot above). I am not sure why Functionize did not name both those parameters identically.
fze test testresultdetail --resultid "38917344"
![](https://chronicler.tech/content/images/2024/06/image-18.png)