# Proper Syntax for Plex Scanner CLI

**URL:** <https://forums.plex.tv/t/proper-syntax-for-plex-scanner-cli/835563>\
**Category:** General Discussions\
**Created:** [March 24, 2023, 3:31pm UTC](https://forums.plex.tv/t/proper-syntax-for-plex-scanner-cli/835563 "2023-03-24T15:31:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abuttino](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@abuttino](https://forums.plex.tv/u/abuttino)\
**Post date:** [March 24, 2023, 3:31pm UTC](https://forums.plex.tv/t/proper-syntax-for-plex-scanner-cli/835563/1 "2023-03-24T15:31:08Z")

</div>

Could someone please help me out with this?

I’m within the maintenance window and these command aren’t working:

“C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe” --analyze --files “2023 Inside Monster Jam S01E05 Team Throttle Monster.ts” --force

(To start commercial scanning)

“C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe” --generate --chapter-thumbs-only --force --filename “Tucker Carlson Tonight 2023\_03\_22\_20\_00\_00.mp4”

(To generate thumbnails for a mp4 with chapters at commercial stop points)

I have tried several variations of these commands and nothing seems to work.

---

<div class="post-metadata">

**Author:** ![axemanuk666](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/axemanuk666/32/126759_2.png) [@axemanuk666](https://forums.plex.tv/u/axemanuk666)\
**Post date:** [March 24, 2023, 5:35pm UTC](https://forums.plex.tv/t/proper-syntax-for-plex-scanner-cli/835563/2 "2023-03-24T17:35:18Z")

</div>

Hi @abuttino … Here is a link to another post that should answer this for you…

> [@Can i force deep scan?](https://forums.plex.tv/t/can-i-force-deep-scan/833598/6):
>
> You can initiate a deep scan via command line like this, however do bear in mind this is for Windows… Mac’s and Linux might be different… Deep Analysis: "C:\Program Files\Plex\Plex Media Server\Plex Media Scanner.exe" --analyze-deeply --item RatingKeys --log-file-suffix " Manual Deep Analysis" Credit Detection: "C:\Program Files\Plex\Plex Media Server\Plex Media Scanner.exe" --analyze --server-action credits --item RatingKeys --log-file-suffix " Manual Credits Analysis" Chapter Generation: …

---

<div class="post-metadata">

**Author:** ![abuttino](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@abuttino](https://forums.plex.tv/u/abuttino)\
**Post date:** [March 25, 2023, 9:21pm UTC](https://forums.plex.tv/t/proper-syntax-for-plex-scanner-cli/835563/3 "2023-03-25T21:21:42Z")

</div>

Thanks!

---

<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:** [June 23, 2023, 9:22pm UTC](https://forums.plex.tv/t/proper-syntax-for-plex-scanner-cli/835563/4 "2023-06-23T21:22:00Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
