Manual

Manual for the PersonalMediaVault console client.

This is the manual for the PersonalMediaVault console client.

Usage:

pmv-cli [OPTIONS] <COMMAND>

Commands:

CommandDescription
loginLogins into an active vault, printing a session URL into the standard output
logoutCloses the active session, given a session URL
accountManages accounts
mediaManages media assets
randomRetrieves random media assets from the vault
searchSearches for media assets in the vault (Basic)
advanced-searchSearches for media assets in the vault (Advanced)
tagManages tags
albumManages albums
configManages vault configuration
taskRetrieves tasks information
invitesManages invites
batchApplies a batch operation to a list of media assets
get-server-informationGets server information, like the version it is using

Options:

OptionDescription
-u, --vault-url <VAULT_URL>HTTP connection URL to the active vault
-d, --debugTurn debug messages on
-y, --yesAuto confirm actions
-h, --helpPrint help
-V, --versionPrint version

Command: login

Logins into an active vault, printing a session URL into the standard output

Usage:

pmv-cli login [OPTIONS]

Options:

OptionDescription
-U, --username <USERNAME>Vault username. You can also specify the credentials in the URL
-D, --duration <DURATION>Session duration. Can be: day, week, month or year
-I, --invite-code <INVITE_CODE>Invite code. Setting this option will ignore the credentials and use the code
-h, --helpPrint help

Command: logout

Closes the active session, given a session URL

Usage:

pmv-cli logout

Options:

OptionDescription
-h, --helpPrint help

Command: account

Manages accounts

Usage:

pmv-cli account <COMMAND>

Commands:

CommandDescription
contextPrints account context to the standard output
change-usernameChanges username (only for root account)
change-passwordChanges account password
listList accounts
createCreates new account
deleteDeletes an existing account

Options:

OptionDescription
-h, --helpPrint help

Command: account context

Prints account context to the standard output

Usage:

pmv-cli account context

Options:

OptionDescription
-h, --helpPrint help

Command: account change-username

Changes username (only for root account)

Usage:

pmv-cli account change-username <USERNAME>

Arguments:

ArgumentDescription
<USERNAME>Username to change into

Options:

OptionDescription
-h, --helpPrint help

Command: account change-password

Changes account password

Usage:

pmv-cli account change-password

Options:

OptionDescription
-h, --helpPrint help

Command: account list

List accounts

Usage:

pmv-cli account list [OPTIONS]

Options:

OptionDescription
-c, --csvCSV format
-h, --helpPrint help

Command: account create

Creates new account

Usage:

pmv-cli account create [OPTIONS] <USERNAME>

Arguments:

ArgumentDescription
<USERNAME>Username for the new account

Options:

OptionDescription
-a, --allow-writeAllows the new account to modify the vault
-h, --helpPrint help

Command: account delete

Deletes an existing account

Usage:

pmv-cli account delete <USERNAME>

Arguments:

ArgumentDescription
<USERNAME>Username of the account to delete

Options:

OptionDescription
-h, --helpPrint help

Command: media

Manages media assets

Usage:

pmv-cli media <COMMAND>

Commands:

CommandDescription
getGets media asset metadata and download links
statsGets media asset size stats
downloadDownloads a media asset
exportExports a media asset, downloading everything (metadata + assets) into a folder
uploadUploads a new media asset, waits for encryption and adds tags if specified
importImports a media asset, expecting a folder with the same format the export command uses
set-titleChanges the title of a media asset
set-descriptionChanges the description of a media asset
set-extended-descriptionChanges the extended description of a media asset
set-force-start-beginningChanges the forced start from beginning parameter of a media asset
set-is-animationChanges the is-animation parameter of a media asset
set-thumbnailSets the thumbnail of a media asset
get-time-slicesPrints the time slices of a media asset
set-time-slicesSets the time slices of a media asset
set-image-notesSets the image notes of a media asset
add-resolutionAdds new resolution to the media asset
remove-resolutionRemoves a resolution from the media asset
add-subtitleAdds subtitle file to a media asset
rename-subtitleRenames a subtitles file
remove-subtitleRemoves subtitle file from a media asset
add-audioAdds audio track file to a media asset
rename-audioRenames an audio track file
remove-audioRemoves audio track file from a media asset
add-attachmentAdds attachment file
rename-attachmentRenames attachment file
remove-attachmentRemoves attachment file
re-encodeRe-Encodes a media asset
replaceReplaces the media asset with another file
deleteDeletes a media asset

Options:

OptionDescription
-h, --helpPrint help

Command: media get

Gets media asset metadata and download links

Usage:

pmv-cli media get <MEDIA>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID

Options:

OptionDescription
-h, --helpPrint help

Command: media stats

Gets media asset size stats

Usage:

pmv-cli media stats <MEDIA>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID

Options:

OptionDescription
-h, --helpPrint help

Command: media download

Downloads a media asset

Usage:

pmv-cli media download [OPTIONS] <MEDIA> [ASSET]

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
[ASSET]Asset to download. Examples: original, thumbnail, resolution:1280x720:30, sub:ID, audio:ID, attachment:ID, notes, preview:Index, ext_desc

Options:

OptionDescription
-o, --output <OUTPUT>Path to the file to download the asset into
-p, --print-linkPrints the download link, instead of downloading to a file
-h, --helpPrint help

Command: media export

Exports a media asset, downloading everything (metadata + assets) into a folder

Usage:

pmv-cli media export [OPTIONS] <MEDIA>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID

Options:

OptionDescription
-o, --output <OUTPUT>Path to the folder to download the files into
-h, --helpPrint help

Command: media upload

Uploads a new media asset, waits for encryption and adds tags if specified

Usage:

pmv-cli media upload [OPTIONS] <PATH>

Arguments:

ArgumentDescription
<PATH>Path to the file to upload

Options:

OptionDescription
-t, --title <TITLE>A title for the media asset
-a, --album <ALBUM>Album to upload the media asset into
-T, --tags <TAGS>Tags to add to the media asset, separated by spaces
-s, --skip-encryptionDo not wait for encryption
-h, --helpPrint help

Command: media import

Imports a media asset, expecting a folder with the same format the export command uses

Usage:

pmv-cli media import [OPTIONS] <PATH>

Arguments:

ArgumentDescription
<PATH>Path to the folder to import

Options:

OptionDescription
-a, --album <ALBUM>Album to upload the media asset into
-h, --helpPrint help

Command: media set-title

Changes the title of a media asset

Usage:

pmv-cli media set-title <MEDIA> <TITLE>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<TITLE>Title

Options:

OptionDescription
-h, --helpPrint help

Command: media set-description

Changes the description of a media asset

Usage:

pmv-cli media set-description <MEDIA> <DESCRIPTION>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<DESCRIPTION>Description

Options:

OptionDescription
-h, --helpPrint help

Command: media set-extended-description

Changes the extended description of a media asset

Usage:

pmv-cli media set-extended-description <MEDIA> <PATH>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<PATH>Path to the text file containing the extended description

Options:

OptionDescription
-h, --helpPrint help

Command: media set-force-start-beginning

Changes the forced start from beginning parameter of a media asset

Usage:

pmv-cli media set-force-start-beginning <MEDIA> <FORCE_START_BEGINNING>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<FORCE_START_BEGINNING>Set to ’true’ if you want to tell the clients not to store the time, so they always start from the beginning

Options:

OptionDescription
-h, --helpPrint help

Command: media set-is-animation

Changes the is-animation parameter of a media asset

Usage:

pmv-cli media set-is-animation <MEDIA> <IS_ANIMATION>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<IS_ANIMATION>Set to ’true’ if you want to tell the clients to treat the media as an animation, so they force the loop and disable time skipping

Options:

OptionDescription
-h, --helpPrint help

Command: media set-thumbnail

Sets the thumbnail of a media asset

Usage:

pmv-cli media set-thumbnail <MEDIA> <PATH>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<PATH>Path to the thumbnail file

Options:

OptionDescription
-h, --helpPrint help

Command: media get-time-slices

Prints the time slices of a media asset

Usage:

pmv-cli media get-time-slices <MEDIA>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID

Options:

OptionDescription
-h, --helpPrint help

Command: media set-time-slices

Sets the time slices of a media asset

Usage:

pmv-cli media set-time-slices <MEDIA> <PATH>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<PATH>Path to the file containing the time slices

Options:

OptionDescription
-h, --helpPrint help

Command: media set-image-notes

Sets the image notes of a media asset

Usage:

pmv-cli media set-image-notes <MEDIA> <PATH>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<PATH>Path to the image notes file

Options:

OptionDescription
-h, --helpPrint help

Command: media add-resolution

Adds new resolution to the media asset

Usage:

pmv-cli media add-resolution <MEDIA> <RESOLUTION>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<RESOLUTION>Resolution. Example: 1280x720:30

Options:

OptionDescription
-h, --helpPrint help

Command: media remove-resolution

Removes a resolution from the media asset

Usage:

pmv-cli media remove-resolution <MEDIA> <RESOLUTION>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<RESOLUTION>Resolution. Example: 1280x720:30

Options:

OptionDescription
-h, --helpPrint help

Command: media add-subtitle

Adds subtitle file to a media asset

Usage:

pmv-cli media add-subtitle [OPTIONS] <MEDIA> <SUB_ID> <PATH>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<SUB_ID>Subtitle file identifier. Example: EN
<PATH>Path to the subtitles file

Options:

OptionDescription
--name <NAME>Subtitle file display name. If not specified, the identifier is used
-h, --helpPrint help

Command: media rename-subtitle

Renames a subtitles file

Usage:

pmv-cli media rename-subtitle [OPTIONS] <MEDIA> <SUB_ID>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<SUB_ID>Subtitle file identifier. Example: EN

Options:

OptionDescription
--new-id <NEW_ID>New ID for the subtitles file
--new-name <NEW_NAME>New name for the subtitles file
-h, --helpPrint help

Command: media remove-subtitle

Removes subtitle file from a media asset

Usage:

pmv-cli media remove-subtitle <MEDIA> <SUB_ID>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<SUB_ID>Subtitle file identifier. Example: EN

Options:

OptionDescription
-h, --helpPrint help

Command: media add-audio

Adds audio track file to a media asset

Usage:

pmv-cli media add-audio [OPTIONS] <MEDIA> <TRACK_ID> <PATH>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<TRACK_ID>Audio track file identifier. Example: EN
<PATH>Path to the audio track file

Options:

OptionDescription
--name <NAME>Audio track file display name. If not specified, the identifier is used
-h, --helpPrint help

Command: media rename-audio

Renames an audio track file

Usage:

pmv-cli media rename-audio [OPTIONS] <MEDIA> <TRACK_ID>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<TRACK_ID>Audio track file identifier. Example: EN

Options:

OptionDescription
--new-id <NEW_ID>New ID for the audio track file
--new-name <NEW_NAME>New name for the audio track file
-h, --helpPrint help

Command: media remove-audio

Removes audio track file from a media asset

Usage:

pmv-cli media remove-audio <MEDIA> <TRACK_ID>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<TRACK_ID>Audio track file identifier. Example: EN

Options:

OptionDescription
-h, --helpPrint help

Command: media add-attachment

Adds attachment file

Usage:

pmv-cli media add-attachment <MEDIA> <PATH>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<PATH>Path to the attachment file

Options:

OptionDescription
-h, --helpPrint help

Command: media rename-attachment

Renames attachment file

Usage:

pmv-cli media rename-attachment <MEDIA> <ATTACHMENT_ID> <NAME>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<ATTACHMENT_ID>Attachment ID
<NAME>New name for the attachment file

Options:

OptionDescription
-h, --helpPrint help

Command: media remove-attachment

Removes attachment file

Usage:

pmv-cli media remove-attachment <MEDIA> <ATTACHMENT_ID>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<ATTACHMENT_ID>Attachment ID

Options:

OptionDescription
-h, --helpPrint help

Command: media re-encode

Re-Encodes a media asset

Usage:

pmv-cli media re-encode <MEDIA>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID

Options:

OptionDescription
-h, --helpPrint help

Command: media replace

Replaces the media asset with another file

Usage:

pmv-cli media replace <MEDIA> <PATH>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID
<PATH>Path to the media file to upload

Options:

OptionDescription
-h, --helpPrint help

Command: media delete

Deletes a media asset

Usage:

pmv-cli media delete <MEDIA>

Arguments:

ArgumentDescription
<MEDIA>Media asset ID

Options:

OptionDescription
-h, --helpPrint help

Command: random

Retrieves random media assets from the vault

Usage:

pmv-cli random [OPTIONS]

Options:

OptionDescription
-s, --seed <SEED>PRNG seed
-p, --page-size <PAGE_SIZE>Page size, 10 by default
-t, --tag <TAG>Filter by a tag
-e, --extendedExtended version of the results table
-c, --csvCSV format
-h, --helpPrint help

Searches for media assets in the vault (Basic)

Usage:

pmv-cli search [OPTIONS]

Options:

OptionDescription
-p, --page <PAGE>Selects the results page. The fist page is the page 1
-s, --page-size <PAGE_SIZE>Page size, 10 by default
-t, --tag <TAG>Filter by a tag
-r, --reverseReverses results sorting. By default newest results are first. With this option, oldest results are first
-e, --extendedExtended version of the results table
-c, --csvCSV format
-h, --helpPrint help

Searches for media assets in the vault (Advanced)

Usage:

pmv-cli advanced-search [OPTIONS]

Options:

OptionDescription
-q, --title <TITLE>Filter by title
-d, --description <DESCRIPTION>Filter by description
-k, --media-type <MEDIA_TYPE>Filter by media type. Can be: video, audio or image
-t, --tags <TAGS>Filter by tags. Expected a list of tag names, separated by spaces
-m, --tags-mode <TAGS_MODE>Tag filtering mode. Can be: all, any, none or untagged
-a, --album <ALBUM>Filter by album. Expected an album ID, like: #1
-l, --limit <LIMIT>Limit on the number of results to get. 25 by default
-s, --start-from <START_FROM>Media id to use as a stating point for the scanning process
-r, --reverseReverses results sorting. By default newest results are first. With this option, oldest results are first
-e, --extendedExtended version of the results table
-c, --csvCSV format
-h, --helpPrint help

Command: tag

Manages tags

Usage:

pmv-cli tag <COMMAND>

Commands:

CommandDescription
listList tags
addAdds a tag to a media asset
removeRemoves a tag from a media asset

Options:

OptionDescription
-h, --helpPrint help

Command: tag list

List tags

Usage:

pmv-cli tag list [OPTIONS]

Options:

OptionDescription
-c, --csvCSV format
-a, --alphabeticallySort alphabetically by name
-h, --helpPrint help

Command: tag add

Adds a tag to a media asset

Usage:

pmv-cli tag add <TAG> <MEDIA>

Arguments:

ArgumentDescription
<TAG>Tag name or identifier
<MEDIA>Media asset ID

Options:

OptionDescription
-h, --helpPrint help

Command: tag remove

Removes a tag from a media asset

Usage:

pmv-cli tag remove <TAG> <MEDIA>

Arguments:

ArgumentDescription
<TAG>Tag name or identifier
<MEDIA>Media asset ID

Options:

OptionDescription
-h, --helpPrint help

Command: album

Manages albums

Usage:

pmv-cli album <COMMAND>

Commands:

CommandDescription
listList albums
getGet album and prints it
createCreates a new album
renameRenames an album
deleteDeletes album
addAdds a media asset to an album
removeRemoves a media asset from an album
set-positionChanges the position of a media asset inside al album

Options:

OptionDescription
-h, --helpPrint help

Command: album list

List albums

Usage:

pmv-cli album list [OPTIONS]

Options:

OptionDescription
-m, --media <MEDIA>Filter by media
-c, --csvCSV format
-a, --alphabeticallySort alphabetically by name
-i, --id-sortedSort by ID
-h, --helpPrint help

Command: album get

Get album and prints it

Usage:

pmv-cli album get [OPTIONS] <ALBUM>

Arguments:

ArgumentDescription
<ALBUM>Album ID

Options:

OptionDescription
-e, --extendedExtended version of the results table
-c, --csvCSV format
-h, --helpPrint help

Command: album create

Creates a new album

Usage:

pmv-cli album create <NAME>

Arguments:

ArgumentDescription
<NAME>Album name

Options:

OptionDescription
-h, --helpPrint help

Command: album rename

Renames an album

Usage:

pmv-cli album rename <ALBUM> <NAME>

Arguments:

ArgumentDescription
<ALBUM>Album ID
<NAME>Album name

Options:

OptionDescription
-h, --helpPrint help

Command: album delete

Deletes album

Usage:

pmv-cli album delete <ALBUM>

Arguments:

ArgumentDescription
<ALBUM>Album ID

Options:

OptionDescription
-h, --helpPrint help

Command: album add

Adds a media asset to an album

Usage:

pmv-cli album add <ALBUM> <MEDIA>

Arguments:

ArgumentDescription
<ALBUM>Album ID
<MEDIA>Media asset ID

Options:

OptionDescription
-h, --helpPrint help

Command: album remove

Removes a media asset from an album

Usage:

pmv-cli album remove <ALBUM> <MEDIA>

Arguments:

ArgumentDescription
<ALBUM>Album ID
<MEDIA>Media asset ID

Options:

OptionDescription
-h, --helpPrint help

Command: album set-position

Changes the position of a media asset inside al album

Usage:

pmv-cli album set-position <ALBUM> <MEDIA> <POSITION>

Arguments:

ArgumentDescription
<ALBUM>Album ID
<MEDIA>Media asset ID
<POSITION>New position for the media asset, starting at 1

Options:

OptionDescription
-h, --helpPrint help

Command: config

Manages vault configuration

Usage:

pmv-cli config <COMMAND>

Commands:

CommandDescription
getGets vault configuration
get-cssGets custom CSS code configured for the vault
set-titleSets vault title
set-max-tasksSets max tasks in parallel
set-encoding-threadsSets number of encoding threads to use
set-video-previews-intervalSets the video previews interval in seconds
set-cssSets custom CSS for the vault
clear-cssClears custom CSS for the vault
add-video-resolutionAdds video resolution
remove-video-resolutionRemoves video resolution
add-image-resolutionAdds image resolution
remove-image-resolutionRemoves image resolution

Options:

OptionDescription
-h, --helpPrint help

Command: config get

Gets vault configuration

Usage:

pmv-cli config get

Options:

OptionDescription
-h, --helpPrint help

Command: config get-css

Gets custom CSS code configured for the vault

Usage:

pmv-cli config get-css

Options:

OptionDescription
-h, --helpPrint help

Command: config set-title

Sets vault title

Usage:

pmv-cli config set-title <TITLE>

Arguments:

ArgumentDescription
<TITLE>Vault title

Options:

OptionDescription
-h, --helpPrint help

Command: config set-max-tasks

Sets max tasks in parallel

Usage:

pmv-cli config set-max-tasks <MAX_TASKS>

Arguments:

ArgumentDescription
<MAX_TASKS>Max tasks in parallel

Options:

OptionDescription
-h, --helpPrint help

Command: config set-encoding-threads

Sets number of encoding threads to use

Usage:

pmv-cli config set-encoding-threads <ENCODING_THREADS>

Arguments:

ArgumentDescription
<ENCODING_THREADS>Number of encoding threads to use

Options:

OptionDescription
-h, --helpPrint help

Command: config set-video-previews-interval

Sets the video previews interval in seconds

Usage:

pmv-cli config set-video-previews-interval <INTERVAL_SECONDS>

Arguments:

ArgumentDescription
<INTERVAL_SECONDS>Interval in seconds

Options:

OptionDescription
-h, --helpPrint help

Command: config set-css

Sets custom CSS for the vault

Usage:

pmv-cli config set-css <FILE_PATH>

Arguments:

ArgumentDescription
<FILE_PATH>Path to the css file to use

Options:

OptionDescription
-h, --helpPrint help

Command: config clear-css

Clears custom CSS for the vault

Usage:

pmv-cli config clear-css

Options:

OptionDescription
-h, --helpPrint help

Command: config add-video-resolution

Adds video resolution

Usage:

pmv-cli config add-video-resolution <RESOLUTION>

Arguments:

ArgumentDescription
<RESOLUTION>Video resolution. Example: 1280x720:30

Options:

OptionDescription
-h, --helpPrint help

Command: config remove-video-resolution

Removes video resolution

Usage:

pmv-cli config remove-video-resolution <RESOLUTION>

Arguments:

ArgumentDescription
<RESOLUTION>Video resolution. Example: 1280x720:30

Options:

OptionDescription
-h, --helpPrint help

Command: config add-image-resolution

Adds image resolution

Usage:

pmv-cli config add-image-resolution <RESOLUTION>

Arguments:

ArgumentDescription
<RESOLUTION>Image resolution. Example: 1280x720

Options:

OptionDescription
-h, --helpPrint help

Command: config remove-image-resolution

Removes image resolution

Usage:

pmv-cli config remove-image-resolution <RESOLUTION>

Arguments:

ArgumentDescription
<RESOLUTION>Image resolution. Example: 1280x720

Options:

OptionDescription
-h, --helpPrint help

Command: task

Retrieves tasks information

Usage:

pmv-cli task <COMMAND>

Commands:

CommandDescription
listLists current existing tasks
monitorMonitors tasks
getGet task status
waitWaits for a task to finish, monitoring its status

Options:

OptionDescription
-h, --helpPrint help

Command: task list

Lists current existing tasks

Usage:

pmv-cli task list [OPTIONS]

Options:

OptionDescription
-c, --csvCSV format
-h, --helpPrint help

Command: task monitor

Monitors tasks

Usage:

pmv-cli task monitor

Options:

OptionDescription
-h, --helpPrint help

Command: task get

Get task status

Usage:

pmv-cli task get <TASK>

Arguments:

ArgumentDescription
<TASK>Task identifier

Options:

OptionDescription
-h, --helpPrint help

Command: task wait

Waits for a task to finish, monitoring its status

Usage:

pmv-cli task wait <TASK>

Arguments:

ArgumentDescription
<TASK>Task identifier

Options:

OptionDescription
-h, --helpPrint help

Command: invites

Manages invites

Usage:

pmv-cli invites <COMMAND>

Commands:

CommandDescription
checkPrints the current invite code, if any
generateGenerates a new invite code
clearClears the current invite code
list-sessionsList active invited sessions
close-sessionCloses an invited session

Options:

OptionDescription
-h, --helpPrint help

Command: invites check

Prints the current invite code, if any

Usage:

pmv-cli invites check

Options:

OptionDescription
-h, --helpPrint help

Command: invites generate

Generates a new invite code

Usage:

pmv-cli invites generate [OPTIONS]

Options:

OptionDescription
-D, --duration <DURATION>Session duration. Can be: day, week, month or year
-h, --helpPrint help

Command: invites clear

Clears the current invite code

Usage:

pmv-cli invites clear

Options:

OptionDescription
-h, --helpPrint help

Command: invites list-sessions

List active invited sessions

Usage:

pmv-cli invites list-sessions [OPTIONS]

Options:

OptionDescription
-c, --csvCSV format
-h, --helpPrint help

Command: invites close-session

Closes an invited session

Usage:

pmv-cli invites close-session <INDEX>

Arguments:

ArgumentDescription
<INDEX>Session index

Options:

OptionDescription
-h, --helpPrint help

Command: batch

Applies a batch operation to a list of media assets

Usage:

pmv-cli batch [OPTIONS] <COMMAND>

Commands:

CommandDescription
add-tagsAdds tags to the media assets
remove-tagsRemoves tags from the media assets
add-to-albumAdds media assets into an album
remove-from-albumRemoves media assets from an album, if they were in it
deleteDelete media assets

Options:

OptionDescription
-q, --title <TITLE>Filter by title
-d, --description <DESCRIPTION>Filter by description
-k, --media-type <MEDIA_TYPE>Filter by media type. Can be: video, audio or image
-t, --tags <TAGS>Filter by tags. Expected a list of tag names, separated by spaces
-m, --tags-mode <TAGS_MODE>Tag filtering mode. Can be: all, any, none or untagged
-a, --album <ALBUM>Filter by album. Expected an album ID, like: #1
-e, --everythingDo not filter. Apply to the entire vault instead
-h, --helpPrint help

Command: batch add-tags

Adds tags to the media assets

Usage:

pmv-cli batch add-tags <TAGS>

Arguments:

ArgumentDescription
<TAGS>List of tag names, separated by spaces

Options:

OptionDescription
-h, --helpPrint help

Command: batch remove-tags

Removes tags from the media assets

Usage:

pmv-cli batch remove-tags <TAGS>

Arguments:

ArgumentDescription
<TAGS>List of tag names, separated by spaces

Options:

OptionDescription
-h, --helpPrint help

Command: batch add-to-album

Adds media assets into an album

Usage:

pmv-cli batch add-to-album <ALBUM>

Arguments:

ArgumentDescription
<ALBUM>Album ID

Options:

OptionDescription
-h, --helpPrint help

Command: batch remove-from-album

Removes media assets from an album, if they were in it

Usage:

pmv-cli batch remove-from-album <ALBUM>

Arguments:

ArgumentDescription
<ALBUM>Album ID

Options:

OptionDescription
-h, --helpPrint help

Command: batch delete

Delete media assets

Usage:

pmv-cli batch delete

Options:

OptionDescription
-h, --helpPrint help

Command: get-server-information

Gets server information, like the version it is using

Usage:

pmv-cli get-server-information

Options:

OptionDescription
-h, --helpPrint help
Last modified October 19, 2024: Update pmv-cli manual (2ecfe71)