# Using the --software-version with directory update module

**URL:** https://hub.mender.io/t/using-the-software-version-with-directory-update-module/3227
**Category:** General Discussions
**Tags:** update-modules
**Created:** [February 17, 2021, 12:02am UTC](https://hub.mender.io/t/using-the-software-version-with-directory-update-module/3227 "2021-02-17T00:02:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![martind](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@martind](https://hub.mender.io/u/martind)
#### Post date: [February 17, 2021, 12:02am UTC](https://hub.mender.io/t/using-the-software-version-with-directory-update-module/3227/1 "2021-02-17T00:02:25Z")

</div>

Hi,

I’m trying to use the --software-version flag with the directory update module as I read in the documentation. I assume it can be passed as an argument to mender-artifact like I have done with my update scripts.  
Here is my command:

> ./directory-artifact-gen -n ${ARTIFACT\_NAME} -t ${DEVICE\_TYPE} -d ${DEST\_DIR} -o ${OUTPUT\_PATH} ${FILE\_TREE} – --script ${SCRIPT1} --script ${SCRIPT2} --script ${SCRIPT5} --software-version ${ARTIFACT\_NAME}

The script returns an error of

> flag provided but not defined: -software-version

I am running version 3.4.0 of mender-artifact. The help command for mender-artifact does not show a --software-version flag.

Thanks

---

<div class="post-metadata">

### Author: ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)
#### Post date: [February 17, 2021, 6:58am UTC](https://hub.mender.io/t/using-the-software-version-with-directory-update-module/3227/2 "2021-02-17T06:58:12Z")

</div>

Hey, @martind, you need minimum version 3.5.0 of mender-artifact to use `--software-version`, available [here](https://downloads.mender.io/mender-artifact/3.5.0/linux/mender-artifact).
