# In there a way to manually trigger updates of mender inside yocto via CLI?

**URL:** <https://hub.mender.io/t/in-there-a-way-to-manually-trigger-updates-of-mender-inside-yocto-via-cli/1035>\
**Category:** General Discussions\
**Created:** [September 18, 2019, 10:20am UTC](https://hub.mender.io/t/in-there-a-way-to-manually-trigger-updates-of-mender-inside-yocto-via-cli/1035 "2019-09-18T10:20:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ks89](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ks89/32/86_2.png) [@Ks89](https://hub.mender.io/u/Ks89)\
**Post date:** [September 18, 2019, 10:20am UTC](https://hub.mender.io/t/in-there-a-way-to-manually-trigger-updates-of-mender-inside-yocto-via-cli/1035/1 "2019-09-18T10:20:50Z")

</div>

I configured my yocto system with mender using my MENDER\_UPDATE\_POLL\_INTERVAL\_SECONDS and MENDER\_INVENTORY\_POLL\_INTERVAL\_SECONDS. Everything is ok.

However, sometime it’s useful to update mender with the current device status and to check for an update in a forced way overriding the variables above.

How can I do that? Is there something like “mender --force-update” or other commands.  
Trying to use “mender --help” i found “-check-update”. Is it right to use “-check-update” to solve this scenario?  
I want to both update mender with device information and both to trigger the update (previously deployed on mender server on my device)

Thanks.

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [September 18, 2019, 10:36am UTC](https://hub.mender.io/t/in-there-a-way-to-manually-trigger-updates-of-mender-inside-yocto-via-cli/1035/2 "2019-09-18T10:36:52Z")

</div>

> [@Ks89](#):
>
> However, sometime it’s useful to update mender with the current device status and to check for an update in a forced way overriding the variables above.

I believe that `mender -check-update` should cover this scenario. Meaning that it will force the running Mender client to contact the server and check if there is an update for it. This will bypass the polling intervals that you mentioned.

---

<div class="post-metadata">

**Author:** ![Ks89](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ks89/32/86_2.png) [@Ks89](https://hub.mender.io/u/Ks89)\
**Post date:** [September 18, 2019, 10:45am UTC](https://hub.mender.io/t/in-there-a-way-to-manually-trigger-updates-of-mender-inside-yocto-via-cli/1035/3 "2019-09-18T10:45:07Z")

</div>

Perfect about the update.  
Probably I explained the problem in a terrible way

I also expect that also the “Last checkin” date of device inventory should be updated with this or another command, but this isn’t happening.

I wan’t to run something like “mender -check-inventory” and then “mender -check-update”.  
The second command seems ok, but I don’t understand if there is a command to check inventory bypassing its polling interval.

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [September 18, 2019, 10:48am UTC](https://hub.mender.io/t/in-there-a-way-to-manually-trigger-updates-of-mender-inside-yocto-via-cli/1035/4 "2019-09-18T10:48:21Z")

</div>

> but I don’t understand if there is a command to check inventory bypassing its polling interval.

There is a command for this,

```auto
mender -send-inventory

```

---

<div class="post-metadata">

**Author:** ![Ks89](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ks89/32/86_2.png) [@Ks89](https://hub.mender.io/u/Ks89)\
**Post date:** [September 18, 2019, 11:01am UTC](https://hub.mender.io/t/in-there-a-way-to-manually-trigger-updates-of-mender-inside-yocto-via-cli/1035/5 "2019-09-18T11:01:01Z")

</div>

I’m trying on a device with mender 1.7.0 but “mender -help” doesn’t show this command. And if I try to run it I get: “ERRO[0000] flag provided but not defined: -send-inventory module=main”.

Is it only available from mender 2 or greater?

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [September 18, 2019, 11:06am UTC](https://hub.mender.io/t/in-there-a-way-to-manually-trigger-updates-of-mender-inside-yocto-via-cli/1035/6 "2019-09-18T11:06:23Z")

</div>

> Is it only available from mender 2 or greater?

Actually it is only available in 2.1 and great (2.1 is in the process of being released)

---

<div class="post-metadata">

**Author:** ![Ks89](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ks89/32/86_2.png) [@Ks89](https://hub.mender.io/u/Ks89)\
**Post date:** [September 18, 2019, 11:59am UTC](https://hub.mender.io/t/in-there-a-way-to-manually-trigger-updates-of-mender-inside-yocto-via-cli/1035/7 "2019-09-18T11:59:21Z")

</div>

ok, thanks for the answer
