# add Collection Tags from CLI

**URL:** <https://forums.plex.tv/t/add-collection-tags-from-cli/189673>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [April 23, 2017, 9:55am UTC](https://forums.plex.tv/t/add-collection-tags-from-cli/189673 "2017-04-23T09:55:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yorditje](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/yorditje/32/148536_2.png) [@Yorditje](https://forums.plex.tv/u/Yorditje)\
**Post date:** [April 23, 2017, 9:55am UTC](https://forums.plex.tv/t/add-collection-tags-from-cli/189673/1 "2017-04-23T09:55:51Z")

</div>

Is there a possibility to add collection tags from CLI ? like the name of the video code … so that i can find movies with only mpeg2 or x264 video or mkv , mp4 container …  
I am trying to create a script that will update all my Plex movies, and even trans-code them so they al play direct …

---

<div class="post-metadata">

**Author:** ![czukowski](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/czukowski/32/9008_2.png) [@czukowski](https://forums.plex.tv/u/czukowski)\
**Post date:** [May 4, 2017, 3:03pm UTC](https://forums.plex.tv/t/add-collection-tags-from-cli/189673/2 "2017-05-04T15:03:20Z")

</div>

If it’s supported by PMS web API, they yes, you could script requests using curl or something similar.

---

<div class="post-metadata">

**Author:** ![Yorditje](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/yorditje/32/148536_2.png) [@Yorditje](https://forums.plex.tv/u/Yorditje)\
**Post date:** [October 2, 2017, 10:19pm UTC](https://forums.plex.tv/t/add-collection-tags-from-cli/189673/3 "2017-10-02T22:19:46Z")

</div>

Hello,  
Not supported by API… only thing i could find is to edit the plex database with tools-scrips…

---

<div class="post-metadata">

**Author:** ![Hellowlol](https://avatars.discourse-cdn.com/v4/letter/h/858c86/32.png) [@Hellowlol](https://forums.plex.tv/u/Hellowlol)\
**Post date:** [October 5, 2017, 5:41pm UTC](https://forums.plex.tv/t/add-collection-tags-from-cli/189673/4 "2017-10-05T17:41:11Z")

</div>

You can do this with plexapi. See .addCollectiom

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 8:03pm UTC](https://forums.plex.tv/t/add-collection-tags-from-cli/189673/5 "2020-01-08T20:03:30Z")

</div>


