Skip to content

CLI Reference

This page lists every MASV Agent CLI command and its parameters. For detailed usage examples, see the linked guide pages.

Manage the MASV Agent local server. See Getting Started for details.

CommandDescription
masv server startStart the local MASV Agent server.
masv server shutdownGracefully stop the local server.
masv versionDisplay the installed version and available updates.
masv -hList all available commands and flags.
FlagTypeDefaultDescription
--api-keyStringMASV API key for authentication.
--auto-finalizeBooleantrueAutomatically finalize uploads when they reach 100% progress.
--auto-resumeBooleantrueAutomatically resume transfers when the server starts.
--chunk-sizeString100MBTarget chunk size for uploads and downloads, formatted as {number}{unit}.
--config-dirString$HOME/.masvsrvStorage location for configuration files and the database.
--listenStringhttp://localhost:8080Listen address and port (port 0 for system-assigned).
--log-formatString[%lvl%] %time%: %msg%Log format string.
--log-levelStringdebugLog level: debug, info, warning, error.
--log-outStringstdoutLog output destination: stdout, stderr, or a filename.
--log-timestamp-formatString15:04:05Timestamp format for log entries.
--memory-cacheBooleantrueUse RAM to boost transfer performance.
--transfer-cleanup-daysIntegerAutomatically delete transfers older than this many days (minimum 1).
--versionDisplay the current version and available updates.

Manage user sessions. See Authentication for details.

CommandDescription
masv user loginLog in with email and password.
masv user statusShow the currently authenticated user and their Teams.
masv user teamsList Teams the current user belongs to.
FlagTypeRequiredDescription
--emailStringYesUser email address.
--passwordStringYesUser password.

Create, monitor, and manage uploads. See Uploads for details.

CommandDescription
masv upload start emailSend a Package to email recipients.
masv upload start linkSend a Package as a shareable download Link.
masv upload start portalUpload a Package to a Portal.
masv upload link {upload_id}Create an additional shareable Link for an existing upload.
masv upload finalize {upload_id}Finalize an upload and notify recipients.
masv upload lsList all uploads.
masv upload status {upload_id}View details for a specific upload.
masv upload pause {upload_id}Pause a specific upload.
masv upload pause allPause all uploads.
masv upload resume {upload_id}Resume a specific upload.
masv upload resume allResume all uploads.
masv upload rm {upload_id}Delete a specific upload.
masv upload rm allDelete all uploads.
masv upload update {upload_id}Update upload properties (e.g., FIFO rank).

These parameters apply to all upload types (email, link, portal).

FlagTypeRequiredDefaultDescription
--chunk-sizeStringNo""Custom chunk size. Overrides the server-level chunk-size flag.
--descriptionStringNo""Package description.
--nameStringNoPackage name.
--priorityIntegerNo0Upload priority. Higher values mean higher priority.

Includes all common upload parameters plus:

FlagTypeRequiredDescription
--emailsStringYesComma-separated list of email recipients.
--team-idStringYesTeam ID to associate with this upload.
--passwordStringNoDefault password for download Links.
--delete-afterIntegerNoDays to keep the Package in MASV storage.
--download-limitIntegerNoDefault access limit for download Links.
--tag-nameStringNoName of the Package tag. Created if it doesn’t exist.
--tag-idStringNoID of an existing Package tag.
--teamspace-idStringNoTeamspace ID to associate with this upload.
--unlimited-storageBooleanNoEnable unlimited storage for the Package.

Includes all common upload parameters plus:

FlagTypeRequiredDescription
--team-idStringYesTeam ID to associate with this upload.
--passwordStringNoDefault password for download Links.
--delete-afterIntegerNoDays to keep the Package in MASV storage.
--download-limitIntegerNoDefault access limit for download Links.
--tag-nameStringNoName of the Package tag. Created if it doesn’t exist.
--tag-idStringNoID of an existing Package tag.
--teamspace-idStringNoTeamspace ID to associate with this upload.
--unlimited-storageBooleanNoEnable unlimited storage for the Package.

Includes all common upload parameters plus:

FlagTypeRequiredDescription
--subdomainStringYesTarget Portal subdomain.
--senderStringYesSender email address.
--passwordStringNoPortal access code; required for password-protected Portals.
--metadataStringNoKey-value pairs for Portal metadata: key1=value1,key2=value2.
FlagTypeRequiredDescription
--fifo-rankIntegerNoSet the FIFO rank for this upload.

Initiate, monitor, and manage downloads. See Downloads for details.

CommandDescription
masv download startDownload a Package from a Link URL.
masv download lsList all downloads.
masv download status {download_id}View details for a specific download.
masv download pause {download_id}Pause a specific download.
masv download pause allPause all downloads.
masv download resume {download_id}Resume a specific download.
masv download resume allResume all downloads.
masv download rm {download_id}Delete a specific download.
masv download rm {download_id} --remove-filesDelete a download and its files from disk.
masv download rm allDelete all downloads.
masv download rm all --states=complete,errorDelete downloads filtered by state.
masv download update {download_id}Update download properties (e.g., FIFO rank).
FlagTypeRequiredDescription
--urlStringYesFull download Link URL.
--destinationStringYesPath to the download destination directory.
--passwordStringNoDownload password, if required by the Link.
--bypass-package-quarantineBooleanNoIgnore malware warnings and download unaffected files only (default true).
--create-package-folderBooleanNoDownload files inside a Package folder (default true).
--file-idsStringNoComma-separated list of Package file IDs to include.
--priorityIntegerNoDownload priority. Higher values mean higher priority.
--gidIntegerNoGID override to assign file ownership.
--uidIntegerNoUID override to assign file ownership.
FlagTypeRequiredDescription
--remove-filesBooleanNoAlso delete downloaded files from the file system.
--statesStringNoComma-separated list of states to filter deletion.
FlagTypeRequiredDescription
--fifo-rankIntegerNoSet the FIFO rank for this download.

Create, update, list, remove, export, and import automations. See Automations for details.

CommandDescription
masv automation lsList all automations.
masv automation add downloadCreate a Portal download automation.
masv automation add download --allCreate an all-Portals download automation.
masv automation add upload emailCreate a Team watch folder or stream upload automation.
masv automation add upload portalCreate a Portal watch folder or stream upload automation.
masv automation update download {id}Update a download automation.
masv automation update upload email {id}Update a Team upload automation.
masv automation update upload team {id}Update a Team stream automation.
masv automation update upload portal {id}Update a Portal upload or stream automation.
masv automation rm {id}Delete an automation.
masv automation export {id}Export an automation as a base64 string.
masv automation import 'base64_data'Import an automation from a base64 string.

masv automation add download parameters (Portal download)

Section titled “masv automation add download parameters (Portal download)”
FlagTypeRequiredDescription
--nameStringYesCustom automation name.
--subdomainStringYesPortal subdomain to monitor.
--destinationStringYesDestination folder for downloaded Packages.
--create-package-folderBooleanNoPlace Package contents in dedicated subdirectories (default true).
--effective-timeStringNoRFC 3339 date/time after which Packages will be downloaded.
--enableBooleanNoEnable the automation immediately (default true).
--priorityIntegerNoTransfer priority for created downloads.

masv automation add download --all parameters (all-Portals download)

Section titled “masv automation add download --all parameters (all-Portals download)”

Includes all Portal download parameters except --subdomain, plus:

FlagTypeRequiredDescription
--allFlagYesIndicates this is an all-Portals download automation.
--team-idStringYesTeam ID to poll for Portal Packages.
--create-portal-subfolderBooleanNoPlace Package folders within Portal-named directories.

masv automation add upload email parameters (Team watch folder)

Section titled “masv automation add upload email parameters (Team watch folder)”
FlagTypeRequiredDescription
--nameStringYesAutomation name.
--enableBooleanYesEnable or disable the automation.
--pathStringYesDirectory to watch.
--recipientsStringYesComma-separated list of email recipients.
--team-idStringYesTeam ID from which to send Packages.
--timeoutIntegerYesFilesystem inactivity timeout in minutes.
--growing-filesFlagNoEnable stream upload mode (monitors growing files instead of subfolders).
--blacklistStringNoFile patterns to exclude.
--delete-afterIntegerNoDays to keep the Package in MASV storage.
--delete-files-after-uploadBooleanNoDelete source files after upload completes.
--download-limitIntegerNoDefault access limit for download Links.
--download-passwordStringNoDefault password for download Links.
--messageStringNoMessage to include with the Package.
--package-name-suffixStringNoSuffix appended to the Package name.
--priorityIntegerNoUpload priority.
--tag-idStringNoID of an existing Package tag.
--tag-nameStringNoName of the Package tag.
--unlimited-storageBooleanNoEnable unlimited storage for the Package.
--upload-loose-filesBooleanNoAlso send top-level files as individual Packages.

masv automation add upload portal parameters (Portal watch folder)

Section titled “masv automation add upload portal parameters (Portal watch folder)”
FlagTypeRequiredDescription
--nameStringYesAutomation name.
--enableBooleanYesEnable or disable the automation.
--pathStringYesDirectory to watch.
--subdomainStringYesPortal subdomain to send Packages to.
--senderStringYesSender email address.
--timeoutIntegerYesFilesystem inactivity timeout in minutes.
--growing-filesFlagNoEnable stream upload mode (monitors growing files instead of subfolders).
--blacklistStringNoFile patterns to exclude.
--delete-files-after-uploadBooleanNoDelete source files after upload completes.
--messageStringNoMessage to include with the Package.
--package-name-suffixStringNoSuffix appended to the Package name.
--passwordStringNoPortal access code.
--priorityIntegerNoUpload priority.
--upload-loose-filesBooleanNoAlso send top-level files as individual Packages.

Manage Storage Gateway connections. See Storage Gateway for details.

CommandDescription
masv gateway addRegister a new Storage Gateway connection.
masv gateway lsList all Storage Gateway connections.
masv gateway rm {connection_id}Remove a Storage Gateway connection.
masv gateway update {connection_id}Update a Storage Gateway connection.
FlagTypeRequiredDescription
--idStringYesID of the existing Storage Device Integration.
--secretStringYesSecret key to register the connection with the MASV API.
--nameStringYesDescriptive connection name.
--root-pathStringYesFolder to share. Must be an absolute path.
--permissionsStringYesFile permissions: r (read) or w (write).
--uidIntegerNoCustom user ID override for file ownership on Linux.
--gidIntegerNoCustom group ID override for file ownership on Linux.
FlagTypeRequiredDescription
--root-pathStringNoNew root folder. Must be an absolute path.
--uidIntegerNoCustom user ID override. Use -1 to remove the override.
--gidIntegerNoCustom group ID override. Use -1 to remove the override.

Configure disk I/O, FIFO mode, multiconnect, network concurrency, and rate limits. See Settings for details.

CommandDescription
masv settings disk statusQuery disk configurations.
masv settings disk updateUpdate disk configurations.
masv settings fifo statusQuery FIFO mode status.
masv settings fifo updateEnable, disable, or configure FIFO mode.
masv settings multiconnect statusQuery multiconnect status.
masv settings multiconnect updateEnable or disable multiconnect.
masv settings multiconnect interface {iface_id}Enable or disable a network interface.
masv settings network concurrency statusQuery network concurrency settings.
masv settings network concurrency updateUpdate network concurrency settings.
masv settings network rate-limit upload statusQuery upload rate-limit settings.
masv settings network rate-limit download statusQuery download rate-limit settings.
masv settings network rate-limit download updateUpdate download rate-limit settings.
masv settings network rate-limit upload updateUpdate upload rate-limit settings.
masv settings network rate-limit download schedule updateEnable or disable the download rate-limit schedule.
masv settings network rate-limit download schedule daysConfigure schedule days and times.
FlagTypeRequiredDescription
--readersIntegerNoMaximum number of concurrent readers.
--writersIntegerNoMaximum number of concurrent writers.
--priorityStringNoDisk priority: mixed_read_writes, prioritize_writes, prioritize_reads.
--defaultFlagNoApply changes only to the default configuration.
--idsStringNoComma-separated disk IDs to update.
FlagTypeRequiredDescription
--enableFlagNoEnable FIFO mode.
--disableFlagNoDisable FIFO mode.
--downloadsIntegerNoNumber of concurrent downloads allowed.
--uploadsIntegerNoNumber of concurrent uploads allowed.

masv settings multiconnect update parameters

Section titled “masv settings multiconnect update parameters”
FlagTypeRequiredDescription
--enableFlagNoEnable multiconnect.
--disableFlagNoDisable multiconnect.

masv settings multiconnect interface parameters

Section titled “masv settings multiconnect interface parameters”
FlagTypeRequiredDescription
--enableFlagNoEnable the network interface.
--disableFlagNoDisable the network interface.

masv settings network concurrency update parameters

Section titled “masv settings network concurrency update parameters”
FlagTypeRequiredDescription
--downloadIntegerNoNumber of download chunk workers.
--uploadIntegerNoNumber of upload chunk workers.

masv settings network rate-limit update parameters

Section titled “masv settings network rate-limit update parameters”
FlagTypeRequiredDescription
--bpsIntegerNoRate limit in bits per second.
--enableFlagNoEnable the rate limit.
--disableFlagNoDisable the rate limit.
--iface-idStringNoNetwork interface ID (required when multiconnect is enabled).

masv settings network rate-limit schedule parameters

Section titled “masv settings network rate-limit schedule parameters”
FlagTypeRequiredDescription
--enableFlagNoEnable the rate-limit schedule.
--disableFlagNoDisable the rate-limit schedule.
--iface-idStringNoNetwork interface ID (required when multiconnect is enabled).

masv settings network rate-limit schedule days parameters

Section titled “masv settings network rate-limit schedule days parameters”
FlagTypeRequiredDescription
--startStringYesSchedule start time (e.g., "09:00").
--endStringYesSchedule end time (e.g., "17:00").
--enableFlagNoEnable the selected days.
--disableFlagNoDisable the selected days.
--monFlagNoInclude Monday.
--tueFlagNoInclude Tuesday.
--wedFlagNoInclude Wednesday.
--thuFlagNoInclude Thursday.
--friFlagNoInclude Friday.
--satFlagNoInclude Saturday.
--sunFlagNoInclude Sunday.
--iface-idStringNoNetwork interface ID (required when multiconnect is enabled).