@mediafile-dl/cli
v1.1.0
Published
CLI for downloading MediaFire files
Downloads
381
Readme
@mediafile-dl/cli
Command-line interface for resolving and downloading MediaFire files.
Install
bun add -g @mediafile-dl/cliAvailable binaries:
mediafire-dlmfdl
Usage
Resolve a file URL
mediafire-dl resolve "https://www.mediafire.com/file/xxxxx/file.zip"Download a file
mediafire-dl download "https://www.mediafire.com/file/xxxxx/file.zip"The download command is also the default command:
mediafire-dl "https://www.mediafire.com/file/xxxxx/file.zip"Options
resolve <url>
-b, --base-url <url>: override the MediaFire base URL-t, --timeout <ms>: request timeout in milliseconds, default30000
download <url>
-o, --output <path>: write to an explicit file path-d, --dir <path>: write into a directory using the resolved filename-b, --base-url <url>: override the MediaFire base URL-t, --timeout <ms>: request timeout in milliseconds, default30000
Examples
# Resolve with a custom base URL
mediafire-dl resolve "<url>" --base-url "https://mirror.example.com"
# Download into a specific directory
mediafire-dl download "<url>" --dir ./downloads
# Download to an exact output file
mediafire-dl download "<url>" --output ./downloads/archive.zipDevelopment
From the repo root:
bun install
bun run --filter @mediafile-dl/cli build