Zirkul DevSecOps
  • Welcome
  • DevSecOps
    • Getting started
    • Creating Jobs
    • Running Jobs
    • Azure DevOps Pipelines
    • Jenkins Pipelines
    • Job Script Syntax
    • Script templates
  • Zirkul Agent
    • Running the Agent
      • Command Line Interface
    • Command reference
      • Help
      • Clear
      • Var
      • Vars
      • Print
      • Date
      • Now
      • UTCNow
      • Day
      • Month
      • Year
      • Hour
      • Minute
      • Second
      • Env
      • Is base64
      • To base64
      • From base64
    • Scanner signatures
Powered by GitBook
On this page
  1. Zirkul Agent
  2. Command reference

Env

Return the value for the environment variable name given

Command:

env

Syntax:

echo env <var_name>
option = env(<var_name>)

Example:

echo env "HOME"
/Users/username

var my_var = env("HOME")
echo my_var
/Users/username

var my_var = env("HOME")
echo 'The environment variable value is: {{my_var}}'
The current second is: /Users/username

PreviousSecondNextIs base64

Last updated 10 months ago