# Update all end devices with same paramers in an application using ttn-lw-cli

**URL:** <https://www.thethingsnetwork.org/forum/t/update-all-end-devices-with-same-paramers-in-an-application-using-ttn-lw-cli/60623>\
**Category:** End Devices (Nodes)\
**Created:** [December 27, 2022, 10:03am UTC](https://www.thethingsnetwork.org/forum/t/update-all-end-devices-with-same-paramers-in-an-application-using-ttn-lw-cli/60623 "2022-12-27T10:03:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabbynero84](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/g/a5b964/32.png) [@gabbynero84](https://www.thethingsnetwork.org/forum/u/gabbynero84)\
**Post date:** [December 27, 2022, 10:03am UTC](https://www.thethingsnetwork.org/forum/t/update-all-end-devices-with-same-paramers-in-an-application-using-ttn-lw-cli/60623/1 "2022-12-27T10:03:01Z")

</div>

Is there a way I can update all my end devices with the same parameter in the same Application using the ttn-lw-cli without having to enter the same command for each device?

I can use the list command to get all my end device in my application but stuck on how to use the update command to set for instance _supports-32-bit-f-cnt_ to true for all the end devices without having to enter the same command one after the other for all the devices using the device id.

I tried this command:  
end-devices update my-test-stations all [flag]

I got this error:  
end device with id `all` not found in application with id `my-test-stations`

---

<div class="post-metadata">

**Author:** ![sureshss](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@sureshss](https://www.thethingsnetwork.org/forum/u/sureshss)\
**Post date:** [June 6, 2025, 3:17pm UTC](https://www.thethingsnetwork.org/forum/t/update-all-end-devices-with-same-paramers-in-an-application-using-ttn-lw-cli/60623/2 "2025-06-06T15:17:09Z")

</div>

I am kind of having the same issue with end device update  
ttn-lw-cli devices downlink push   
–application-id xxxxxxx   
–device-id d54e5bffff134af8   
'{“f\_port”:6,“frm\_payload”:“AWECALQ=”,“confirmed”:true}'error:pkg/applicationserver:device\_not\_found (device `xxxxxxxx@xxxxxx` not found)  
device\_uid=2xxxxxxxx  
correlation\_xxxxxx  
I was able to confirm login via cli and list all the devices in the App also able to confirm the specific device exists  
if i use the console to send downlink with the same command it works. but i need to update 100 devices .

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [June 6, 2025, 4:48pm UTC](https://www.thethingsnetwork.org/forum/t/update-all-end-devices-with-same-paramers-in-an-application-using-ttn-lw-cli/60623/3 "2025-06-06T16:48:38Z")

</div>

> [@sureshss](#):
>
> “confirmed”:true

Ouch, ooooo, that hurts.

Device not found isn’t really the barrier to updating 100 devices, first you need to get the CLI to update one by using the documented format for the command.

And then you script it to read a file of ids to queue them one at a time - there is no bulk downlink send.

Where are these devices, I want to watch for the smoke coming out of the gateways.

---

<div class="post-metadata">

**Author:** ![sureshss](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@sureshss](https://www.thethingsnetwork.org/forum/u/sureshss)\
**Post date:** [June 6, 2025, 5:56pm UTC](https://www.thethingsnetwork.org/forum/t/update-all-end-devices-with-same-paramers-in-an-application-using-ttn-lw-cli/60623/4 "2025-06-06T17:56:01Z")

</div>

I am just trying to update one device that’s local to me in California , we have devices all over US , i dont want any smoke , i am not sure what’s wrong with my command .  
do you see any issue with the command?  
we have 600 + devices in different application,

---

<div class="post-metadata">

**Author:** ![sureshss](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@sureshss](https://www.thethingsnetwork.org/forum/u/sureshss)\
**Post date:** [June 6, 2025, 5:59pm UTC](https://www.thethingsnetwork.org/forum/t/update-all-end-devices-with-same-paramers-in-an-application-using-ttn-lw-cli/60623/5 "2025-06-06T17:59:17Z")

</div>

here is the command i am using  
ttn-lw-cli devices downlink push --application-id xxxxxxxxx --device-id xxxxxxxxxxxx ‘{“f\_port”:6,“frm\_payload”:“AGE=”,“confirmed”:true}’

this is the error i am getting  
error:pkg/applicationserver:no\_payload (no payload)

---

<div class="post-metadata">

**Author:** ![jreiss](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jreiss/32/46529_2.png) [@jreiss](https://www.thethingsnetwork.org/forum/u/jreiss)\
**Post date:** [June 6, 2025, 6:22pm UTC](https://www.thethingsnetwork.org/forum/t/update-all-end-devices-with-same-paramers-in-an-application-using-ttn-lw-cli/60623/6 "2025-06-06T18:22:56Z")

</div>

> [@sureshss](#):
>
> ‘{“f\_port”:6,“frm\_payload”:“AGE=”,“confirmed”:true}’

Maybe smart quotes in your input JSON? Web and word docs add them sometimes.

```auto
{"f_port":6,"frm_payload":"AGE=","confirmed":true}’

```

---

<div class="post-metadata">

**Author:** ![sureshss](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@sureshss](https://www.thethingsnetwork.org/forum/u/sureshss)\
**Post date:** [June 6, 2025, 6:32pm UTC](https://www.thethingsnetwork.org/forum/t/update-all-end-devices-with-same-paramers-in-an-application-using-ttn-lw-cli/60623/7 "2025-06-06T18:32:27Z")

</div>

Thanks for your help  
i use this format and it worked ttn-lw-cli devices downlink push   
–application-id “xxxxxxxx”   
–device-id xxxxxxxxx   
–f-port 6   
–frm-payload 01610200B4   
–confirmed

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [June 6, 2025, 6:56pm UTC](https://www.thethingsnetwork.org/forum/t/update-all-end-devices-with-same-paramers-in-an-application-using-ttn-lw-cli/60623/8 "2025-06-06T18:56:17Z")

</div>

> [@sureshss](#):
>
> i dont want any smoke

No neither do we on the community network - confirmed downlinks are not just bad, but extra very bad - many discussions on this matter all over the forum. Hopefully you won’t end up with a perpetual downlink loop.

> [@sureshss](#):
>
> do you see any issue with the command?

Yes, as I said, not formatted per the documentation.

> [@sureshss](#):
>
> we have 600 + devices in different application,

On TTN? Maybe @rish1 can help you out.

> [@sureshss](#):
>
> this is the error i am getting  
> error:pkg/applicationserver:no\_payload (no payload)

This is changed from the previous version? Which do we fix?

> [@sureshss](#):
>
> i use this format and it worked

Can see how it would work, but still not the documented format. If you’ve more CLI commands to use, please look at the docs.

> [@sureshss](#):
>
> –confirmed

Ouch, oh dear, end of the world, poor users in your area …
