# Tip: Job Script environment variables

**URL:** <https://cylc.discourse.group/t/tip-job-script-environment-variables/1220>\
**Category:** Tips\
**Created:** [November 26, 2025, 12:02pm UTC](https://cylc.discourse.group/t/tip-job-script-environment-variables/1220 "2025-11-26T12:02:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wxtim](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/wxtim/32/151_2.png) [@wxtim](https://cylc.discourse.group/u/wxtim)\
**Post date:** [November 26, 2025, 12:02pm UTC](https://cylc.discourse.group/t/tip-job-script-environment-variables/1220/1 "2025-11-26T12:02:27Z")

</div>

Cylc documentation provides a list of all the variables Cylc adds to Job scripts:

[My favourite reference page in the Cylc Documentation](https://cylc.github.io/cylc-doc/stable/html/reference/job-script-vars/index.html)

Possible use cases include:

- Use `CYLC_VERBOSE` and/or `CYLC_DEBUG` to help choose the logging level for your app.
- Find out where your workflow is storing files with `CYLC_WORKFLOW_<RUN/SHARE>_DIR`.
- Find out where your task is outputting logs with `CYLC_TASK_LOG_DIR`. You can even add extra log files which Cylc Review will see.
- Have your task behave differently if it’s a retry with `CYLC_TASK_SUBMIT_NUMBER`.
