I was able to get the command to refresh the metadata on a small library of mine in spite of the deprecated message. Let’s take a look at how it worked.
pscan -v -r -p -x -c 16
arguments
- -v : verbose output (not sure if this does anything)
- -r : refresh metadata action
- -p : show progress output (never seems to do anything)
- -x : force the refresh (refresh all items, not just ones that have changed recently)
- -c : apply this action to a library section ID
- 16 : the section ID of a small test library I have (I saw in the XML that
key="16")
output
[~] #
[~] # pscan -v -r -p -x -c 16
The '--refresh' operation is deprecated and will be removed in future versions of Plex Media Server.
[~] # echo $?
0
[~] #
The echo output shows the command succeeded with return code 0, meaning success, but it wasn’t clear whether success was the deprecated message or whether success meant the command actually did something. So I checked my
logs
[~] # cd "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Logs"
[/share/.../Logs] # cat "Plex Media Scanner.log" | head
Sep 24, 2025 20:41:38.637 [139685032954624] INFO - Plex Media Scanner v1.42.2.10156-f737b826c - unknown PC unknown - build: linux-x86_64 - GMT -07:00
Sep 24, 2025 20:41:38.637 [139685032954624] INFO - Linux version: 4.14.24-qnap (#1 SMP Tue Nov 19 12:11:23 CST 2024), language: en-US
Sep 24, 2025 20:41:38.649 [139685032954624] INFO - Processor: 4-core Intel(R) Celeron(R) CPU J1900 @ 1.99GHz
Sep 24, 2025 20:41:38.649 [139685032954624] INFO - /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Media Scanner -v -r -p -x -c 16
Sep 24, 2025 20:41:38.641 [139685033479936] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.39.4, threadsafe=1
Sep 24, 2025 20:41:38.877 [139685033479936] DEBUG - Refreshing section 16 of type: 1
Sep 24, 2025 20:41:38.879 [139685005789952] DEBUG - Refreshing 18 IDs.
Sep 24, 2025 20:41:38.879 [139685005789952] DEBUG - Refreshing metadata for '5 Track Saw Accessories Every Woodworker Needs [agVrU-g4yTw]' (agent: tv.plex.agents.none)
Sep 24, 2025 20:41:38.880 [139685005789952] DEBUG - Refreshing metadata for 'Best Cordless Tracksaw [3I6PldFPpj0]' (agent: tv.plex.agents.none)
Sep 24, 2025 20:41:38.880 [139685005265664] DEBUG - [HCl#1] HTTP requesting GET http://127.0.0.1:32400/:/metadata/notify/changeItemState?librarySectionID=16&metadataItemID=34966&metadataType=1&state=3&parentID=-1&rootID=-1&metadataState=queued
[/share/.../Logs] #
In the above I changed to the Logs directory and did a cat of the scanner log to verify that it did the refresh, snipping the output to the first 10 lines or so.
I haven’t tried forcing a refresh on a folder yet, I’ll leave you the treasure hunt 
Because each Plex Media Scanner is somewhat unique to the OS it’s running on, I don’t know whether my success applies to your setup exactly.
fwiw, if you can live with refreshing a whole library, the Plex API also has an easy way to do that from a command line
caveats
One pscan command I issued against a folder did not complete and became a stuck process. It never returned to a command prompt. The usual ^c didn’t interrupt it. I had to open another ssh session to my server and use ps | grep anner to find the PID and then use kill -6 {PID}
All righty then 