# awx cli not using env variable AWXKIT\_BASE\_URL

**URL:** <https://forum.ansible.com/t/awx-cli-not-using-env-variable-awxkit-base-url/38432>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 12, 2023, 11:12pm UTC](https://forum.ansible.com/t/awx-cli-not-using-env-variable-awxkit-base-url/38432 "2023-09-12T23:12:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lbrigman124](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@lbrigman124](https://forum.ansible.com/u/lbrigman124)\
**Post date:** [September 12, 2023, 11:12pm UTC](https://forum.ansible.com/t/awx-cli-not-using-env-variable-awxkit-base-url/38432/1 "2023-09-12T23:12:42Z")

</div>

I have the AWXKIT\_BASE\_URL variable set in the environment but  
all attempts to get awx cli to use it fails without any details as to why.

It just goes back to the internal defaults that are output with  
awx config → base\_url": “[https://127.0.0.1:443](https://127.0.0.1:443)”

Is there a location to set for the config?

---

<div class="post-metadata">

**Author:** ![lbrigman124](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@lbrigman124](https://forum.ansible.com/u/lbrigman124)\
**Post date:** [September 17, 2023, 3:28am UTC](https://forum.ansible.com/t/awx-cli-not-using-env-variable-awxkit-base-url/38432/2 "2023-09-17T03:28:42Z")

</div>

Seems that those AWXKIT variables were specific to unit tests.  
I found the correct values after building the source docs.  
CONTROLLER\_HOST  
CONTROLLER\_USERNAME  
CONTROLLER\_PASSWORD

The awx tool also doesn’t use a config file like the previous version. It only uses command line args or environment variables.
