# Is there a convenience wrapper for nomad cli + vault token?

**URL:** <https://discuss.hashicorp.com/t/is-there-a-convenience-wrapper-for-nomad-cli-vault-token/49209>\
**Category:** Nomad\
**Created:** [January 23, 2023, 12:15pm UTC](https://discuss.hashicorp.com/t/is-there-a-convenience-wrapper-for-nomad-cli-vault-token/49209 "2023-01-23T12:15:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schlumpfit](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/schlumpfit/32/18154_2.png) [@schlumpfit](https://discuss.hashicorp.com/u/schlumpfit)\
**Post date:** [January 23, 2023, 12:15pm UTC](https://discuss.hashicorp.com/t/is-there-a-convenience-wrapper-for-nomad-cli-vault-token/49209/1 "2023-01-23T12:15:56Z")

</div>

Hello,

is there any know script/cli tool that can be used to perform nomad operations from the nomad cli with a NOMAD\_TOKEN generated from vault?

What I would wish for is a convenience wrapper that can handle the following workflow:

```plaintext
nomad run ...
-> Token expired
NEW_TOKEN = `vault token create -policy=nomad-user-policy`
NOMAD_TOKEN=$NEW_TOKEN nomad run ...

```

I can workaround it myself using a bash script and alias etc… but maybe the is already something more sophisticated out there?
