Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

btpc edit

Edit metainfo metadata without reading payload files

Parent: btpc

See Configuration and global flags and Exit codes and streams.

Synopsis

Usage: btpc edit [OPTIONS] <INPUT>

Arguments

ArgumentDescription
<INPUT>Metainfo file to edit

Options

OptionDescription
-o, --output, <OUTPUT>Write the edited metainfo to this path
--in-placeReplace the input file atomically Default: false.
-f, --forceReplace an existing output file Default: false.
--durableSync the destination directory after publication where supported Default: false.
--dry-runValidate and report changes without writing output Default: false.
--diffPrint a deterministic field-level change summary Default: false.
--jsonEmit a versioned JSON result to stdout Default: false.
-a, --tracker, <TRACKERS>Replace trackers with this tracker tier; may be repeated
--tracker-alias, <TRACKER_ALIASES>Add a configured tracker alias; may be repeated
--tracker-group, <TRACKER_GROUPS>Add a configured tracker group; may be repeated
--clear-trackersRemove all trackers Default: false.
--web-seed, <WEB_SEEDS>Replace web seeds with this URL; may be repeated
--clear-web-seedsRemove all web seeds Default: false.
--node, <NODES>Replace DHT nodes with HOST:PORT; may be repeated
--clear-nodesRemove all DHT nodes Default: false.
--comment, <COMMENT>Set the top-level comment
--clear-commentRemove the top-level comment Default: false.
--created-by, <CREATED_BY>Set the creator string
--clear-created-byRemove the creator string Default: false.
--creation-date, <CREATION_DATE>Set the Unix creation timestamp
--clear-creation-dateRemove the creation timestamp Default: false.
--privateSet the private flag Default: false.
--publicSet the private flag to false Default: false.
--clear-privateRemove the private field Default: false.
--source, <SOURCE>Set the source field
--clear-sourceRemove the source field Default: false.
--file-attributes, <FILE_ATTRIBUTES>Set file attributes as PATH=ATTRS; may be repeated
-h, --helpPrint help

Global options

OptionDescription
--config, <PATH>Use this configuration file when configuration loading is enabled
--no-configDisable implicit and environment-selected configuration Default: false.
--color, <COLOR>Control colored terminal output Values: auto, always, never.
-v, --verboseIncrease diagnostic verbosity; may be repeated Default: 0.
-q, --quietSuppress human summaries, warnings, and progress Default: false.

Example

$ btpc edit --help