# Mender-artifact deployment not using the UI

**URL:** <https://hub.mender.io/t/mender-artifact-deployment-not-using-the-ui/5458>\
**Category:** General Discussions\
**Tags:** yocto, zeus\
**Created:** [November 25, 2022, 4:37am UTC](https://hub.mender.io/t/mender-artifact-deployment-not-using-the-ui/5458 "2022-11-25T04:37:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marizonne.villafranc](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@marizonne.villafranc](https://hub.mender.io/u/marizonne.villafranc)\
**Post date:** [November 25, 2022, 4:37am UTC](https://hub.mender.io/t/mender-artifact-deployment-not-using-the-ui/5458/1 "2022-11-25T04:37:47Z")

</div>

Hi,

How can I deploy the artifact via a command line?

The document says:

```auto
Deploy the Artifact
Now that we have the device connected and the Artifact uploaded to the server, all that remains is to go to the Deployments tab and click Create a deployment.

Select the Artifact you just uploaded and All devices, then Create deployment.

```

How can I execute all those procedures above via a command line?

Thank you!

Kind regards,  
Marizonne

---

<div class="post-metadata">

**Author:** ![marizonne.villafranc](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@marizonne.villafranc](https://hub.mender.io/u/marizonne.villafranc)\
**Post date:** [November 25, 2022, 5:10am UTC](https://hub.mender.io/t/mender-artifact-deployment-not-using-the-ui/5458/2 "2022-11-25T05:10:19Z")

</div>

[https://docs.mender.io/api/?shell#management-api-deployments](https://docs.mender.io/api/?shell#management-api-deployments)

---

<div class="post-metadata">

**Author:** ![marizonne.villafranc](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@marizonne.villafranc](https://hub.mender.io/u/marizonne.villafranc)\
**Post date:** [November 25, 2022, 5:25am UTC](https://hub.mender.io/t/mender-artifact-deployment-not-using-the-ui/5458/3 "2022-11-25T05:25:36Z")

</div>

Tried this command and then monitor the client, seems like nothing is happening…

```auto
herodev@ubuntu-bionic-desktop:~/Downloads$ RESPONSE=$(curl -s -X POST $MENDER_SERVER_URI/api/management/v1/deployments/deployments -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: Bearer $JWT" --data-raw "{\"name\": \"74cd11ff-7e8a-404b-a011-54738f3cbd0b\", \"artifact_name\": \"hero-secc-release-2.00-Rc1\", \"devices\": [\"1501003847544634520686ea4d4e2700\"]}") | echo $RESPONSE

```

This is the mender-client log:

```auto
Nov 25 05:24:43 hero-secc mender[848]: time="2022-11-25T05:24:43Z" level=info msg="Executing script: Sync_Leave_90"
Nov 25 05:24:44 hero-secc mender[848]: time="2022-11-25T05:24:44Z" level=info msg="Collected output (stderr) while running script /etc/mender/scripts/Sync_Leave_90\nhero-secc-release-2.0rc9748-dbg3: Sync_Leave_90 was called!\n\n---------- end of script output"
Nov 25 05:24:44 hero-secc mender[848]: time="2022-11-25T05:24:44Z" level=info msg="Executing script: Idle_Enter_00"
Nov 25 05:24:44 hero-secc mender[848]: time="2022-11-25T05:24:44Z" level=info msg="Collected output (stderr) while running script /etc/mender/scripts/Idle_Enter_00\nhero-secc-release-2.0rc9748-dbg3: Idle_Enter_00 was called!\n\n---------- end of script output"

```

Thoughts?

---

<div class="post-metadata">

**Author:** ![marizonne.villafranc](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@marizonne.villafranc](https://hub.mender.io/u/marizonne.villafranc)\
**Post date:** [November 25, 2022, 5:55am UTC](https://hub.mender.io/t/mender-artifact-deployment-not-using-the-ui/5458/4 "2022-11-25T05:55:58Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/f/faeb9e55b3b8d6e4fbacdefa00dc22136f47d2ec.png)

---

<div class="post-metadata">

**Author:** ![marizonne.villafranc](https://avatars.discourse-cdn.com/v4/letter/m/ad7895/32.png) [@marizonne.villafranc](https://hub.mender.io/u/marizonne.villafranc)\
**Post date:** [November 28, 2022, 2:29am UTC](https://hub.mender.io/t/mender-artifact-deployment-not-using-the-ui/5458/5 "2022-11-28T02:29:03Z")

</div>

Use the ID provided by the mender in devices and not the Device Identity.
