### Run Mintlify Dev Server Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/README.md Starts the local development server for the docs site. Must be run in the folder containing docs.json. If it fails, run 'mintlify install' to reinstall dependencies. ```bash mintlify dev ``` -------------------------------- ### Install Make on Linux (apt) Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Installs Make on Linux using apt. ```bash sudo apt install make ``` -------------------------------- ### Install Linux GUI dependencies Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/gui/overview.mdx Install the required WebKitGTK 4.1 and GTK 3 libraries on Debian/Ubuntu, Fedora, or Arch. These dependencies must be installed before starting the GUI. ```bash sudo apt install libwebkit2gtk-4.1-0 libgtk-3-0 ``` ```bash sudo dnf install webkit2gtk4.1 gtk3 ``` ```bash sudo pacman -S webkit2gtk-4.1 gtk3 ``` -------------------------------- ### Install mkbrr with go install Source: https://github.com/autobrr/mkbrr/blob/develop/README.md Installs mkbrr using the go install command and adds the Go bin directory to the PATH. ```bash go install github.com/autobrr/mkbrr@latest # make sure its in your PATH export PATH=$PATH:$(go env GOPATH)/bin ``` -------------------------------- ### Verify Go installation Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Confirms the Go installation by printing the installed version. ```bash go version ``` -------------------------------- ### Basic usage examples Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/guides/checking-data.mdx Basic usage examples for checking a downloaded directory and a single file. ```bash mkbrr check MyShow.S01.torrent /path/to/downloads/MyShow.S01/ ``` ```bash mkbrr check MyMovie.mkv.torrent /path/to/downloads/MyMovie.mkv ``` -------------------------------- ### Install Go on Windows Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Installs Go via Chocolatey on Windows. ```bash choco install golang ``` -------------------------------- ### Install Make on Windows Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Installs Make on Windows using Chocolatey. ```bash choco install make ``` -------------------------------- ### Install Go on Linux (apt) Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Installs Go via the apt package manager on Linux. ```bash sudo apt install golang ``` -------------------------------- ### Advanced options examples Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/guides/checking-data.mdx Advanced usage examples: verbose mode to see bad piece indices, and quiet mode for scripting with example output. ```bash mkbrr check data.zip.torrent /data/files/data.zip -v ``` ```bash mkbrr check archive.rar.torrent /backups/archive.rar --quiet # Output example: 99.50% ``` -------------------------------- ### Install Git on Windows Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Installs Git using Chocolatey on Windows. ```bash choco install git ``` -------------------------------- ### Install Mintlify CLI Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/README.md Installs the Mintlify CLI globally using npm. Required to preview the docs site locally. ```bash npm i -g mintlify ``` -------------------------------- ### Install Git on Linux (apt) Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Installs Git using the apt package manager on Linux. ```bash sudo apt install git ``` -------------------------------- ### mkbrr create basic examples Source: https://github.com/autobrr/mkbrr/blob/develop/README.md Examples of creating torrents with various options: private/public, comment, custom output, randomized info hash, exclude/include patterns, worker threads, fail-on-season-warning, and name property. Note that --include takes precedence over --exclude, and --workers 0 uses automatic logic. ```bash # Create a private torrent (default) mkbrr create path/to/file -t https://example-tracker.com/announce # Create a public torrent mkbrr create path/to/file -t https://example-tracker.com/announce --private=false # Create with a comment mkbrr create path/to/file -t https://example-tracker.com/announce -c "My awesome content" # Create with a custom output path mkbrr create path/to/file -t https://example-tracker.com/announce -o custom-name.torrent # Create with randomized info hash mkbrr create path/to/file -t https://example-tracker.com/announce -e # Create a torrent excluding specific file patterns (comma-separated) mkbrr create path/to/file -t https://example-tracker.com/announce --exclude "*.nfo,*.jpg" # Create a torrent including only specific file patterns (comma-separated) mkbrr create path/to/video-folder -t https://example-tracker.com/announce --include "*.mkv,*.mp4" # Create using a specific number of worker threads for hashing (e.g., 8) # Experimenting with different values might yield better performance than the default automatic setting. mkbrr create path/to/large-file -t https://example-tracker.com/announce --workers 8 # Fail if a potentially incomplete season pack is detected mkbrr create path/to/season-pack -t https://example-tracker.com/announce --fail-on-season-warning # Create using a name property for the torrent mkbrr create path/to/file -t https://example-tracker.com/announce --name "Your torrent name" ``` -------------------------------- ### Install mkbrr on Alpine Linux with apk Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Installs mkbrr from the Alpine testing repository. The version there may be outdated, so it is highly recommended to run `mkbrr update` immediately after installing to get the latest official release from GitHub. ```bash sudo apk update sudo apk add mkbrr ``` -------------------------------- ### Install Make on macOS Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Installs Make via Xcode Command Line Tools on macOS. ```bash # Included with Xcode Command Line Tools xcode-select --install ``` -------------------------------- ### presets.yaml structure and minimal example Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/features/presets.mdx Defines the structure of the presets.yaml file. The full example shows the optional default block and two presets with various options; the minimal example shows the required version and presets fields with a single preset. The file is searched for in the order: --preset-file flag, ./presets.yaml, ~/.config/mkbrr/presets.yaml, and ~/.mkbrr/presets.yaml. ```yaml # yaml-language-server: $schema=https://raw.githubusercontent.com/autobrr/mkbrr/main/schema/presets.json version: 1 # Optional: Default settings applied to ALL presets unless overridden default: private: true no_date: true no_creator: false skip_prefix: false # comment: "Default comment" # source: "DEFAULT_SRC" # exclude_patterns: ["*.bak", "temp.*"] # include_patterns: ["*.mkv", "*.mp4"] presets: preset-name-1: # Name of the preset (used with -P flag) trackers: - "https://tracker-one.com/announce/..." source: "TRACKER1" comment: "Uploaded via mkbrr" private: true exclude_patterns: - "*.nfo" - "*sample*" preset-name-2: trackers: - "udp://tracker-two.org:6969/announce" private: false # Make these torrents public piece_length: 18 # Use 256 KiB pieces for this preset include_patterns: - "*.mkv" - "*.mp4" - "*.avi" ``` ```yaml version: 1 presets: ptp: trackers: - "https://tracker.example.com/announce" private: false source: "EXAMPLE" ``` -------------------------------- ### Install Git on macOS Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Installs Git using Homebrew on macOS. ```bash brew install git ``` -------------------------------- ### Build mkbrr from source Source: https://github.com/autobrr/mkbrr/blob/develop/README.md Builds mkbrr from source by cloning the repository and using make install, with an optional sudo variant for system-wide installation. ```bash # Clone the repository git clone https://github.com/autobrr/mkbrr.git cd mkbrr # Install the binary to $GOPATH/bin make install # Or install system-wide (requires sudo) sudo make install # installs to /usr/local/bin ``` -------------------------------- ### Install mkbrr via AUR (yay) Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Installs mkbrr from the Arch User Repository using yay. The AUR version might be outdated; it is recommended to run 'mkbrr update' after installation. ```bash yay -S mkbrr ``` -------------------------------- ### Install Go on macOS Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Installs Go via Homebrew on macOS. Requires Go version 1.27.0 or higher. ```bash brew install go ``` -------------------------------- ### Build GUI from source Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/gui/overview.mdx Build the GUI from source. Requires cloning the repository, installing the Wails CLI once, then running `make gui-build` or `make gui-build-all`. The built application is placed in `gui/build/bin/`. On Linux, `make gui-build` builds against WebKitGTK 4.0; if your system has only WebKitGTK 4.1 (e.g., Ubuntu 24.04+), run `cd gui && wails build -tags webkit2_41` instead. ```bash # Clone the repository git clone https://github.com/autobrr/mkbrr.git cd mkbrr # Install Wails CLI (one-time requirement) make install-wails # Build GUI for your current platform make gui-build # Or build for all platforms make gui-build-all ``` -------------------------------- ### Build Commands Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Common build commands for the mkbrr project. Use `make build` to build the binary, `make clean` to remove build artifacts, `make all` to clean, build, and install the binary, and `make install` to install the binary in GOPATH. ```bash make build # Build the binary make clean # Remove build artifacts make all # Clean, build, and install the binary make install # Install the binary in GOPATH ``` -------------------------------- ### Install mkbrr via AUR (manual) Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Manually clones the AUR repository and builds/installs mkbrr with makepkg. The AUR version might be outdated; it is recommended to run 'mkbrr update' after installation. ```bash git clone https://aur.archlinux.org/mkbrr.git cd mkbrr makepkg -si ``` -------------------------------- ### Install mkbrr with Homebrew Source: https://github.com/autobrr/mkbrr/blob/develop/README.md Installs mkbrr via Homebrew on macOS and Linux. ```bash brew install mkbrr ``` -------------------------------- ### PGO Commands Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Commands for Profile-Guided Optimization. Run `make profile` before `make build-pgo` to generate a PGO profile, then build or install the optimized binary. ```bash make profile # Generate a PGO profile (run before build-pgo) make build-pgo # Build the binary with PGO optimization make install-pgo # Install the PGO-optimized binary ``` -------------------------------- ### Build mkbrr GUI from source Source: https://github.com/autobrr/mkbrr/blob/develop/README.md Build the mkbrr GUI from source. Requires the Wails CLI installed once via `make install-wails`. Use `make gui-build` for the current platform or `make gui-build-all` for all platforms. The built application is placed in `gui/build/bin/`. ```bash # Install Wails CLI (one-time requirement) make install-wails # Build GUI for your current platform make gui-build # Or build for all platforms make gui-build-all ``` -------------------------------- ### Install mkbrr on FreeBSD via tar.gz Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Downloads the latest FreeBSD x86_64 tar.gz release and extracts the mkbrr binary to /usr/local/bin. Ensure /usr/local/bin is in your PATH. ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep freebsd_x86_64.tar.gz | cut -d\" -f4) sudo tar -C /usr/local/bin -xzf mkbrr_*_freebsd_x86_64.tar.gz mkbrr ``` -------------------------------- ### Fix Command Not Found by Adding to PATH Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Add the installation directory to your PATH to resolve 'command not found' errors. Two options are provided: for Go installations and for binary installations. ```bash # For Go installations echo 'export PATH=$PATH:$(go env GOPATH)/bin' >> ~/.zshrc && source ~/.zshrc ``` ```bash # For binary installations echo 'export PATH=$PATH:/usr/local/bin' >> ~/.zshrc && source ~/.zshrc ``` -------------------------------- ### Install mkbrr on Alpine (.apk) for amd64 and arm64 Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Download and install the mkbrr .apk package for Alpine using apk with --allow-untrusted. Supports amd64 and arm64 architectures. ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep linux_amd64.apk | cut -d\" -f4) sudo apk add --allow-untrusted mkbrr_*_linux_amd64.apk ``` ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep linux_arm64.apk | cut -d\" -f4) sudo apk add --allow-untrusted mkbrr_*_linux_arm64.apk ``` -------------------------------- ### Install mkbrr on macOS (Intel) via tar.gz Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Downloads the latest macOS x86_64 tar.gz release and extracts the mkbrr binary to /usr/local/bin. Ensure /usr/local/bin is in your PATH. ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep darwin_x86_64.tar.gz | cut -d\" -f4) sudo tar -C /usr/local/bin -xzf mkbrr_*_darwin_x86_64.tar.gz mkbrr ``` -------------------------------- ### Install mkbrr on Linux (arm64) via APK Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Downloads the latest Linux arm64 APK release from GitHub and installs it with apk, allowing untrusted packages. ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep linux_arm64.apk | cut -d\" -f4) sudo apk add --allow-untrusted mkbrr_*_linux_arm64.apk ``` -------------------------------- ### GUI Development Commands Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Commands for installing the Wails CLI and building/running the GUI. `make install-wails` is a one-time requirement before running the GUI in development mode. ```bash make install-wails # Install the Wails CLI (one-time requirement) make gui-dev # Run the GUI in development mode make gui-build # Build the GUI for the current platform make gui-build-all # Build the GUI for all platforms make gui-clean # Clean the GUI build artifacts ``` -------------------------------- ### Advanced features: preset, piece size, web seeds, entropy Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/guides/creating-torrents.mdx Examples from the 'Advanced Features' tab. The first uses a preset with -P. The second sets a specific piece size with -l and adds web seeds with -w. The third enables entropy for cross-seeding with -e. ```bash mkbrr create /path/to/content -P mypreset ``` ```bash mkbrr create /path/to/large-file.iso -t https://tracker.net/a -l 24 -w http://seed.example.com/large-file.iso ``` ```bash mkbrr create /path/to/content -t https://another-tracker.com/announce -e ``` -------------------------------- ### Advanced usage: source tag, preset, and dry-run Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/guides/modifying-torrents.mdx Examples from the Advanced Usage tab. The first adds a source tag and saves to a specific directory. The second applies a preset and adds entropy. The third previews changes without saving using --dry-run. ```bash mkbrr modify /downloads/*.torrent --source "MySource" --output-dir /modified-torrents/ ``` ```bash mkbrr modify old-preset.torrent -P newpreset -e ``` ```bash mkbrr modify my.torrent --tracker https://new.co/a --comment "Updated" --dry-run ``` -------------------------------- ### Install mkbrr on Debian/Ubuntu (.deb) for amd64, arm64, and armv6 Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Download and install the mkbrr .deb package for Debian/Ubuntu using dpkg. Supports amd64, arm64, and armv6 architectures. ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep linux_amd64.deb | cut -d\" -f4) sudo dpkg -i mkbrr_*_linux_amd64.deb ``` ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep linux_arm64.deb | cut -d\" -f4) sudo dpkg -i mkbrr_*_linux_arm64.deb ``` ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep linux_armv6.deb | cut -d\" -f4) sudo dpkg -i mkbrr_*_linux_armv6.deb ``` -------------------------------- ### Install mkbrr on Linux (armv6) via APK Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Downloads the latest Linux armv6 APK release from GitHub and installs it with apk, allowing untrusted packages. ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep linux_armv6.apk | cut -d\" -f4) sudo apk add --allow-untrusted mkbrr_*_linux_armv6.apk ``` -------------------------------- ### Install mkbrr on Fedora/CentOS (.rpm) for amd64, arm64, and armv6 Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Download and install the mkbrr .rpm package for Fedora/CentOS using rpm. Supports amd64, arm64, and armv6 architectures. ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep linux_amd64.rpm | cut -d\" -f4) sudo rpm -i mkbrr_*_linux_amd64.rpm ``` ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep linux_arm64.rpm | cut -d\" -f4) sudo rpm -i mkbrr_*_linux_arm64.rpm ``` ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep linux_armv6.rpm | cut -d\" -f4) sudo rpm -i mkbrr_*_linux_armv6.rpm ``` -------------------------------- ### Basic usage: create private and public torrents Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/guides/creating-torrents.mdx Examples from the 'Basic Usage' tab. The first creates a private torrent for a single file using -t for the tracker URL and -s for the source name. The second creates a public torrent for a directory using --private=false and -c for the comment. ```bash mkbrr create /path/to/movie.mkv -t https://private-tracker.com/announce -s "MyTracker" ``` ```bash mkbrr create /path/to/album-folder -t udp://public-tracker.org:6969/announce --private=false -c "Awesome Album" ``` -------------------------------- ### Install mkbrr on macOS (Apple Silicon) via tar.gz Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Downloads the latest macOS arm64 tar.gz release and extracts the mkbrr binary to /usr/local/bin. Ensure /usr/local/bin is in your PATH. ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep darwin_arm64.tar.gz | cut -d\" -f4) sudo tar -C /usr/local/bin -xzf mkbrr_*_darwin_arm64.tar.gz mkbrr ``` -------------------------------- ### Example warning output Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/features/season-packs.mdx Example warning output shown by mkbrr when it detects an incomplete season pack. It appears after the file list and before the progress bar, and is hidden by --quiet and --info-only. ```plaintext Warning: Possible incomplete season pack detected Season number: 1 Highest episode number found: 4 Episodes found: 3 Missing: episode 3 This may be an incomplete season pack. Check files before uploading. ``` -------------------------------- ### Example batch.yaml configuration Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/features/batch-mode.mdx Defines two torrent jobs in batch mode. Each job specifies an output path, source media path, tracker announce URL, private flag, comment, and source label. The file header references the mkbrr batch JSON schema for validation. ```yaml # yaml-language-server: $schema=https://raw.githubusercontent.com/autobrr/mkbrr/main/schema/batch.json version: 1 jobs: - output: /torrents/movie1.torrent path: /media/movies/movie1.mkv trackers: - https://tracker-one.com/announce/abc private: true comment: "4K HDR Release" source: "UHD" - output: /torrents/movie2.torrent path: /media/movies/movie2.mkv trackers: - https://tracker-one.com/announce/abc private: true comment: "1080p Release" source: "BluRay" ``` -------------------------------- ### Clone Repository Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Clones the mkbrr repository from GitHub. Run this first to get the source code. ```bash git clone https://github.com/autobrr/mkbrr.git ``` -------------------------------- ### Install mkbrr on Linux (tar.gz) for x86_64, arm64, and arm Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Download and extract the mkbrr binary for Linux from the latest GitHub release. The extraction directory (e.g., /usr/local/bin) must be in your PATH to run mkbrr from any location. ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep linux_x86_64 | cut -d\" -f4) sudo tar -C /usr/local/bin -xzf mkbrr_*_linux_x86_64.tar.gz mkbrr ``` ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep linux_arm64.tar.gz | cut -d\" -f4) sudo tar -C /usr/local/bin -xzf mkbrr_*_linux_arm64.tar.gz mkbrr ``` ```bash wget $(curl -s https://api.github.com/repos/autobrr/mkbrr/releases/latest | grep download | grep linux_arm.tar.gz | grep -v arm64 | cut -d\" -f4) sudo tar -C /usr/local/bin -xzf mkbrr_*_linux_arm.tar.gz mkbrr ``` -------------------------------- ### Install mkbrr on Windows via PowerShell Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Downloads the latest Windows x86_64 zip release using PowerShell and extracts it. After extraction, ensure mkbrr.exe is accessible via your PATH. ```powershell # Download (Uses Invoke-RestMethod for reliable JSON parsing) $releaseInfo = Invoke-RestMethod -Uri "https://api.github.com/repos/autobrr/mkbrr/releases/latest" $url = $releaseInfo.assets | Where-Object { $_.name -like '*windows_x86_64.zip' } | Select-Object -ExpandProperty browser_download_url curl.exe -L -o mkbrr_latest_windows_x86_64.zip $url # Extract Expand-Archive -Path mkbrr_latest_windows_x86_64.zip -DestinationPath .\mkbrr_extracted -Force ``` -------------------------------- ### Basic usage: update tracker and make torrents public Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/guides/modifying-torrents.mdx Examples from the Basic Usage tab. The first updates the tracker for a single torrent, outputting 'new-tracker_original.torrent'. The second makes multiple torrents public with --private=false, outputting files like 'modified_file1.torrent'. ```bash mkbrr modify original.torrent --tracker https://new-tracker.com/announce ``` ```bash mkbrr modify *.torrent --private=false ``` -------------------------------- ### File filtering: exclude and include patterns Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/guides/creating-torrents.mdx Examples from the 'File Filtering' tab. The first excludes files matching the given patterns with --exclude. The second includes only video files with --include. ```bash mkbrr create /path/to/project/ -t https://tracker.net/a --exclude ".*,*.tmp,node_modules" ``` ```bash mkbrr create /path/to/mixed-folder/ -t https://tracker.net/a --include "*.mkv,*.mp4,*.avi" ``` -------------------------------- ### Add Go binary path to PATH environment variable Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Adds the Go binary path to your shell profile (e.g., `.bashrc`, `.zshrc`, `.profile`) and sources it so the `mkbrr` command can be found after a `go install`. ```bash echo 'export PATH=$PATH:$(go env GOPATH)/bin' >> ~/.zshrc && source ~/.zshrc ``` -------------------------------- ### mkbrr create help Source: https://github.com/autobrr/mkbrr/blob/develop/README.md Displays help information for the mkbrr create command. ```bash mkbrr create --help ``` -------------------------------- ### Apply preset with create and modify commands Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/features/presets.mdx Use the -P (or --preset) flag with the create or modify commands to apply a preset. The create command targets a content path, while modify applies to torrent files. ```bash mkbrr create /path/to/content -P preset-name-1 ``` ```bash mkbrr modify *.torrent -P preset-name-2 ``` -------------------------------- ### Conventional Commits example: fix(torrent) Source: https://github.com/autobrr/mkbrr/blob/develop/AGENTS.md Example of a Conventional Commits commit message. The type is a fix and the scope is torrent. ```text fix(torrent): correct piece length for small files ``` -------------------------------- ### Breaking change commit title example Source: https://github.com/autobrr/mkbrr/blob/develop/AGENTS.md Example of a conventional commit title indicating a breaking change. The `!` after the scope and the `BREAKING CHANGE` label are required and are enforced by the PR title workflow. ```text feat(torrent)!: ... ``` -------------------------------- ### Extract and run Linux GUI Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/gui/overview.mdx Extract the Linux GUI archive, make the binary executable, and run it. The archive name uses a wildcard for the version. ```bash tar -xzf mkbrr-gui_*_linux_amd64.tar.gz chmod +x mkbrr-gui ./mkbrr-gui ``` -------------------------------- ### Create a torrent with mkbrr Source: https://github.com/autobrr/mkbrr/blob/develop/README.md Shows the basic mkbrr create command with default private torrents, the --private=false flag for public torrents, and the -e flag for randomized info hashes. ```bash # torrents are private by default mkbrr create path/to/file -t https://example-tracker.com/announce # public torrent mkbrr create path/to/file -t https://example-tracker.com/announce --private=false # Create with randomized info hash mkbrr create path/to/file -t https://example-tracker.com/announce -e ``` -------------------------------- ### Benchmark mkbrr vs mktorrent vs torrenttools vs torf on Leaseweb (21 GiB) Source: https://github.com/autobrr/mkbrr/blob/develop/README.md Benchmark command for a 21 GiB 1080p season pack on a Leaseweb server. It compares mkbrr, mktorrent, torrenttools, and torf using hyperfine with cache dropping and a cleanup step. The output shows mkbrr is fastest at 7.244 s mean, about 6.27x faster than mktorrent. ```bash hyperfine --warmup 1 --runs 5 \ --setup 'sudo sync && sudo sh -c "echo 3 > /proc/sys/vm/drop_caches"' \ --prepare 'sudo sync && sudo sh -c "echo 3 > /proc/sys/vm/drop_caches" && rm -f /home/user/Show.S01.DL.1080p.WEB.H264-GROUP.torrent' \ 'mkbrr create /home/user/torrents/qbittorrent/Show.S01.DL.1080p.WEB.H264-GROUP' \ 'mktorrent /home/user/torrents/qbittorrent/Show.S01.DL.1080p.WEB.H264-GROUP' \ 'torrenttools create --threads 8 ~/torrents/qbittorrent/Show.S01.DL.1080p.WEB.H264-GROUP' \ 'torf --threads 8 /home/user/torrents/qbittorrent/Show.S01.DL.1080p.WEB.H264-GROUP' ``` ```text Benchmark 1: mkbrr create /home/user/torrents/qbittorrent/Show.S01.DL.1080p.WEB.H264-GROUP Time (mean ± σ): 7.244 s ± 0.018 s [User: 31.245 s, System: 7.554 s] Range (min … max): 7.225 s … 7.270 s 5 runs Benchmark 2: mktorrent /home/user/torrents/qbittorrent/Show.S01.DL.1080p.WEB.H264-GROUP Time (mean ± σ): 45.407 s ± 0.163 s [User: 36.495 s, System: 4.983 s] Range (min … max): 45.135 s … 45.539 s 5 runs Benchmark 3: torrenttools create --threads 8 ~/torrents/qbittorrent/Show.S01.DL.1080p.WEB.H264-GROUP Time (mean ± σ): 9.074 s ± 0.093 s [User: 29.248 s, System: 5.228 s] Range (min … max): 8.908 s … 9.122 s 5 runs Benchmark 4: torf --threads 8 /home/user/torrents/qbittorrent/Show.S01.DL.1080p.WEB.H264-GROUP Time (mean ± σ): 8.854 s ± 0.077 s [User: 25.829 s, System: 5.136 s] Range (min … max): 8.771 s … 8.937 s 5 runs Summary 'mkbrr create /home/user/torrents/qbittorrent/Show.S01.DL.1080p.WEB.H264-GROUP' ran 1.22 ± 0.01 times faster than 'torf --threads 8 /home/user/torrents/qbittorrent/Show.S01.DL.1080p.WEB.H264-GROUP' 1.25 ± 0.01 times faster than 'torrenttools create --threads 8 ~/torrents/qbittorrent/Show.S01.DL.1080p.WEB.H264-GROUP' 6.27 ± 0.03 times faster than 'mktorrent /home/user/torrents/qbittorrent/Show.S01.DL.1080p.WEB.H264-GROUP' ``` -------------------------------- ### Benchmark mkbrr vs mktorrent vs torf with hyperfine Source: https://github.com/autobrr/mkbrr/blob/develop/README.md Benchmark comparing mkbrr create, mktorrent, and torf --threads 10 on a Macbook Pro M4 with a 30 GiB 1080p season pack. The command uses hyperfine with --warmup 1 and --runs 5, and removes the existing .torrent file before each run. The output shows mkbrr is about 1.01x faster than torf and 1.12x faster than mktorrent. ```bash hyperfine --warmup 1 --runs 5 \ --prepare 'rm -f Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP.torrent' \ 'mkbrr create ~/Desktop/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP' \ 'mktorrent ~/Desktop/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP' \ 'torf --threads 10 ~/Desktop/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP' ``` ```text Benchmark 1: mkbrr create ~/Desktop/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP Time (mean ± σ): 9.708 s ± 0.355 s [User: 10.823 s, System: 4.297 s] Range (min … max): 9.479 s … 10.323 s 5 runs Benchmark 2: mktorrent ~/Desktop/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP Time (mean ± σ): 10.897 s ± 0.701 s [User: 11.021 s, System: 3.038 s] Range (min … max): 9.950 s … 11.620 s 5 runs Benchmark 3: torf --threads 10 ~/Desktop/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP Time (mean ± σ): 9.779 s ± 0.749 s [User: 10.776 s, System: 5.253 s] Range (min … max): 9.383 s … 11.112 s 5 runs Summary mkbrr create ~/Desktop/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP ran 1.01 ± 0.09 times faster than torf --threads 10 ~/Desktop/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP 1.12 ± 0.08 times faster than mktorrent ~/Desktop/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP ``` -------------------------------- ### Benchmark mkbrr vs mktorrent vs torrenttools vs torf on Hetzner (14 GiB) Source: https://github.com/autobrr/mkbrr/blob/develop/README.md Benchmark command for a 14 GiB 1080p season pack on a Hetzner server. It compares mkbrr, mktorrent, torrenttools, and torf using hyperfine with cache dropping and a cleanup step. The output shows mkbrr is fastest at 41.022 s mean, about 1.66x faster than mktorrent. ```bash hyperfine --warmup 1 --runs 5 \ --setup 'sudo sync && sudo sh -c "echo 3 > /proc/sys/vm/drop_caches"' \ --prepare 'sudo sync && sudo sh -c "echo 3 > /proc/sys/vm/drop_caches" && rm -f /home/user/mkbrr/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP.torrent' \ 'mkbrr create ~/torrents/qbittorrent/tv/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP' \ 'mktorrent ~/torrents/qbittorrent/tv/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP' \ 'torrenttools create --threads 12 ~/torrents/qbittorrent/tv/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP' \ 'torf --threads 12 ~/torrents/qbittorrent/tv/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP' ``` ```text Benchmark 1: mkbrr create ~/torrents/qbittorrent/tv/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP Time (mean ± σ): 41.022 s ± 0.979 s [User: 13.691 s, System: 6.747 s] Range (min … max): 39.938 s … 42.467 s 5 runs Benchmark 2: mktorrent ~/torrents/qbittorrent/tv/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP Time (mean ± σ): 68.168 s ± 26.654 s [User: 17.934 s, System: 6.543 s] Range (min … max): 39.268 s … 97.574 s 5 runs Benchmark 3: torrenttools create --threads 12 ~/torrents/qbittorrent/tv/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP Time (mean ± σ): 47.968 s ± 10.552 s [User: 7.052 s, System: 6.551 s] Range (min … max): 39.460 s … 66.296 s 5 runs Benchmark 4: torf --threads 12 ~/torrents/qbittorrent/tv/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP Time (mean ± σ): 58.187 s ± 5.787 s [User: 7.185 s, System: 6.511 s] Range (min … max): 50.125 s … 65.807 s 5 runs Summary mkbrr create ~/torrents/qbittorrent/tv/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP ran 1.17 ± 0.26 times faster than torrenttools create --threads 12 ~/torrents/qbittorrent/tv/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP 1.42 ± 0.15 times faster than torf --threads 12 ~/torrents/qbittorrent/tv/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP 1.66 ± 0.65 times faster than mktorrent ~/torrents/qbittorrent/tv/Show.S01.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP ``` -------------------------------- ### Run mkbrr with Docker Source: https://github.com/autobrr/mkbrr/blob/develop/README.md Pulls the mkbrr Docker image, tags it for convenience, and runs it with volume mounts for input/output directories. ```bash # Pull the image docker pull ghcr.io/autobrr/mkbrr # Tag it for easier use docker tag ghcr.io/autobrr/mkbrr mkbrr # Run with volume mounts for input/output docker run -v ~/Downloads:/downloads mkbrr mkbrr create /downloads/your-file --output-dir /downloads ``` -------------------------------- ### Use preset mode with mkbrr create Source: https://github.com/autobrr/mkbrr/blob/develop/README.md Shows how to use the preset mode with the -P flag, override preset values with --source, and adjust the workers count with --workers. The preset file can be placed in the current directory, ~/.config/mkbrr/, or ~/.mkbrr/, or specified with --preset-file. ```bash # Uses the ptp-preset (defined in your presets.yaml file) mkbrr create -P ptp path/to/file # Override some preset values mkbrr create -P ptp --source "MySource" path/to/file # Override workers count mkbrr create -P ptp --workers 4 path/to/file ``` -------------------------------- ### mkbrr create command usage Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/cli-reference/create.mdx Shows the basic command syntax for creating a torrent file from a file or directory. The path argument is required unless using the batch mode flag. ```bash mkbrr create /path/to/content [flags] ``` -------------------------------- ### Override preset flags with command-line options Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/features/presets.mdx Standard command-line flags like --source (-s) and --private completely override their preset values. These examples show overriding the source and private flags for create and modify commands. ```bash mkbrr create /path/to/content -P preset-name-1 -s "CUSTOM_SRC" ``` ```bash mkbrr modify existing.torrent -P preset-name-2 --private=true ``` -------------------------------- ### mkbrr version command Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/cli-reference/version.mdx Use this command to print the version and build time information for mkbrr. It takes no flags. ```bash mkbrr version ``` -------------------------------- ### mkbrr create command structure Source: https://github.com/autobrr/mkbrr/blob/develop/README.md Basic command structure for creating torrents with mkbrr. ```bash mkbrr create [path] [flags] ``` -------------------------------- ### Create public tracker torrents with mkbrr Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/quickstart.mdx Use --private=false to create public torrents. Multiple -t flags add multiple trackers. ```bash mkbrr create "Linux.ISO" -t udp://tracker.opentrackr.org:1337/announce --private=false ``` ```bash mkbrr create "Linux.ISO" -t udp://tracker1.com -t udp://tracker2.com --private=false ``` -------------------------------- ### Benchmark command for Hetzner Ryzen 9 7950X3D Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/performance/benchmarks.mdx Runs hyperfine to compare mkbrr, mktorrent, torrenttools, and torf on a 15 GiB season pack. Uses --workers 64 for mkbrr and --threads 64 for torrenttools and torf. ```bash hyperfine --warmup 1 --runs 5 \ 'mkbrr create The.Show.S02.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP --workers 64' \ 'mktorrent -l 24 The.Show.S02.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP' \ 'torrenttools create --threads 64 The.Show.S02.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP' \ 'torf --threads 64 The.Show.S02.1080p.SRC.WEB-DL.DDP5.1.H.264-GRP' ``` -------------------------------- ### Create Docker alias with config directory mount Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/installation.mdx Creates a Docker alias that mounts your config directory and sets the working directory (`-w`) to it, allowing mkbrr to automatically discover `presets.yaml` or other config files. mkbrr searches the current working directory and the standard config path (`$HOME/.config/mkbrr`, which resolves to `/config/.config/mkbrr` inside the official image since it sets `HOME=/config`). ```bash alias mkbrr='docker run --rm \ -v /mnt/user/data/complete/Music:/music \ -v /mnt/user/data/torrentfiles/created:/torrentfiles \ -v /mnt/user/appdata/mkbrr:/config \ -w /config \ ghcr.io/autobrr/mkbrr mkbrr' ``` -------------------------------- ### mkbrr create with incomplete season pack warning Source: https://github.com/autobrr/mkbrr/blob/develop/README.md Shows the output when mkbrr create is run on a folder whose name indicates a season pack. It detects missing episodes by comparing the highest episode number found against the count of video files, prints a warning, and continues creating the torrent. ```bash mkbrr create ~/Kyles.Original.Sins.S01.1080p.SRC.WEB-DL.DDP5.1.H.264 -t https://tracker.com/announce/1234567 Files being hashed: ├─ Kyles.Original.Sins.S01E01.Business.and.Pleasure.1080p.SRC.WEB-DL.DDP5.1.H.264.mkv (3.3 GiB) ├─ Kyles.Original.Sins.S01E02.Putting.It.Back.In.1080p.SRC.WEB-DL.DDP5.1.H.264.mkv (3.4 GiB) └─ Kyles.Original.Sins.S01E04.Cursor.For.Life.1080p.SRC.WEB-DL.DDP5.1.H.264.mkv (3.3 GiB) Warning: Possible incomplete season pack detected Season number: 1 Highest episode number found: 4 Video files: 3 This may be an incomplete season pack. Check files before uploading. Hashing pieces... [3220.23 MB/s] 100% [========================================] Wrote title.torrent (elapsed 3.22s) ``` -------------------------------- ### Build Binary Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Builds the mkbrr binary. The binary is created in the build/ directory with version information from git tags. ```bash make build ``` -------------------------------- ### Basic Check: mkbrr check my_torrent.torrent my_download_folder Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/cli-reference/check.mdx Verifies the content in `my_download_folder` against `my_torrent.torrent`. ```bash mkbrr check my_torrent.torrent my_download_folder ``` -------------------------------- ### Change Directory Source: https://github.com/autobrr/mkbrr/blob/develop/documentation/development.mdx Changes the current working directory to the cloned mkbrr repository. ```bash cd mkbrr ```