Configure Variables
Variables in Yak are used to store commonly used values in your scripts. For example, if many scripts require changing to a specific directory, you can create a variable for that path—allowing you to update it in one place instead of multiple scripts. Variables can also store API keys and credentials, making it easier to manage commonly used script information and sensitive data.
1️⃣ Login
Login to your Yak at http:\\127.0.0.1:3501
2️⃣ Navigate to Settings
Click the gear icon in the bottom of the screen after logging in
3️⃣ Variables Tab
On the left hand side of the screen select the "Variables" tab. Then click the green "+" icon. Enter the key which will be used to access the variable and also the value.
4️⃣ Use the variable
When editing a script you can now insert the variable by entering {{VARIABLE_NAME}} into your script.
For example a simple script for a variable named "MY_NAME"
echo Hello my name is {{MY_NAME}}