# Install latest artifact to group

**URL:** <https://hub.mender.io/t/install-latest-artifact-to-group/6983>\
**Category:** General Discussions\
**Created:** [July 2, 2024, 8:01pm UTC](https://hub.mender.io/t/install-latest-artifact-to-group/6983 "2024-07-02T20:01:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![livelove1987](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/livelove1987/32/2188_2.png) [@livelove1987](https://hub.mender.io/u/livelove1987)\
**Post date:** [July 2, 2024, 8:01pm UTC](https://hub.mender.io/t/install-latest-artifact-to-group/6983/1 "2024-07-02T20:01:25Z")

</div>

May i ask question not related to that problem here? is it possible to install latest artifact by the device group in which the device is and run it? Is there ready command for that?

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [July 2, 2024, 8:14pm UTC](https://hub.mender.io/t/install-latest-artifact-to-group/6983/2 "2024-07-02T20:14:46Z")

</div>

Hi @livelove1987,

Not sure I understand the question. So you have a group of devices. Static or dynamic? And you want to install an artifact to all devices in the group? Basically that’s what a group is for. create the deployment as needed and choose the group as target devices.  
What do you mean by “latest artifact” then?

Greets,  
Josef

---

<div class="post-metadata">

**Author:** ![livelove1987](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/livelove1987/32/2188_2.png) [@livelove1987](https://hub.mender.io/u/livelove1987)\
**Post date:** [July 2, 2024, 8:16pm UTC](https://hub.mender.io/t/install-latest-artifact-to-group/6983/3 "2024-07-02T20:16:43Z")

</div>

I mean i just want to install latest artifact for device when device has been added to my dashboard.  
So when first authorized my device and added it to correct static group i just want to install latest artifact which was deployed for that group and run it

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [July 2, 2024, 8:25pm UTC](https://hub.mender.io/t/install-latest-artifact-to-group/6983/4 "2024-07-02T20:25:58Z")

</div>

@livelove1987 that’s not directly possible, at least not with static groups and “latest” magic. What you are describing is a combination of a deployment created for the currently latest release together with dynamic groups. That is available as a feature on the Enterprise plan.

Other than that, you can definitely automate it by using the API and web hooks, but its up to yourself then.

Greets,  
Josef

---

<div class="post-metadata">

**Author:** ![livelove1987](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/livelove1987/32/2188_2.png) [@livelove1987](https://hub.mender.io/u/livelove1987)\
**Post date:** [July 2, 2024, 8:29pm UTC](https://hub.mender.io/t/install-latest-artifact-to-group/6983/5 "2024-07-02T20:29:32Z")

</div>

Okay, will i stick to just moving current artifacts to devices manually and then triggering artifact deployment
