› Home › Documentation › Cli › Commands

Collective Toolbox CLI Reference

This document is automatically generated from the ctoolbox CLI command definitions.

Overview

Collective Toolbox

Usage: ctoolbox [OPTIONS] [COMMAND]

Commands:
  adduser                    Register a new non-administrator local user
  waitshutdown               Wait for the provided PID to shutdown, then clean up
  waitrestart                Wait for the provided PID to shutdown, then start ctoolbox with the given port
  waitupgrade                Wait for the provided PID to shutdown, then upgrade the ctoolbox instance in place, then restart it. (Will need to copy the executable before upgrading it probably because Windows locks running executables.)
  base2base                  Convert delimited numbers between positional radix numeral systems (bases 1..=36, or up to 64 with `--output-alphabet base64_standard`)
  hex2dec                    Convert from hexadecimal to decimal
  dec2hex                    Convert from decimal to hexadecimal
  hexfmt                     Reformat hexadecimal number strings (delimiters, prefixes, case, padding)
  hex2bin                    Convert a hexadecimal string to binary data
  bin2hex                    Convert binary data to a hexadecimal string or hex dump
  hexdump                    Format binary data as a hex dump (fancy by default, or --plain / --xxd)
  xxd                        Format binary data as an xxd hex dump
  short-dc                   Convert Document Character (Dc) shorthand to Global Graph ID or show metadata
  gid                        Convert Global Graph ID to short representation or show full metadata
  explain-ctbnodes           Render a .ctbnodes ledger file with synthesized human-readable explanation comments
  range_gen                  Generate a range of numbers in various bases
  character_description      Describe Unicode characters, Dcs, and Graph IDs with annotations, aliases, and meanings. This feature may be changed or simplified in future
  convert                    Convert documents or text between supported formats
  gdb_instructions_generate  Generate GDB instructions from symbols
  x86-instruction-sets       Analyze an x86/x64 object or archive file and list CPU instruction set features
  ia                         Internet Archive utilities
  pan2csv                    Convert a .pan file to CSV format (writes to stdout)
  stagel-bootstrap-parse     Parse a StageL file to token output
  stagel-bootstrap-convert   Translate a StageL file using the bootstrap compiler
  pan2parsejson              Convert a .pan file to JSON of parse (writes to stdout)
  pan2macro                  Extract a macro/procedure from a .pan file (writes to stdout)
  pan2procedures             Export procedures from a .pan file into a directory of individual procedure files
  panmacro2ast               Parse a macro/procedure into AST JSON from a macro code file (or whole .pan database if `macro_name` is provided) and write to stdout
  pdf2txt                    Convert a PDF file to text output. Not yet implemented
  pdf2json                   Convert a PDF file to JSON output. Not yet implemented
  pdf2md                     Convert a PDF file to Markdown output. Not yet implemented
  file2metadatajson          Read a file and export comprehensive metadata from io/file to JSON
  metadatajson2file          Read file metadata JSON and rematerialize the file to the given path
  warcat                     WARC archiving tool
  ctb-asset-bundle-extract   Extract a ctoolbox asset bundle to a directory tree
  js-lint                    Lint JavaScript and TypeScript sources
  ts-check                   Type-check TypeScript code
  js-test                    Run JavaScript tests
  python                     Run the embedded Python interpreter or execute Python scripts
  validate-docker-image      Validate a docker save image tarball
  csc                        Checksummed copy with rsync-compatible path resolution and an extra verification step
  archive                    Create, list, verify, or extract a self-contained CSC archive
  cp                         Copy files or directories with an extra verification step (alias for `csc --delete-manifest-after`)
  mv                         Move files or directories without copying when possible, or run verified cross-device copy
  csc-verify                 Verify a directory against a manifest recorded by csc
  csc-diff                   Compare two filesystem paths with the same verification strictness and logic as csc
  fsindex                    Index a directory or csc manifest for quick searching
  fsearch                    Fast indexed search against a .cscindex.sqlite database
  csum                       Calculate checksum for a file or stdin
  compress                   Compress a file or stdin using single-stream compression format
  decompress                 Decompress a compressed file or stdin
  file                       Detect format, MIME type, and characteristics of files (like `file`)
  wfparser                   Process a file using wfparser logic
  wfscan                     Process a file using wfscan logic
  dceutils_php_to_csv        Convert PHP data file arrays to CSV files
  help                       Show help
  show-node                  Unimplemented, just an example
  ctb-dev-sign               Sign release artifacts for distribution (developer command)
  ctb-dev-gz-sha256          Compress a tar file with the server's gzip settings and print its SHA256 hex (developer command)
  ctb-dev-key-create         Generate a signing keypair for `ctb-dev-sign`
  ctb-dev-release-check      Verify an uploaded release: check signature and chunk hashes
  ctb-dev-release-expire     Delete old release chunks and manifests to reclaim disk space
  install                    Launch the installer GUI (or TUI if --no-gui)
  make-offline-installer     Download and package the latest offline installer bundle
  update                     Check for updates and optionally apply them
  uninstall                  Uninstall ctoolbox from this system
  ctb-upgrade-canary         Internal: Post-upgrade canary validation
  jq                         Lightweight JQ implementation
  json-escape                Escape a string to be a valid JSON string value (enclosed in double quotes)
  run                        Compile, execute, and render a Document Character (Dc) document or StageL 3 / StageR 3 program

Options:
      --ctoolbox-ipc-port <CTOOLBOX_IPC_PORT>
          
      --no-update
          Skip automatic update checks on startup
      --use-bundled-tls-validator
          Use bundled certificate roots for this run only
      --use-system-tls-validator
          Use the system certificate store for this run only
      --insecure-skip-crlite-check
          Skip CRLite revocation checking for this run only
      --retry-on-host-error <RETRY_ON_HOST_ERROR>
          Number of retry attempts on DNS or host connection errors [default: 3]
      --recover-graph
          Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
      --version-json
          Print version information in JSON format and exit
  -h, --help
          Print help
  -V, --version
          Print version

Subcommands

ctoolbox adduser

Register a new non-administrator local user

Usage: ctoolbox adduser [OPTIONS] <USERNAME>

Arguments:
  <USERNAME>  Username for the new non-administrator account

Options:
      --password-stdin  Read password from stdin even if running interactively
      --recover-graph   Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help            Print help

ctoolbox archive

Create, list, verify, or extract a self-contained CSC archive

Usage: ctoolbox archive [OPTIONS] <COMMAND>

Commands:
  create   Create a self-contained uncompressed CSC archive
  list     List committed members and capture diagnostics
  verify   Verify archive structure, checksums, and file contents without sources
  extract  Extract a verified archive beneath a destination directory

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox archive create

Create a self-contained uncompressed CSC archive

Usage: ctoolbox archive create [OPTIONS] <ARCHIVE> [SOURCES]...

Arguments:
  <ARCHIVE>     Archive output path, or - for binary stdout
  [SOURCES]...  

Options:
      --resume
          Resume an interrupted file-output archive using its recorded sources
      --continue-on-error
          Retain source failures, continue capture, and report nonzero status
      --journal
          Write as journal format (different magic bytes, omits stream or file bodies)
      --full-provenance
          Record full provenance environment information using slow environment detection (e.g. network discovery for public IP addresses and server time synchronization)
      --on-source-change <ON_SOURCE_CHANGE>
          Behavior when a source file is modified during capture [default: error] [possible values: error, best-effort]
  -x, --one-file-system
          Stay on the current filesystem and do not cross mount boundaries
      --read-apple-double [<STYLE>]
          Read AppleDouble companion files and join them into file entities. Defaults to `alongside` style if passed without a style [possible values: alongside, zip, netatalk]
      --recover-graph
          Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
      --read-apple-double-alongside
          Read alongside (._<filename>) AppleDouble companion files
      --no-read-apple-double-alongside
          Disable reading alongside (._<filename>) AppleDouble companion files
      --read-apple-double-zip
          Read __MACOSX/ directory AppleDouble companion files
      --read-apple-double-netatalk
          Read Netatalk .AppleDouble companion files
      --read-apple-single
          Read AppleSingle files and decode data fork, resource fork, and Apple metadata
      --read-apple-single-without-extension
          Read bare AppleSingle files without extension (alias for --read-apple-single)
      --no-read-apple-single
          Disable reading bare AppleSingle files without extension
      --read-apple-single-with-extension <EXT>
          Read AppleSingle files with the specified extension ('as' or 'asf'), automatically stripping the extension upon successful decode [possible values: without-extension, as, asf]
      --read-windows-ads
          Read alongside `<filename>:<stream_name>` Windows alternate data stream companion files
      --no-read-windows-ads
          Disable reading alongside `<filename>:<stream_name>` Windows alternate data stream companion files
  -h, --help
          Print help (see more with '--help')

ctoolbox archive extract

Extract a verified archive beneath a destination directory

Usage: ctoolbox archive extract [OPTIONS] <ARCHIVE> <DESTINATION>

Arguments:
  <ARCHIVE>      
  <DESTINATION>  

Options:
      --overwrite
          Replace existing regular files atomically; merge existing directories
      --trust-symlink-targets
          Preserve link targets verbatim, including targets outside destination
      --best-effort-metadata
          Report filesystem metadata losses instead of requiring exact restoration
      --strict
          Require every timestamp check, including hard platform limits
      --check-atime
          Verify restored access times
      --check-ctime
          Verify change times even where the platform cannot restore them
      --check-birthtime
          Verify birth times even where the platform cannot restore them
      --recover-graph
          Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
      --copy-specials-as-specials
          Permit restoration of FIFOs and device nodes as special files
      --recover
          Extract committed members from incomplete archives or archives containing capture errors
      --maybe-write-apple-double [<STYLE>]
          Write AppleDouble companion files if native filesystem streams or Apple metadata cannot be preserved. Defaults to `alongside` style if passed without a style [possible values: alongside, zip, netatalk]
      --force-write-apple-double [<STYLE>]
          Force writing AppleDouble companion files even if native streams are supported. Defaults to `alongside` style if passed without a style [possible values: alongside, zip, netatalk]
      --maybe-write-apple-single
          Write AppleSingle archive files if native filesystem streams or Apple metadata cannot be preserved
      --force-write-apple-single
          Force writing destination files as AppleSingle archives
      --write-apple-single-with-extension <EXT>
          Write AppleSingle archive files with specified extension: 'as' or 'asf' [possible values: without-extension, as, asf]
      --write-apple-single-without-extension
          Write AppleSingle archive files without extension (default)
      --maybe-write-windows-ads
          Write alongside `<filename>:<stream_name>` Windows alternate data stream companion files if native streams cannot be preserved
      --force-write-windows-ads
          Force writing attached streams as alongside `<filename>:<stream_name>` Windows alternate data stream companion files
  -h, --help
          Print help (see more with '--help')

ctoolbox archive list

List committed members and capture diagnostics

Usage: ctoolbox archive list [OPTIONS] <ARCHIVE>

Arguments:
  <ARCHIVE>  

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox archive verify

Verify archive structure, checksums, and file contents without sources

Usage: ctoolbox archive verify [OPTIONS] <ARCHIVE>

Arguments:
  <ARCHIVE>  

Options:
      --recover        Allow verification of incomplete archives or archives containing capture errors
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox base2base

Convert delimited numbers between positional radix numeral systems (bases 1..=36, or up to 64 with `--output-alphabet base64_standard`)

Usage: ctoolbox base2base [OPTIONS] <ARGS>...

Arguments:
  <ARGS>...  All positional arguments for custom parsing

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help (see more with '--help')

Padding & Chunking:
  -b, --bytes          Shortcut for byte-sized conversion: chunks numbers into byte units (`--limit 255 --pad`) and suppresses non-fatal warnings
      --no-pad         Disables zero-padding when using the `--bytes` shortcut
  -l, --limit <LIMIT>  Limit maximum value for number chunking. Input numbers longer than the digit width needed to represent this value will be split into chunks (e.g. limit 255 splits continuous hex into 2-digit byte chunks). Set to 0 to disable chunking [default: 0]
  -p, --pad            Zero-pad the left of each number to the full digit width determined by the `--limit` argument (e.g. 2 hex digits or 8 binary digits for 255). Requires `--limit` to be set
  -P, --pad-l <PAD_L>  Left-pad each number with leading zeros to at least this many digits. Set to 0 or 1 to disable fixed padding [default: 1]

Formatting & Delimiters:
      --prefix <PREFIX>        Prefix to prepend to each output number (e.g. "0x" for hexadecimal) [default: ""]
  -s, --separator <SEPARATOR>  Delimiter string inserted between separate output numbers [default: " "]
      --lowercase              Output letter digits in bases > 10 using lowercase letters instead of uppercase. Does not change case of non-digit characters

Input Parsing & Filtering:
      --parse-prefixes                 Recognize and strip standard radix prefixes (such as "0x", "0b", "0o") from input numbers
  -f, --filter-chars                   Filter out non-digit characters between numbers in the formatted output. If false, non-digit punctuation is echoed literally
  -c, --collapse-filtered              Ignore non-digit characters inline while parsing numbers, preventing them from splitting numbers (e.g. "`10_000`" parses as 10000)
      --collapse-only <COLLAPSE_ONLY>  Specific non-digit characters to collapse inline silently without emitting warnings (e.g. `--collapse-only "_"`) [default: []]

Numeral Systems & Alphabets:
      --input-alphabet <INPUT_ALPHABET>
          Alphabet to use for parsing input numbers. Bases > 36 (up to 64) require specifying an alphabet like `base64_standard` [default: standard] [possible values: standard, base64_standard]
      --output-alphabet <OUTPUT_ALPHABET>
          Alphabet to use for formatting output numbers. Bases > 36 (up to 64) require specifying an alphabet like `base64_standard` [default: standard] [possible values: standard, base64_standard]

Output Options:
  -q, --quiet  Suppress non-fatal warning messages

Examples:
  $ ctoolbox base2base 10 16 "255 16 10"
  ff 10 a

  $ ctoolbox base2base 10 16 255 16 10
  ff 10 a

  $ ctoolbox base2base 2 10 "1101 1010"
  13 10

  $ ctoolbox base2base 16 2 --prefix "0b" 1f 2a
  0b11111 0b101010

  $ ctoolbox base2base 10 16 --bytes 255 128
  ff 80

  $ ctoolbox base2base 10 64 "0 1 63 64 255" --output-alphabet base64_standard
  A B / BA D/

Note on Base 64 vs. Data Armor:
  This command converts numbers in a mathematical base-64 radix (e.g. 255 -> D/).
  To encode raw binary files or octet streams using RFC 4648 Base64 (where 0xFF -> /w==),
  use a data armoring tool.

Continuous Hex vs. Byte Streams:
  Continuous hex strings (e.g. "deadbeef") are parsed as a single large scalar
  integer (3735928559). Pass `--bytes` to chunk them into individual byte values (0..=255).

Note on Stdin:
  This command expects arguments and does not read standard input (stdin).

ctoolbox bin2hex

Convert binary data to a hexadecimal string or hex dump

Usage: ctoolbox bin2hex [OPTIONS] [VALUE]

Arguments:
  [VALUE]  Data to convert. If not provided, reads from stdin or file

Options:
  -f, --file <FILE>      Input file path (or - for stdin)
  -o, --output <OUTPUT>  Output file path (or - for stdout)
      --hd               Output in classic hex dump format
      --hf               Output in fancy hex dump format
      --xxd              Output in xxd hex dump format
      --recover-graph    Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help             Print help

Examples:
  $ ctoolbox bin2hex "Hello"
  48656c6c6f

  $ echo -n "Hello" | ctoolbox bin2hex
  48656c6c6f

  $ cat file.exe | ctoolbox bin2hex
  4d5a...

  $ ctoolbox bin2hex -f file.bin -o file.hex
  $ ctoolbox bin2hex --hd -f file.bin
  $ ctoolbox bin2hex --hf "Hello"
  $ ctoolbox bin2hex --xxd "Hello"

ctoolbox character_description

Describe Unicode characters, Dcs, and Graph IDs with annotations, aliases, and meanings. This feature may be changed or simplified in future

Usage: ctoolbox character_description [OPTIONS] [INPUT]

Arguments:
  [INPUT]  Input text containing characters/IDs to describe. If not provided, reads from stdin or file

Options:
      --from <FROM>
          Input format (autodetected if omitted; accepts nickname, `FormatId` name, or f<N> shorthand)
      --permissive
          Parse and export document in permissive/forgiving mode (recovering from invalid headers, characters, or checksums with warnings)
      --strict
          Parse and export document in strict mode (rejecting invalid headers, characters, or non-canonical sequences)
  -f, --file <FILE>
          Input file path (or - for stdin)
  -o, --output <OUTPUT>
          Output file path (or - for stdout)
  -F, --force
          Overwrite existing output file without prompt
  -c, --codepoint <CODEPOINT>
          Specific character, Dc ID, or Global Graph ID (e.g. U+0041, dc:296, 1114408, fmt:80)
      --recover-graph
          Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
      --mode <MODE>
          Description format mode (standard or wuc-compat) [default: standard] [possible values: standard, wuc-compat]
      --wuc-compat
          Shortcut flag for WUC compatibility mode
      --control-names <CONTROL_NAME_FORMAT>
          Control character name formatting style [default: name-aliases] [possible values: name-aliases, names-list, wuc]
  -u, --unicode-version <UNICODE_VERSION>
          Unicode version to use for character data (17.0, 16.0, 15.1, 15.0) [default: 17.0] [possible values: 17.0, 16.0, 15.1, 15.0]
      --no-unihan-readings
          Disable Unihan readings/meanings in standard description output
      --transform <TRANSFORM>
          Document transformation(s) to apply before describing characters (accepts nickname, `FormatId` name, or f<N> shorthand)
  -h, --help
          Print help (see more with '--help')

Supported input formats (--from):
  Document formats:
    cdce_lstrict (CdceLegacyStrict): CDCE (legacy, strict)
    csdl (Csdl): Comma-separated Dc list (long Dcs)
    ctbnbdl (CtbNodeBundle): Collective Toolbox Node Bundle (default: ctbnbdl2)
        ctbnbdl1 (CtbNodeBundle1): Collective Toolbox Node Bundle, version 1
        ctbnbdl2 (CtbNodeBundle2): Collective Toolbox Node Bundle, version 2
    ctbnode-incoming (CtbNodeIncoming): Collective Toolbox incoming graph node (shorthand text)
    ctbnodes (CtbNodes): Collective Toolbox graph nodes (shorthand text)
    dc_id_list (DcIdList): Dc ID list (ASCII)
    dcal (Dcal): Dc ASCII List (long Dcs)
    dce (Dce): DCE (automatic version selection)
    dce_3_01a (Dce_3_01a): DCE 3.01a
    dce_3_01a_raw (Dce_3_01a_raw): DCE 3.01a (raw)
    dce_3_0a (Dce_3_0a): DCE 3.0a
    dce_3_0a_raw (Dce_3_0a_raw): DCE 3.0a (raw)
    dce_hex_3_01a (Dce_3_01a_hex): DCE 3.01a (hex-encoded)
    dce_hex_3_01a_raw (Dce_3_01a_raw_hex): DCE 3.01a (raw hex-encoded)
    dce_hex_3_0a (Dce_3_0a_hex): DCE 3.0a (hex-encoded)
    dce_hex_3_0a_raw (Dce_3_0a_raw_hex): DCE 3.0a (raw hex-encoded)
    dcil (DcIntegerList): Dc Integer List (short Dcs)
    dcmm, dcmstr (DcMixed): Dc mixed mode (default: dcmm2)
        dcmm1 (DcMixed1): Dc mixed mode, version 1 (DcUtf)
        dcmm2 (DcMixed2): Dc mixed mode, version 2 (DcTF)
    dcsh (Dcsh): Dc shorthand ASCII list
    dctext (DcText): DcText
    dctf (DcTf): DcTF (Dc Transformation Format)
    dcts (Dcts): DcText short
    dcutf (DcUtf): DcUtf
    hex_dce (DceHex): DCE (hex-encoded)
    legacy_cdce (CdceLegacy): CDCE (legacy)
    sems, selq (Sems): SEMS (short Dcs)
    utf8_dc64 (Utf8_Dc64): UTF-8 (Base64-encoded, ASCII Dc ID list)
    utf8_dc64_bin (Utf8_Dc64_bin): UTF-8 (Base64-encoded, DCE 3.01a+ encoding)
    utf8_dc64_bin_enc (Utf8_Dc64_bin_enc): UTF-8 (Base64-encoded, DCE 3.01a+ encoding; with headers)
    utf8_dc64_bin_enc_hex (Utf8_Dc64_bin_enc_hex): UTF-8 (Base64-encoded, DCE 3.01a+ encoding; with headers; hex-encoded)
    utf8_dc64_bin_hex (Utf8_Dc64_bin_hex): UTF-8 (Base64-encoded, DCE 3.01a+ encoding; hex-encoded)
    utf8_dc64_enc (Utf8_Dc64_enc): UTF-8 (Base64-encoded, ASCII Dc ID list; with headers)
  Text encodings:
    alphasmartneo (AlphaSmartNeo): AlphaSmart Neo encoding (has several variants)
    alphasmartneolowctluamac (AlphaSmartNeoLowCtlUaMac): AlphaSmart Neo, control low bytes, Ukraine (Mac)
    alphasmartneolowctluapc (AlphaSmartNeoLowCtlUaPc): AlphaSmart Neo, control low bytes, Ukraine (PC)
    alphasmartneolowctlus (AlphaSmartNeoLowCtlUs): AlphaSmart Neo, control low bytes, USA
    alphasmartneolowgruamac (AlphaSmartNeoLowGrUaMac): AlphaSmart Neo, graphical low bytes, Ukraine (Mac)
    alphasmartneolowgruapc (AlphaSmartNeoLowGrUaPc): AlphaSmart Neo, graphical low bytes, Ukraine (PC)
    alphasmartneolowgrus (AlphaSmartNeoLowGrUs): AlphaSmart Neo, graphical low bytes, USA
    ascii (Ascii): ASCII
    asciisafesubset (AsciiSafeSubset): Printable ASCII
    cp437 (Cp437): Code page 437 (CCSID 437)
    iso88591, latin1 (Iso88591): ISO 8859-1
    macroman (MacRoman): MacRoman
    utf8, txt, utf-8 (Utf8): UTF-8
    win1252, ansi (Win1252): Windows-1252 ("ANSI")
  Database & archive formats:
    cscarchive (CscArchive): Collective Toolbox csc archive (default: cscarchive2)
        cscarchive1 (CscArchive1): Collective Toolbox csc archive, version 1
        cscarchive2 (CscArchive2): Collective Toolbox csc archive, version 2
    cscjournal (CscJournal): Collective Toolbox csc journal

Examples:
  $ ctoolbox character_description "Hello"
  $ ctoolbox character_description --codepoint U+1F602
  $ ctoolbox character_description --wuc-compat "Hello"
  $ ctoolbox character_description --from dcal "65 1114408 2228304"
  $ ctoolbox character_description --codepoint dc:296
  $ ctoolbox character_description --from dcmm --permissive -f input.bin
  $ ctoolbox character_description -f input.txt -o output.txt

ctoolbox compress

Compress a file or stdin using single-stream compression format

Usage: ctoolbox compress [OPTIONS] <FORMAT> [FILE]

Arguments:
  <FORMAT>  Compression format (e.g. `br`, `gz`, `deflate`, `zlib`). See table below for allowed values
  [FILE]    Input file path (or - for stdin) [default: -]

Options:
  -o, --output <OUTPUT>  Output file path or - for stdout. Defaults to stdout when input is stdin, or appends the format extension (`<file>.<ext>`) for file input
      --force            Force overwrite existing destination file without confirmation
      --verify           Verify compressed output by decompressing it
      --no-verify        Skip verification of compressed output
      --recover-graph    Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help             Print help

Supported compression formats:
  br, brotli: Brotli compressed stream (RFC 9841)
  bz, bzip: Original bzip compression
  bz2, bzip2: Bzip2 compressed stream
  compact: `compact` (McMaster Adaptive Huffman)
  compress: `compress` format, modern LZW block format
  compress-h, compress-sco, sco-compress: `compress`: SCO `compress -H` format (LZH)
  compress1, compress-1: `compress` 1.0 (LZW headerless format)
  compress16, compress1.6, compress-1.6: `compress` 1.6 (LZW sorted chain format)
  compress2, compress-2: `compress` 2.0 (LZW non-block format)
  deflate, raw-deflate: Raw DEFLATE compressed stream (RFC 1951)
  gz, gzip: GNU gzip format (RFC 1952)
  lz, lzip: Lzip compression
  lz4: LZ4
  lzma: LZMA (Lempel–Ziv–Markov chain algorithm)
  lzma2: LZMA container format
  lzo: LZO (Lempel-Ziv-Oberhumer)
  melt, freeze, freeze2: freeze: Freeze 2.X format (LZSS + Dynamic Huffman)
  melt1, freeze1, freeze-1: freeze: Freeze 1.0 format (LZSS + Dynamic Huffman)
  oldpack, old-pack, early-pack: `pack` format, early PDP-11 Unix binary tree
  pack: `pack` format, common version (Huffman)
  rz, rzip: rzip: rzip format (long range chunk matching + bzip2)
  szip: szip (Michael Schindler)
  szip111, szip-1.11: szip (Michael Schindler) version 1.11+
  xz: XZ compression
  zl, zz, zlib, zlib-deflate: Zlib-wrapped DEFLATE stream (RFC 1950)
  zst, zstd: Zstandard compression

ctoolbox convert

Convert documents or text between supported formats

Usage: ctoolbox convert [OPTIONS] [INPUT]

Arguments:
  [INPUT]  Input data string. If not provided, reads from stdin or --file

Options:
      --from <FROM>                 Input format (autodetected if omitted; accepts nickname, `FormatId` name, or f<N> shorthand)
      --permissive                  Parse and export document in permissive/forgiving mode (recovering from invalid headers, characters, or checksums with warnings)
      --strict                      Parse and export document in strict mode (rejecting invalid headers, characters, or non-canonical sequences)
      --normalize <NORMALIZE>       Character and Unicode normalization policy (none, as-needed, all) [possible values: none, as-needed, all]
  -t, --to <TO>                     Output format (accepts nickname, `FormatId` name, or f<N> shorthand) [default: utf8]
      --transform <TRANSFORM>       Document transformation(s) to apply before exporting (accepts nickname, `FormatId` name, or f<N> shorthand)
  -f, --file <FILE>                 Input file path (or - for stdin)
      --recover-graph               Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -o, --output <OUTPUT>             Output file path (or - for stdout)
  -F, --force                       Overwrite existing output file without prompt
      --allow-binary-encapsulation  Allow encapsulating arbitrary binary bytes into `DcMixed` mode if input format cannot be decoded
  -h, --help                        Print help (see more with '--help')

Supported input formats (--from):
  Document formats:
    cdce_lstrict (CdceLegacyStrict): CDCE (legacy, strict)
    csdl (Csdl): Comma-separated Dc list (long Dcs)
    ctbnbdl (CtbNodeBundle): Collective Toolbox Node Bundle (default: ctbnbdl2)
        ctbnbdl1 (CtbNodeBundle1): Collective Toolbox Node Bundle, version 1
        ctbnbdl2 (CtbNodeBundle2): Collective Toolbox Node Bundle, version 2
    ctbnode-incoming (CtbNodeIncoming): Collective Toolbox incoming graph node (shorthand text)
    ctbnodes (CtbNodes): Collective Toolbox graph nodes (shorthand text)
    dc_id_list (DcIdList): Dc ID list (ASCII)
    dcal (Dcal): Dc ASCII List (long Dcs)
    dce (Dce): DCE (automatic version selection)
    dce_3_01a (Dce_3_01a): DCE 3.01a
    dce_3_01a_raw (Dce_3_01a_raw): DCE 3.01a (raw)
    dce_3_0a (Dce_3_0a): DCE 3.0a
    dce_3_0a_raw (Dce_3_0a_raw): DCE 3.0a (raw)
    dce_hex_3_01a (Dce_3_01a_hex): DCE 3.01a (hex-encoded)
    dce_hex_3_01a_raw (Dce_3_01a_raw_hex): DCE 3.01a (raw hex-encoded)
    dce_hex_3_0a (Dce_3_0a_hex): DCE 3.0a (hex-encoded)
    dce_hex_3_0a_raw (Dce_3_0a_raw_hex): DCE 3.0a (raw hex-encoded)
    dcil (DcIntegerList): Dc Integer List (short Dcs)
    dcmm, dcmstr (DcMixed): Dc mixed mode (default: dcmm2)
        dcmm1 (DcMixed1): Dc mixed mode, version 1 (DcUtf)
        dcmm2 (DcMixed2): Dc mixed mode, version 2 (DcTF)
    dcsh (Dcsh): Dc shorthand ASCII list
    dctext (DcText): DcText
    dctf (DcTf): DcTF (Dc Transformation Format)
    dcts (Dcts): DcText short
    dcutf (DcUtf): DcUtf
    hex_dce (DceHex): DCE (hex-encoded)
    legacy_cdce (CdceLegacy): CDCE (legacy)
    sems, selq (Sems): SEMS (short Dcs)
    utf8_dc64 (Utf8_Dc64): UTF-8 (Base64-encoded, ASCII Dc ID list)
    utf8_dc64_bin (Utf8_Dc64_bin): UTF-8 (Base64-encoded, DCE 3.01a+ encoding)
    utf8_dc64_bin_enc (Utf8_Dc64_bin_enc): UTF-8 (Base64-encoded, DCE 3.01a+ encoding; with headers)
    utf8_dc64_bin_enc_hex (Utf8_Dc64_bin_enc_hex): UTF-8 (Base64-encoded, DCE 3.01a+ encoding; with headers; hex-encoded)
    utf8_dc64_bin_hex (Utf8_Dc64_bin_hex): UTF-8 (Base64-encoded, DCE 3.01a+ encoding; hex-encoded)
    utf8_dc64_enc (Utf8_Dc64_enc): UTF-8 (Base64-encoded, ASCII Dc ID list; with headers)
  Text encodings:
    alphasmartneo (AlphaSmartNeo): AlphaSmart Neo encoding (has several variants)
    alphasmartneolowctluamac (AlphaSmartNeoLowCtlUaMac): AlphaSmart Neo, control low bytes, Ukraine (Mac)
    alphasmartneolowctluapc (AlphaSmartNeoLowCtlUaPc): AlphaSmart Neo, control low bytes, Ukraine (PC)
    alphasmartneolowctlus (AlphaSmartNeoLowCtlUs): AlphaSmart Neo, control low bytes, USA
    alphasmartneolowgruamac (AlphaSmartNeoLowGrUaMac): AlphaSmart Neo, graphical low bytes, Ukraine (Mac)
    alphasmartneolowgruapc (AlphaSmartNeoLowGrUaPc): AlphaSmart Neo, graphical low bytes, Ukraine (PC)
    alphasmartneolowgrus (AlphaSmartNeoLowGrUs): AlphaSmart Neo, graphical low bytes, USA
    ascii (Ascii): ASCII
    asciisafesubset (AsciiSafeSubset): Printable ASCII
    cp437 (Cp437): Code page 437 (CCSID 437)
    iso88591, latin1 (Iso88591): ISO 8859-1
    macroman (MacRoman): MacRoman
    utf8, txt, utf-8 (Utf8): UTF-8
    win1252, ansi (Win1252): Windows-1252 ("ANSI")
  Database & archive formats:
    cscarchive (CscArchive): Collective Toolbox csc archive (default: cscarchive2)
        cscarchive1 (CscArchive1): Collective Toolbox csc archive, version 1
        cscarchive2 (CscArchive2): Collective Toolbox csc archive, version 2
    cscjournal (CscJournal): Collective Toolbox csc journal

Supported output formats (--to):
  Document formats:
    csdl (Csdl): Comma-separated Dc list (long Dcs)
    ctbnbdl (CtbNodeBundle): Collective Toolbox Node Bundle (default: ctbnbdl2)
        ctbnbdl1 (CtbNodeBundle1): Collective Toolbox Node Bundle, version 1
        ctbnbdl2 (CtbNodeBundle2): Collective Toolbox Node Bundle, version 2
    ctbnodes (CtbNodes): Collective Toolbox graph nodes (shorthand text)
    dc_id_list (DcIdList): Dc ID list (ASCII)
    dcal (Dcal): Dc ASCII List (long Dcs)
    dce (Dce): DCE (automatic version selection)
    dce_3_01a (Dce_3_01a): DCE 3.01a
    dce_3_01a_raw (Dce_3_01a_raw): DCE 3.01a (raw)
    dce_3_0a (Dce_3_0a): DCE 3.0a
    dce_3_0a_raw (Dce_3_0a_raw): DCE 3.0a (raw)
    dce_hex_3_01a (Dce_3_01a_hex): DCE 3.01a (hex-encoded)
    dce_hex_3_01a_raw (Dce_3_01a_raw_hex): DCE 3.01a (raw hex-encoded)
    dce_hex_3_0a (Dce_3_0a_hex): DCE 3.0a (hex-encoded)
    dce_hex_3_0a_raw (Dce_3_0a_raw_hex): DCE 3.0a (raw hex-encoded)
    dcil (DcIntegerList): Dc Integer List (short Dcs)
    dcmm, dcmstr (DcMixed): Dc mixed mode (default: dcmm2)
        dcmm1 (DcMixed1): Dc mixed mode, version 1 (DcUtf)
        dcmm2 (DcMixed2): Dc mixed mode, version 2 (DcTF)
    dcsh (Dcsh): Dc shorthand ASCII list
    dctext (DcText): DcText
    dctf (DcTf): DcTF (Dc Transformation Format)
    dcts (Dcts): DcText short
    dcutf (DcUtf): DcUtf
    eitecolorcoded (EiteColorCoded): Color-coded HTML integer list
    elad, emd (Elad): EITE Language in ASCII documents (ELAD)
    hex_dce (DceHex): DCE (hex-encoded)
    html (Html): HTML
    html_l (HtmlLegacyCdce): HTML (legacy CDCE output)
    html_snippet_l (HtmlLegacyCdceSnippet): HTML (snippet) (legacy CDCE output)
    htmlfragment (HtmlFragment): HTML fragment
    legacy_cdce (CdceLegacy): CDCE (legacy)
    sems, selq (Sems): SEMS (short Dcs)
    utf8_dc64 (Utf8_Dc64): UTF-8 (Base64-encoded, ASCII Dc ID list)
    utf8_dc64_bin (Utf8_Dc64_bin): UTF-8 (Base64-encoded, DCE 3.01a+ encoding)
    utf8_dc64_bin_enc (Utf8_Dc64_bin_enc): UTF-8 (Base64-encoded, DCE 3.01a+ encoding; with headers)
    utf8_dc64_bin_enc_hex (Utf8_Dc64_bin_enc_hex): UTF-8 (Base64-encoded, DCE 3.01a+ encoding; with headers; hex-encoded)
    utf8_dc64_bin_hex (Utf8_Dc64_bin_hex): UTF-8 (Base64-encoded, DCE 3.01a+ encoding; hex-encoded)
    utf8_dc64_enc (Utf8_Dc64_enc): UTF-8 (Base64-encoded, ASCII Dc ID list; with headers)
  Text encodings:
    alphasmartneo (AlphaSmartNeo): AlphaSmart Neo encoding (has several variants)
    alphasmartneolowctluamac (AlphaSmartNeoLowCtlUaMac): AlphaSmart Neo, control low bytes, Ukraine (Mac)
    alphasmartneolowctluapc (AlphaSmartNeoLowCtlUaPc): AlphaSmart Neo, control low bytes, Ukraine (PC)
    alphasmartneolowctlus (AlphaSmartNeoLowCtlUs): AlphaSmart Neo, control low bytes, USA
    alphasmartneolowgruamac (AlphaSmartNeoLowGrUaMac): AlphaSmart Neo, graphical low bytes, Ukraine (Mac)
    alphasmartneolowgruapc (AlphaSmartNeoLowGrUaPc): AlphaSmart Neo, graphical low bytes, Ukraine (PC)
    alphasmartneolowgrus (AlphaSmartNeoLowGrUs): AlphaSmart Neo, graphical low bytes, USA
    ascii (Ascii): ASCII
    asciisafesubset (AsciiSafeSubset): Printable ASCII
    cp437 (Cp437): Code page 437 (CCSID 437)
    iso88591, latin1 (Iso88591): ISO 8859-1
    macroman (MacRoman): MacRoman
    utf8, txt, utf-8 (Utf8): UTF-8
    win1252, ansi (Win1252): Windows-1252 ("ANSI")
  Database & archive formats:
    cscarchive (CscArchive): Collective Toolbox csc archive (default: cscarchive2)
        cscarchive1 (CscArchive1): Collective Toolbox csc archive, version 1
        cscarchive2 (CscArchive2): Collective Toolbox csc archive, version 2
    cscjournal (CscJournal): Collective Toolbox csc journal

Supported transformations (--transform):
  Document transformations:
    add_system_graph_most_recent (AddSystemGraphMostRecent): Add global graph system block most recent
    codetotext (CodeToText): Programmatic Dcs to text
    semantictotext (SemanticToText): Semantic Dcs to text
    stagel3_to_wasm (StageL3ToWasm): StageL 3 Dcs to WASM
    stager3_to_stagel3 (StageR3ToStageL3): StageR 3 Dcs to StageL 3 Dcs
    unicode_to_short_dc (UnicodeToShortDc): Unicode characters to equivalent short Dcs

Examples:
  $ ctoolbox convert --from dcal --to dctext "65 1114408 2228304"
  $ ctoolbox convert -f input.dcal -o output.txt --to utf8
  $ ctoolbox convert --to dcts "hello world"
  $ ctoolbox convert --from ascii --to sems --transform unicode_to_short_dc "hello"
  $ ctoolbox convert -f input.cscjournal -o output.dcal --to dcal
  $ ctoolbox convert --from dcmm --permissive -f input.bin --to dctext

ctoolbox cp

Copy files or directories with an extra verification step (alias for `csc --delete-manifest-after`)

Usage: ctoolbox cp [OPTIONS] [PATHS]...

Arguments:
  [PATHS]...  Source path(s) and destination path. If resuming, paths are restored from the state file

Options:
      --resume <STATE_FILE>
          Path to a state file (.cscjournal or .cscdesc) from which to resume an interrupted run. When specified, source and destination paths should not be passed
      --journal-path <JOURNAL_PATH>
          Explicit path for the state journal file (.cscjournal)
      --state-dir <DIR>
          Directory in which to store state files (default: user's home folder)
  -v, --verbose
          Verbose output showing each file copied and verified
      --progress
          Display real-time progress indicators (default: enabled when standard error is connected to an interactive terminal)
      --no-progress
          Disable progress display unconditionally
      --recover-graph
          Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
      --verify-after
          Recalculate checksums after flushing OS caches (default: enabled)
      --no-verify-after
          Skip the post-flush verification pass
      --overwrite
          Authorize replacing existing entries and restoring directory metadata. Existing entries are refused by default, including during resume
      --on-source-change <ON_SOURCE_CHANGE>
          Behavior when a source file is modified during copy [default: error] [possible values: error, best-effort]
      --copy-specials-as-specials
          Recreate special files (FIFOs, device nodes) faithfully as special nodes. Default is to skip special files
      --copy-block-devices-as-regular-files
          Copy block devices by reading their data and creating regular files
      --copy-fifos-as-regular-files
          Copy FIFOs (named pipes) by reading their content and creating regular files
  -x, --one-file-system
          Stay on the current filesystem and do not cross mount boundaries
      --best-effort-metadata
          Relax strict metadata requirements when writing to target filesystem. Permits unprivileged copies (skips root-only chown/flags failures) and tolerates up to 2 seconds of timestamp precision loss (e.g. FAT/SMB)
      --allow-unknown-fs
          Allow operation even if the filesystem type cannot be detected
      --check-atime
          Explicitly check access time (atime) differences in post-copy verification
      --check-ctime
          Explicitly check status/metadata change time (ctime) differences in post-copy verification
      --check-birthtime
          Require birth-time equality even on platforms unable to restore it
      --strict
          Enforce strictest verification settings, enabling --check-atime and --check-ctime in post-copy verification
      --delete-manifest-after
          Delete state journal (.cscjournal) and descriptor (.cscdesc) upon successful completion
  -r, --recursive
          Recursive copy (default for csc; accepted for cp compatibility)
  -a, --archive
          Archive mode (preserves metadata, symlinks, and recurses; default for csc; accepted for cp compatibility)
  -n, --dry-run
          Perform a dry run without copying or modifying destination files
      --read-apple-double [<STYLE>]
          Read AppleDouble companion files and join them into file entities. Defaults to `alongside` style if passed without a style [possible values: alongside, zip, netatalk]
      --read-apple-double-alongside
          Read alongside (._<filename>) AppleDouble companion files
      --no-read-apple-double-alongside
          Disable reading alongside (._<filename>) AppleDouble companion files
      --read-apple-double-zip
          Read __MACOSX/ directory AppleDouble companion files
      --read-apple-double-netatalk
          Read Netatalk .AppleDouble companion files
      --read-apple-single
          Read AppleSingle files and decode data fork, resource fork, and Apple metadata
      --read-apple-single-without-extension
          Read bare AppleSingle files without extension (alias for --read-apple-single)
      --no-read-apple-single
          Disable reading bare AppleSingle files without extension
      --read-apple-single-with-extension <EXT>
          Read AppleSingle files with the specified extension ('as' or 'asf'), automatically stripping the extension upon successful decode. May be specified multiple times to support multiple extensions [possible values: without-extension, as, asf]
      --maybe-write-apple-double [<STYLE>]
          Write AppleDouble companion files if native filesystem streams or Apple metadata cannot be preserved. Defaults to `alongside` style if passed without a style [possible values: alongside, zip, netatalk]
      --force-write-apple-double [<STYLE>]
          Force writing AppleDouble companion files even if native streams are supported. Defaults to `alongside` style if passed without a style [possible values: alongside, zip, netatalk]
      --maybe-write-apple-single
          Write AppleSingle archive files if native filesystem streams or Apple metadata cannot be preserved
      --force-write-apple-single
          Force writing destination files as AppleSingle archives
      --write-apple-single-with-extension <EXT>
          Write AppleSingle archive files with specified extension: 'as' or 'asf' [possible values: without-extension, as, asf]
      --write-apple-single-without-extension
          Write AppleSingle archive files without extension (default)
      --read-windows-ads
          Read alongside `<filename>:<stream_name>` Windows alternate data stream companion files
      --no-read-windows-ads
          Disable reading alongside `<filename>:<stream_name>` Windows alternate data stream companion files
      --maybe-write-windows-ads
          Write alongside `<filename>:<stream_name>` Windows alternate data stream companion files if native streams cannot be preserved
      --force-write-windows-ads
          Force writing attached streams as alongside `<filename>:<stream_name>` Windows alternate data stream companion files
      --full-provenance
          Record full provenance environment information using slow environment detection (e.g. network discovery for public IP addresses and server time synchronization)
      --continue-on-error
          Continue copying remaining files when an item cannot be read, copied, or materialized. Errors are logged into the journal and descriptor instead of aborting the operation
      --allow-journal-errors
          Allow forgiving projection when reading state journals containing syntax or schema errors
  -h, --help
          Print help (see more with '--help')

ctoolbox csc

Checksummed copy with rsync-compatible path resolution and an extra verification step

Usage: ctoolbox csc [OPTIONS] [PATHS]...

Arguments:
  [PATHS]...  Source path(s) and destination path. If resuming, paths are restored from the state file

Options:
      --resume <STATE_FILE>
          Path to a state file (.cscjournal or .cscdesc) from which to resume an interrupted run. When specified, source and destination paths should not be passed
      --journal-path <JOURNAL_PATH>
          Explicit path for the state journal file (.cscjournal)
      --state-dir <DIR>
          Directory in which to store state files (default: user's home folder)
  -v, --verbose
          Verbose output showing each file copied and verified
      --progress
          Display real-time progress indicators (default: enabled when standard error is connected to an interactive terminal)
      --no-progress
          Disable progress display unconditionally
      --recover-graph
          Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
      --verify-after
          Recalculate checksums after flushing OS caches (default: enabled)
      --no-verify-after
          Skip the post-flush verification pass
      --overwrite
          Authorize replacing existing entries and restoring directory metadata. Existing entries are refused by default, including during resume
      --on-source-change <ON_SOURCE_CHANGE>
          Behavior when a source file is modified during copy [default: error] [possible values: error, best-effort]
      --copy-specials-as-specials
          Recreate special files (FIFOs, device nodes) faithfully as special nodes. Default is to skip special files
      --copy-block-devices-as-regular-files
          Copy block devices by reading their data and creating regular files
      --copy-fifos-as-regular-files
          Copy FIFOs (named pipes) by reading their content and creating regular files
  -x, --one-file-system
          Stay on the current filesystem and do not cross mount boundaries
      --best-effort-metadata
          Relax strict metadata requirements when writing to target filesystem. Permits unprivileged copies (skips root-only chown/flags failures) and tolerates up to 2 seconds of timestamp precision loss (e.g. FAT/SMB)
      --allow-unknown-fs
          Allow operation even if the filesystem type cannot be detected
      --check-atime
          Explicitly check access time (atime) differences in post-copy verification
      --check-ctime
          Explicitly check status/metadata change time (ctime) differences in post-copy verification
      --check-birthtime
          Require birth-time equality even on platforms unable to restore it
      --strict
          Enforce strictest verification settings, enabling --check-atime and --check-ctime in post-copy verification
      --delete-manifest-after
          Delete state journal (.cscjournal) and descriptor (.cscdesc) upon successful completion
  -r, --recursive
          Recursive copy (default for csc; accepted for cp compatibility)
  -a, --archive
          Archive mode (preserves metadata, symlinks, and recurses; default for csc; accepted for cp compatibility)
  -n, --dry-run
          Perform a dry run without copying or modifying destination files
      --read-apple-double [<STYLE>]
          Read AppleDouble companion files and join them into file entities. Defaults to `alongside` style if passed without a style [possible values: alongside, zip, netatalk]
      --read-apple-double-alongside
          Read alongside (._<filename>) AppleDouble companion files
      --no-read-apple-double-alongside
          Disable reading alongside (._<filename>) AppleDouble companion files
      --read-apple-double-zip
          Read __MACOSX/ directory AppleDouble companion files
      --read-apple-double-netatalk
          Read Netatalk .AppleDouble companion files
      --read-apple-single
          Read AppleSingle files and decode data fork, resource fork, and Apple metadata
      --read-apple-single-without-extension
          Read bare AppleSingle files without extension (alias for --read-apple-single)
      --no-read-apple-single
          Disable reading bare AppleSingle files without extension
      --read-apple-single-with-extension <EXT>
          Read AppleSingle files with the specified extension ('as' or 'asf'), automatically stripping the extension upon successful decode. May be specified multiple times to support multiple extensions [possible values: without-extension, as, asf]
      --maybe-write-apple-double [<STYLE>]
          Write AppleDouble companion files if native filesystem streams or Apple metadata cannot be preserved. Defaults to `alongside` style if passed without a style [possible values: alongside, zip, netatalk]
      --force-write-apple-double [<STYLE>]
          Force writing AppleDouble companion files even if native streams are supported. Defaults to `alongside` style if passed without a style [possible values: alongside, zip, netatalk]
      --maybe-write-apple-single
          Write AppleSingle archive files if native filesystem streams or Apple metadata cannot be preserved
      --force-write-apple-single
          Force writing destination files as AppleSingle archives
      --write-apple-single-with-extension <EXT>
          Write AppleSingle archive files with specified extension: 'as' or 'asf' [possible values: without-extension, as, asf]
      --write-apple-single-without-extension
          Write AppleSingle archive files without extension (default)
      --read-windows-ads
          Read alongside `<filename>:<stream_name>` Windows alternate data stream companion files
      --no-read-windows-ads
          Disable reading alongside `<filename>:<stream_name>` Windows alternate data stream companion files
      --maybe-write-windows-ads
          Write alongside `<filename>:<stream_name>` Windows alternate data stream companion files if native streams cannot be preserved
      --force-write-windows-ads
          Force writing attached streams as alongside `<filename>:<stream_name>` Windows alternate data stream companion files
      --full-provenance
          Record full provenance environment information using slow environment detection (e.g. network discovery for public IP addresses and server time synchronization)
      --continue-on-error
          Continue copying remaining files when an item cannot be read, copied, or materialized. Errors are logged into the journal and descriptor instead of aborting the operation
      --allow-journal-errors
          Allow forgiving projection when reading state journals containing syntax or schema errors
  -h, --help
          Print help (see more with '--help')

ctoolbox csc-diff

Compare two filesystem paths with the same verification strictness and logic as csc

Usage: ctoolbox csc-diff [OPTIONS] <PATH_A> <PATH_B>

Arguments:
  <PATH_A>  First path to compare (reference)
  <PATH_B>  Second path to compare (target)

Options:
      --no-drop-caches
          Skip dropping OS kernel caches and per-file cache eviction before reading
      --ignore-atime
          Ignore access time (atime) differences during verification (defaults to true)
      --check-atime
          Explicitly check access time (atime) differences during verification
      --ignore-mtime
          Ignore modification time (mtime) differences during verification
      --ignore-ctime
          Ignore status/metadata change time (ctime) differences (defaults to true as POSIX cannot set ctime)
      --check-ctime
          Explicitly enforce status/metadata change time (ctime) verification
      --check-birthtime
          Require birth-time equality even on platforms unable to restore it
      --recover-graph
          Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
      --ignore-owner
          Ignore ownership (UID and GID) differences
      --ignore-perms
          Ignore file mode / permission differences
      --ignore-flags
          Ignore semantic file flags differences
      --ignore-xattrs
          Ignore alternate data streams and extended attribute differences
      --ignore-untracked
          Do not report untracked extra files present on disk that are absent from manifest or reference tree
      --ignore <IGNORE>
          Comma-separated list of metadata fields to ignore (e.g. atime,mtime,owner,perms,flags,xattrs,untracked)
      --best-effort
          Verify in best-effort mode: tolerates timestamp precision differences up to 2 seconds and ignores ownership mismatches if running unprivileged
      --strict
          Enforce strictest verification settings, enabling --check-atime and --check-ctime
      --format <FORMAT>
          Output reporting format (`text` or `json`) [default: text] [possible values: text, json]
  -q, --quiet
          Only report discrepancies or errors, suppressing informational progress
  -v, --verbose
          Verbose output showing each file compared
  -x, --one-file-system
          Stay on the current filesystem and do not cross mount boundaries
      --read-apple-double [<STYLE>]
          Read AppleDouble companion files and join them into file entities. Defaults to `alongside` style if passed without a style [possible values: alongside, zip, netatalk]
      --read-apple-double-alongside
          Read alongside (._<filename>) AppleDouble companion files
      --no-read-apple-double-alongside
          Disable reading alongside (._<filename>) AppleDouble companion files
      --read-apple-double-zip
          Read __MACOSX/ directory AppleDouble companion files
      --read-apple-double-netatalk
          Read Netatalk .AppleDouble companion files
      --read-apple-single
          Read AppleSingle files and decode data fork, resource fork, and Apple metadata
      --read-apple-single-without-extension
          Read bare AppleSingle files without extension (alias for --read-apple-single)
      --no-read-apple-single
          Disable reading bare AppleSingle files without extension
      --read-apple-single-with-extension <EXT>
          Read AppleSingle files with the specified extension ('as' or 'asf') [possible values: without-extension, as, asf]
      --read-windows-ads
          Read alongside `<filename>:<stream_name>` Windows alternate data stream companion files
      --no-read-windows-ads
          Disable reading alongside `<filename>:<stream_name>` Windows alternate data stream companion files
      --full-provenance
          Record full provenance environment information using slow environment detection
  -h, --help
          Print help (see more with '--help')

ctoolbox csc-verify

Verify a directory against a manifest recorded by csc

Usage: ctoolbox csc-verify [OPTIONS] <MANIFEST> [DIRECTORY]

Arguments:
  <MANIFEST>   Path to the manifest file (.cscjournal, .cscdesc, or .cscarchive) or directory containing state files
  [DIRECTORY]  Target directory to verify. If omitted, uses the destination path recorded in the manifest. Specifying this allows verifying relocated folders or archives

Options:
      --dir <DIRECTORY>       Target directory to verify (alias for positional DIRECTORY)
      --no-drop-caches        Skip dropping OS kernel caches and per-file cache eviction before reading
      --ignore-atime          Ignore access time (atime) differences during verification (defaults to true)
      --check-atime           Explicitly check access time (atime) differences during verification
      --ignore-mtime          Ignore modification time (mtime) differences during verification
      --ignore-ctime          Ignore status/metadata change time (ctime) differences (defaults to true as POSIX cannot set ctime)
      --check-ctime           Explicitly enforce status/metadata change time (ctime) verification
      --recover-graph         Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
      --check-birthtime       Require birth-time equality even on platforms unable to restore it
      --ignore-owner          Ignore ownership (UID and GID) differences
      --ignore-perms          Ignore file mode / permission differences
      --ignore-flags          Ignore semantic file flags differences
      --ignore-xattrs         Ignore alternate data streams and extended attribute differences
      --ignore-untracked      Do not report untracked extra files present on disk that are absent from manifest or reference tree
      --ignore <IGNORE>       Comma-separated list of metadata fields to ignore (e.g. atime,mtime,owner,perms,flags,xattrs,untracked)
      --best-effort           Verify in best-effort mode: tolerates timestamp precision differences up to 2 seconds and ignores ownership mismatches if running unprivileged
      --strict                Enforce strictest verification settings, enabling --check-atime and --check-ctime
      --format <FORMAT>       Output reporting format (`text` or `json`) [default: text] [possible values: text, json]
  -q, --quiet                 Only report discrepancies or errors, suppressing informational progress
      --allow-incomplete      Allow verifying against a manifest that failed, was aborted, or has not completed verification
      --full-provenance       Record full provenance environment information using slow environment detection
      --allow-journal-errors  Allow forgiving projection when reading state journals containing syntax or schema errors
  -h, --help                  Print help (see more with '--help')

ctoolbox csum

Calculate checksum for a file or stdin

Usage: ctoolbox csum [OPTIONS] <ALGO> [FILE]

Arguments:
  <ALGO>  Hash algorithm type (`sha256`, `xxh32`, `xxh64`, `xxh3`, `xxh128`)
  [FILE]  Input file path (or - for stdin) [default: -]

Options:
      --prefix-0x      Prefix the output hex string with 0x
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

Supported hash algorithms:
  Fnv0_1024: FNV-0 hash, 1024 bits
  Fnv0_128: FNV-0 hash, 128 bits
  Fnv0_256: FNV-0 hash, 256 bits
  Fnv0_32: FNV-0 hash, 32 bits
  Fnv0_512: FNV-0 hash, 512 bits
  Fnv0_64: FNV-0 hash, 64 bits
  Fnv1_1024: FNV-1 hash, 1024 bits
  Fnv1_128: FNV-1 hash, 128 bits
  Fnv1_256: FNV-1 hash, 256 bits
  Fnv1_32: FNV-1 hash, 32 bits
  Fnv1_512: FNV-1 hash, 512 bits
  Fnv1_64: FNV-1 hash, 64 bits
  Fnv1a_1024: FNV-1a hash, 1024 bits
  Fnv1a_128: FNV-1a hash, 128 bits
  Fnv1a_256: FNV-1a hash, 256 bits
  Fnv1a_32: FNV-1a hash, 32 bits
  Fnv1a_512: FNV-1a hash, 512 bits
  Fnv1a_64: FNV-1a hash, 64 bits
  sha256, sha-256, sha2-256, sha2_256: SHA-256
  xxh128, xxhash128, xxhash3-128, xxhash3_128: xxHash3-128
  xxh3, xxhash3-64, xxhash3_64: xxHash3-64
  xxh32, xxhash32: xxHash32
  xxh64, xxhash64: xxHash64

ctoolbox ctb-asset-bundle-extract

Extract a ctoolbox asset bundle to a directory tree

Usage: ctoolbox ctb-asset-bundle-extract [OPTIONS] <BUNDLE_PATH> [OUTPUT_DIR]

Arguments:
  <BUNDLE_PATH>  Path to the `.rsrc` asset bundle
  [OUTPUT_DIR]   Output directory for the extracted assets. Defaults to the current directory. The bundle name will be appended as a subdirectory, such as extracting to a folder `test` will place the extracted files within `test/bundle_v3-extracted/`

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox ctb-dev-gz-sha256

Compress a tar file with the server's gzip settings and print its SHA256 hex (developer command)

Usage: ctoolbox ctb-dev-gz-sha256 [OPTIONS] <PATH>

Arguments:
  <PATH>  Path to the tar file

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox ctb-dev-key-create

Generate a signing keypair for `ctb-dev-sign`

Usage: ctoolbox ctb-dev-key-create [OPTIONS]

Options:
      --write          Write keys into local `pc_settings.json`
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help (see more with '--help')

ctoolbox ctb-dev-release-check

Verify an uploaded release: check signature and chunk hashes

Usage: ctoolbox ctb-dev-release-check [OPTIONS]

Options:
      --manifest <MANIFEST>      Path to the manifest file to verify. Defaults to `{storage_dir}/releases/ctb-{platform}-latest.json` if not specified
      --chunks-dir <CHUNKS_DIR>  Path to the chunks directory. Defaults to `{storage_dir}/releases/bh/` if not specified
      --platform <PLATFORM>      Target(s) to verify (e.g. `linux-x64,linux-x86,windows-x64,freebsd-x64`). May be specified multiple times or comma-separated; defaults to the current platform
      --recover-graph            Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                     Print help

ctoolbox ctb-dev-release-expire

Delete old release chunks and manifests to reclaim disk space

Usage: ctoolbox ctb-dev-release-expire [OPTIONS]

Options:
      --older-than <OLDER_THAN>      Only expire chunks from releases older than this many days. Defaults to 30 days if not specified [default: 30]
      --releases-dir <RELEASES_DIR>  Path to the releases directory. Defaults to `{storage_dir}/releases/` if not specified
      --recover-graph                Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                         Print help (see more with '--help')

ctoolbox ctb-dev-sign

Sign release artifacts for distribution (developer command)

Usage: ctoolbox ctb-dev-sign [OPTIONS]

Options:
      --input-dir <INPUT_DIR>    Directory containing release artifacts to sign. Defaults to ~/ctb_release/input if not specified
      --output-dir <OUTPUT_DIR>  Directory to write signed chunks and manifest. Defaults to ~/ctb_release/releases if not specified
      --platform <PLATFORM>      Target for this release (e.g. linux-x64, linux-x86, windows-x64, mac-x64, mac-arm64). Defaults to current platform if not specified
      --recover-graph            Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                     Print help

ctoolbox ctb-upgrade-canary

Internal: Post-upgrade canary validation

Usage: ctoolbox ctb-upgrade-canary [OPTIONS] --backup-path <BACKUP_PATH> --target-path <TARGET_PATH>

Options:
      --backup-path <BACKUP_PATH>  Path to the backup copy of the previous binary
      --target-path <TARGET_PATH>  Path to the installed binary location
      --port <PORT>                Optional port to restart ctoolbox with after successful validation
      --recover-graph              Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                       Print help (see more with '--help')

ctoolbox dceutils_php_to_csv

Convert PHP data file arrays to CSV files

Usage: ctoolbox dceutils_php_to_csv [OPTIONS] <PHP_FILE>

Arguments:
  <PHP_FILE>  Path to the PHP data file

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox dec2hex

Convert from decimal to hexadecimal

Usage: ctoolbox dec2hex [OPTIONS] <INPUT>...

Arguments:
  <INPUT>...  Input number(s) or string (supports quoted strings or multiple tokens)

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help (see more with '--help')

Padding & Chunking:
  -b, --bytes          Shortcut for byte-sized conversion: chunks numbers into byte units (`--limit 255 --pad`) and suppresses non-fatal warnings
      --no-pad         Disables zero-padding when using the `--bytes` shortcut
  -l, --limit <LIMIT>  Limit maximum value for number chunking. Input numbers longer than the digit width needed to represent this value will be split into chunks (e.g. limit 255 splits continuous hex into 2-digit byte chunks). Set to 0 to disable chunking [default: 0]
  -p, --pad            Zero-pad the left of each number to the full digit width determined by the `--limit` argument (e.g. 2 hex digits or 8 binary digits for 255). Requires `--limit` to be set
  -P, --pad-l <PAD_L>  Left-pad each number with leading zeros to at least this many digits. Set to 0 or 1 to disable fixed padding [default: 1]

Formatting & Delimiters:
      --prefix <PREFIX>        Prefix to prepend to each output number (e.g. "0x" for hexadecimal) [default: ""]
  -s, --separator <SEPARATOR>  Delimiter string inserted between separate output numbers [default: " "]
      --lowercase              Output letter digits in bases > 10 using lowercase letters instead of uppercase. Does not change case of non-digit characters

Input Parsing & Filtering:
      --parse-prefixes                 Recognize and strip standard radix prefixes (such as "0x", "0b", "0o") from input numbers
  -f, --filter-chars                   Filter out non-digit characters between numbers in the formatted output. If false, non-digit punctuation is echoed literally
  -c, --collapse-filtered              Ignore non-digit characters inline while parsing numbers, preventing them from splitting numbers (e.g. "`10_000`" parses as 10000)
      --collapse-only <COLLAPSE_ONLY>  Specific non-digit characters to collapse inline silently without emitting warnings (e.g. `--collapse-only "_"`) [default: []]

Numeral Systems & Alphabets:
      --input-alphabet <INPUT_ALPHABET>
          Alphabet to use for parsing input numbers. Bases > 36 (up to 64) require specifying an alphabet like `base64_standard` [default: standard] [possible values: standard, base64_standard]
      --output-alphabet <OUTPUT_ALPHABET>
          Alphabet to use for formatting output numbers. Bases > 36 (up to 64) require specifying an alphabet like `base64_standard` [default: standard] [possible values: standard, base64_standard]

Output Options:
  -q, --quiet  Suppress non-fatal warning messages

Examples:
  $ ctoolbox dec2hex 255 128 64
  ff 80 40

  $ ctoolbox dec2hex --prefix "0x" 10 20 30
  0xa 0x14 0x1e

  $ ctoolbox dec2hex --bytes 255 16
  ff 10

Continuous Hex vs. Byte Streams:
  Continuous hex strings (e.g. "deadbeef") are parsed as a single large scalar
  integer (3735928559). Pass `--bytes` to chunk them into individual byte values (0..=255).

Note on Stdin:
  This command expects arguments and does not read standard input (stdin).

ctoolbox decompress

Decompress a compressed file or stdin

Usage: ctoolbox decompress [OPTIONS] [FORMAT] [FILE]

Arguments:
  [FORMAT]  Optional compression format (e.g. `br`, `gz`, `deflate`, `zlib`). If omitted, detected from file extension or magic bytes
  [FILE]    Input file path (or - for stdin) [default: -]

Options:
  -o, --output <OUTPUT>  Output file path or - for stdout. Defaults to stdout when input is stdin, or strips the compression extension (or appends `.decompressed` if none recognized) when decompressing a file
      --force            Force overwrite of existing destination file without confirmation
      --recover-graph    Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help             Print help

Supported compression formats:
  br, brotli: Brotli compressed stream (RFC 9841)
  bz, bzip: Original bzip compression
  bz2, bzip2: Bzip2 compressed stream
  compact: `compact` (McMaster Adaptive Huffman)
  compress: `compress` format, modern LZW block format
  compress-h, compress-sco, sco-compress: `compress`: SCO `compress -H` format (LZH)
  compress1, compress-1: `compress` 1.0 (LZW headerless format)
  compress16, compress1.6, compress-1.6: `compress` 1.6 (LZW sorted chain format)
  compress2, compress-2: `compress` 2.0 (LZW non-block format)
  deflate, raw-deflate: Raw DEFLATE compressed stream (RFC 1951)
  gz, gzip: GNU gzip format (RFC 1952)
  lz, lzip: Lzip compression
  lz4: LZ4
  lzma: LZMA (Lempel–Ziv–Markov chain algorithm)
  lzma2: LZMA container format
  lzo: LZO (Lempel-Ziv-Oberhumer)
  melt, freeze, freeze2: freeze: Freeze 2.X format (LZSS + Dynamic Huffman)
  melt1, freeze1, freeze-1: freeze: Freeze 1.0 format (LZSS + Dynamic Huffman)
  oldpack, old-pack, early-pack: `pack` format, early PDP-11 Unix binary tree
  pack: `pack` format, common version (Huffman)
  rz, rzip: rzip: rzip format (long range chunk matching + bzip2)
  szip: szip (Michael Schindler)
  szip111, szip-1.11: szip (Michael Schindler) version 1.11+
  xz: XZ compression
  zl, zz, zlib, zlib-deflate: Zlib-wrapped DEFLATE stream (RFC 1950)
  zst, zstd: Zstandard compression

ctoolbox explain-ctbnodes

Render a .ctbnodes ledger file with synthesized human-readable explanation comments

Usage: ctoolbox explain-ctbnodes [OPTIONS] <FILE>

Arguments:
  <FILE>  Path to the input `.ctbnodes` file (or `-` to read from standard input)

Options:
  -o, --output <OUTPUT>        Optional output file path (writes to standard output if omitted)
      --graph-dir <GRAPH_DIR>  Optional system graph directory (`assets/data/graph`) for resolving node labels
      --recover-graph          Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                   Print help

Examples:
  $ ctoolbox explain-ctbnodes assets/data/graph/85899_34592.ctbnodes
  $ ctoolbox explain-ctbnodes assets/data/graph/85900_04692.ctbnodes -o explained.ctbnodes

ctoolbox file

Detect format, MIME type, and characteristics of files (like `file`)

Usage: ctoolbox file [OPTIONS] [FILE]...

Arguments:
  [FILE]...  Files to inspect and detect format for (pass '-' for stdin) [default: -]

Options:
      --compat                       Produce output strictly compatible with the standard UNIX `file` command
  -i, --mime                         Output MIME type string instead of human-readable description (like `file -i`)
  -b, --brief                        Do not prepend filenames to output lines (like `file -b`)
  -k, --all                          Keep going: display all candidate matches rather than only the top candidate (only used with --compat)
  -z, --uncompress                   Try to look inside compressed files (like `file -z`)
  -Z, --uncompress-noreport          Try to look inside compressed files, but do not report the compression format (like `file -Z`)
      --max-decompression-depth <N>  Maximum number of nested decompression layers to inspect (0 disables decompression inspection) [default: 3]
      --recover-graph                Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                         Print help

ctoolbox file2metadatajson

Read a file and export comprehensive metadata from io/file to JSON

Usage: ctoolbox file2metadatajson [OPTIONS] <FILE>

Arguments:
  <FILE>  Input file path to inspect

Options:
      --body           Include file body content (base64-encoded) in JSON
      --no-streams     Omit extended attributes, resource forks, and alternate streams
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox fsearch

Fast indexed search against a .cscindex.sqlite database

Usage: ctoolbox fsearch [OPTIONS] <DATABASE> [QUERY]...

Arguments:
  <DATABASE>  Path to the *.cscindex.sqlite database file
  [QUERY]...  Search pattern or terms (matched as glob if contains '*', substring if single term, or keyword search if multiple terms)

Options:
      --regex-path <REGEX_PATH>
          Regular expression pattern to match against path and filename (shorthand: -rp, --rp). Does not require delimiters [aliases: --rp]
      --regex-text <REGEX_TEXT>
          Regular expression pattern to match against path, filename, and full text content (shorthand: -rt, --rt). Does not require delimiters [aliases: --rt]
      --regex-name <REGEX_NAME>
          Regular expression pattern to match against filename only (shorthand: -rn, --rn). Does not require delimiters [aliases: --rn]
      --glob-path <GLOB_PATH>
          Glob pattern to match against relative path and filename (shorthand: -gp, --gp) [aliases: --gp]
      --glob-text <GLOB_TEXT>
          Glob pattern to match against relative path, filename, and full text content (shorthand: -gt, --gt) [aliases: --gt]
      --glob-name <GLOB_NAME>
          Glob pattern to match against filename only (shorthand: -gn, --gn) [aliases: --gn]
      --keyword-path <KEYWORD_PATH>
          Keyword match across relative path and filename (shorthand: -kp, --kp) [aliases: --kp]
      --recover-graph
          Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
      --keyword-text <KEYWORD_TEXT>
          Keyword match across relative path, filename, and full text content (shorthand: -kt, --kt) [aliases: --kt]
      --keyword-name <KEYWORD_NAME>
          Keyword match on filename only (shorthand: -kn, --kn) [aliases: --kn]
      --substring-path <SUBSTRING_PATH>
          Substring pattern to match against relative path and filename (shorthand: -sp, --sp) [aliases: --sp]
      --substring-text <SUBSTRING_TEXT>
          Substring pattern to match against relative path, filename, and full text content (shorthand: -st, --st) [aliases: --st]
      --substring-name <SUBSTRING_NAME>
          Substring pattern to match against filename only (shorthand: -sn, --sn) [aliases: --sn]
  -C, --context <CONTEXT>
          Print n lines around first match of full text
  -n, --name <NAME_GLOB>
          Glob pattern to match against filename (e.g. "*.rs", "*test*"). Legacy alias for --glob-name
  -p, --path <PATH_GLOB>
          Glob pattern to match against relative path (e.g. "src/**/tests.rs"). Alias for --glob-path
  -k, --keyword <KEYWORD>...
          One or more keyword terms to match in path or filename. Alias for --keyword-path
  -r, --regex <REGEX>
          Regular expression pattern to match against path (alias for --regex-path). Does not require delimiters
  -s, --source <SOURCE>
          Filter by source name tag
      --mtime-after <MTIME_AFTER>
          Filter entries modified on or after this Unix timestamp or relative duration (e.g. "1725600000", "7d", "24h")
      --mtime-before <MTIME_BEFORE>
          Filter entries modified on or before this Unix timestamp or relative duration
      --ctime-after <CTIME_AFTER>
          Filter entries changed on or after this Unix timestamp or relative duration
      --ctime-before <CTIME_BEFORE>
          Filter entries changed on or before this Unix timestamp or relative duration
      --size-min <SIZE_MIN>
          Minimum file size in bytes (or suffix like 10k, 5M, 1G)
      --size-max <SIZE_MAX>
          Maximum file size in bytes (or suffix like 10k, 5M, 1G)
  -t, --type <ENTRY_TYPE>
          Filter by entity type ('f' or 'file', 'd' or 'dir', 'l' or 'symlink')
      --sort <SORT>
          Field to sort results by [default: path] [possible values: path, name, mtime, ctime, size]
      --desc
          Sort in descending order
  -l, --limit <LIMIT>
          Maximum number of search results to return
      --format <FORMAT>
          Output formatting mode (`path`, `long`, or `json`) [default: path] [possible values: path, long, json]
      --password-file <FILE>
          Read password from the specified file when querying an encrypted index
      --password-stdin
          Read password from standard input when querying an encrypted index
  -h, --help
          Print help (see more with '--help')

ctoolbox fsindex

Index a directory or csc manifest for quick searching

Usage: ctoolbox fsindex [OPTIONS] [PATH]...

Arguments:
  [PATH]...  Target directory or .cscjournal file(s) to index

Options:
  -d, --db <DATABASE>                Target database path (*.cscindex.sqlite). If the database exists, new journals will be appended (appended)
      --journal-path <JOURNAL_PATH>  Explicit path for the state journal file (.cscjournal)
      --flush-deleted                Flush deleted files that no longer exist on disk from the database index
  -s, --source-name <SOURCE_NAME>    Override the source name tag stored in the database (default: journal basename without extension)
      --resume                       Resume an interrupted directory indexing session from an existing journal
      --resume-journal <JOURNAL>     Explicit path to a journal file when resuming
      --checksum                     Compute cryptographic SHA-256 digests for file contents (slow on large filesystems; default is metadata-only)
      --recover-graph                Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
      --journal-only                 Only generate the *.cscjournal file; do not compile into SQLite database
      --batch-size <BATCH_SIZE>      Number of entries to commit per transaction batch during traversal and ingestion [default: 500]
  -q, --quiet                        Suppress progress output
  -x, --one-file-system              Stay on the current filesystem and do not cross mount boundaries
      --fulltext                     Extract and index file contents for full-text search
      --fulltext-max <SIZE>          Maximum file size to extract for full-text indexing (e.g. "20k", "64k", "1M"). Defaults to 20k [default: 20k]
      --encrypt                      Password-protect the SQLite index using Turso native page-level encryption (aegis256) and store metadata in *.cscidxmeta
      --password-file <FILE>         Read password from the specified file instead of prompting
      --password-stdin               Read password from standard input instead of prompting
      --full-provenance              Record full provenance environment information using slow environment detection (e.g. network discovery for public IP addresses and server time synchronization)
      --allow-journal-errors         Allow forgiving projection when reading state journals containing syntax or schema errors
  -h, --help                         Print help

ctoolbox gdb_instructions_generate

Generate GDB instructions from symbols

Usage: ctoolbox gdb_instructions_generate [OPTIONS]

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox gid

Convert Global Graph ID to short representation or show full metadata

Usage: ctoolbox gid [OPTIONS] <ID>

Arguments:
  <ID>  Global graph ID or prefixed short ID (e.g. 1114408, dc:296, fmt:80, uni:1234)

Options:
  -s, --short          Output short prefix format (e.g. dc:296, fmt:80, uni:1234, gid:23234234)
  -i, --info           Show full metadata for the Global Graph ID
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

Examples:
  $ ctoolbox gid --s 1114408
  dc:296

  $ ctoolbox gid -i 1114408

ctoolbox hex2bin

Convert a hexadecimal string to binary data

Usage: ctoolbox hex2bin [OPTIONS] [VALUE]

Arguments:
  [VALUE]  Hexadecimal string. If not provided, reads from stdin or file

Options:
  -f, --file <FILE>      Input file path (or - for stdin)
  -o, --output <OUTPUT>  Output file path (or - for stdout)
      --recover-graph    Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help             Print help

Examples:
  $ ctoolbox hex2bin "48656c6c6f"
  Hello

  $ echo "48 65 6c 6c 6f" | ctoolbox hex2bin
  Hello

  $ ctoolbox hex2bin -f file.hex -o file.bin
  $ ctoolbox hex2bin "48656c6c6f" > output.bin

ctoolbox hex2dec

Convert from hexadecimal to decimal

Usage: ctoolbox hex2dec [OPTIONS] <INPUT>...

Arguments:
  <INPUT>...  Input number(s) or string (supports quoted strings or multiple tokens)

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help (see more with '--help')

Padding & Chunking:
  -b, --bytes          Shortcut for byte-sized conversion: chunks numbers into byte units (`--limit 255 --pad`) and suppresses non-fatal warnings
      --no-pad         Disables zero-padding when using the `--bytes` shortcut
  -l, --limit <LIMIT>  Limit maximum value for number chunking. Input numbers longer than the digit width needed to represent this value will be split into chunks (e.g. limit 255 splits continuous hex into 2-digit byte chunks). Set to 0 to disable chunking [default: 0]
  -p, --pad            Zero-pad the left of each number to the full digit width determined by the `--limit` argument (e.g. 2 hex digits or 8 binary digits for 255). Requires `--limit` to be set
  -P, --pad-l <PAD_L>  Left-pad each number with leading zeros to at least this many digits. Set to 0 or 1 to disable fixed padding [default: 1]

Formatting & Delimiters:
      --prefix <PREFIX>        Prefix to prepend to each output number (e.g. "0x" for hexadecimal) [default: ""]
  -s, --separator <SEPARATOR>  Delimiter string inserted between separate output numbers [default: " "]
      --lowercase              Output letter digits in bases > 10 using lowercase letters instead of uppercase. Does not change case of non-digit characters

Input Parsing & Filtering:
      --parse-prefixes                 Recognize and strip standard radix prefixes (such as "0x", "0b", "0o") from input numbers
  -f, --filter-chars                   Filter out non-digit characters between numbers in the formatted output. If false, non-digit punctuation is echoed literally
  -c, --collapse-filtered              Ignore non-digit characters inline while parsing numbers, preventing them from splitting numbers (e.g. "`10_000`" parses as 10000)
      --collapse-only <COLLAPSE_ONLY>  Specific non-digit characters to collapse inline silently without emitting warnings (e.g. `--collapse-only "_"`) [default: []]

Numeral Systems & Alphabets:
      --input-alphabet <INPUT_ALPHABET>
          Alphabet to use for parsing input numbers. Bases > 36 (up to 64) require specifying an alphabet like `base64_standard` [default: standard] [possible values: standard, base64_standard]
      --output-alphabet <OUTPUT_ALPHABET>
          Alphabet to use for formatting output numbers. Bases > 36 (up to 64) require specifying an alphabet like `base64_standard` [default: standard] [possible values: standard, base64_standard]

Output Options:
  -q, --quiet  Suppress non-fatal warning messages

Examples:
  $ ctoolbox hex2dec 1A 2B 3C
  26 43 60

  $ ctoolbox hex2dec "0x1A 0x2B"
  26 43

  $ ctoolbox hex2dec -s ", " FF 80 00
  255, 128, 0

  $ ctoolbox hex2dec deadbeef
  3735928559

  $ ctoolbox hex2dec --bytes deadbeef
  222 173 190 239

Continuous Hex vs. Byte Streams:
  Continuous hex strings (e.g. "deadbeef") are parsed as a single large scalar
  integer (3735928559). Pass `--bytes` to chunk them into individual byte values (0..=255).

Note on Stdin:
  This command expects arguments and does not read standard input (stdin).

ctoolbox hexdump

Format binary data as a hex dump (fancy by default, or --plain / --xxd)

Usage: ctoolbox hexdump [OPTIONS] [VALUE]

Arguments:
  [VALUE]  Data to dump. If not provided, reads from stdin or file

Options:
  -f, --file <FILE>      Input file path (or - for stdin)
  -o, --output <OUTPUT>  Output file path (or - for stdout)
      --plain            Output in plain (classic) hex dump format
      --xxd              Output in xxd hex dump format
      --recover-graph    Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help             Print help

Examples:
  $ ctoolbox hexdump "Hello"
  $ ctoolbox hd -f file.bin
  $ ctoolbox hexdump --plain "Hello"
  $ ctoolbox hexdump --xxd "Hello"

ctoolbox hexfmt

Reformat hexadecimal number strings (delimiters, prefixes, case, padding)

Usage: ctoolbox hexfmt [OPTIONS] <INPUT>...

Arguments:
  <INPUT>...  Input number(s) or string (supports quoted strings or multiple tokens)

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help (see more with '--help')

Padding & Chunking:
  -b, --bytes          Shortcut for byte-sized conversion: chunks numbers into byte units (`--limit 255 --pad`) and suppresses non-fatal warnings
      --no-pad         Disables zero-padding when using the `--bytes` shortcut
  -l, --limit <LIMIT>  Limit maximum value for number chunking. Input numbers longer than the digit width needed to represent this value will be split into chunks (e.g. limit 255 splits continuous hex into 2-digit byte chunks). Set to 0 to disable chunking [default: 0]
  -p, --pad            Zero-pad the left of each number to the full digit width determined by the `--limit` argument (e.g. 2 hex digits or 8 binary digits for 255). Requires `--limit` to be set
  -P, --pad-l <PAD_L>  Left-pad each number with leading zeros to at least this many digits. Set to 0 or 1 to disable fixed padding [default: 1]

Formatting & Delimiters:
      --prefix <PREFIX>        Prefix to prepend to each output number (e.g. "0x" for hexadecimal) [default: ""]
  -s, --separator <SEPARATOR>  Delimiter string inserted between separate output numbers [default: " "]
      --lowercase              Output letter digits in bases > 10 using lowercase letters instead of uppercase. Does not change case of non-digit characters

Input Parsing & Filtering:
      --parse-prefixes                 Recognize and strip standard radix prefixes (such as "0x", "0b", "0o") from input numbers
  -f, --filter-chars                   Filter out non-digit characters between numbers in the formatted output. If false, non-digit punctuation is echoed literally
  -c, --collapse-filtered              Ignore non-digit characters inline while parsing numbers, preventing them from splitting numbers (e.g. "`10_000`" parses as 10000)
      --collapse-only <COLLAPSE_ONLY>  Specific non-digit characters to collapse inline silently without emitting warnings (e.g. `--collapse-only "_"`) [default: []]

Numeral Systems & Alphabets:
      --input-alphabet <INPUT_ALPHABET>
          Alphabet to use for parsing input numbers. Bases > 36 (up to 64) require specifying an alphabet like `base64_standard` [default: standard] [possible values: standard, base64_standard]
      --output-alphabet <OUTPUT_ALPHABET>
          Alphabet to use for formatting output numbers. Bases > 36 (up to 64) require specifying an alphabet like `base64_standard` [default: standard] [possible values: standard, base64_standard]

Output Options:
  -q, --quiet  Suppress non-fatal warning messages

Examples:
  $ ctoolbox hexfmt 1a 2b 3c 4d
  1a 2b 3c 4d

  $ ctoolbox hexfmt -s ", " 1a 2b 3c 4d
  1a, 2b, 3c, 4d

  $ ctoolbox hexfmt --prefix "0x" 1a 2b
  0x1a 0x2b

  $ ctoolbox hexfmt --bytes "deadbeef"
  de ad be ef

Note on Hexdumps vs. Number Formatting:
  This tool reformats hexadecimal numbers. To inspect or format raw binary
  data or files as hexdumps, use `ctoolbox hexdump` (or `xxd`).

Note on Stdin:
  This command expects arguments and does not read standard input (stdin).

ctoolbox ia

Internet Archive utilities

Usage: ctoolbox ia [OPTIONS] <COMMAND>

Commands:
  verify            Verify a local Internet Archive item directory against its files XML
  sha1              Print the expected sha1 for a file in an Internet Archive item
  md5               Print the expected md5 for a file in an Internet Archive item
  contains          Check whether an item contains a particular file
  listplain         List item files one per line
  metadata          Fetch live item metadata as pretty JSON
  filesxml          Fetch the live `_files.xml` document
  metaxml           Fetch the live `_meta.xml` document
  download          Download an item or file from archive.org (resuming partial `.part` files)
  downloadAsStream  Download a single file and write it to stdout
  downloadHere      Download a single file into the current directory (resuming partial `.part` files)
  checkeddl         Download an item or file (resuming partial `.part` files), then verify checksums

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox ia checkeddl

Download an item or file (resuming partial `.part` files), then verify checksums

Usage: ctoolbox ia checkeddl [OPTIONS] <TARGET>

Arguments:
  <TARGET>  An item identifier, item/file path, or archive.org download URL

Options:
      --output-dir <OUTPUT_DIR>  Destination directory. Defaults to the current directory
      --original                 Only download and verify files with source="original"
      --progress                 Show progress during download
      --no-progress              Suppress progress during download
      --recover-graph            Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                     Print help

ctoolbox ia contains

Check whether an item contains a particular file

Usage: ctoolbox ia contains [OPTIONS] <TARGET> <DESIRED_FILE>

Arguments:
  <TARGET>        An item identifier, item/file path, or archive.org URL
  <DESIRED_FILE>  File path inside the item to check for

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox ia download

Download an item or file from archive.org (resuming partial `.part` files)

Usage: ctoolbox ia download [OPTIONS] <TARGET>

Arguments:
  <TARGET>  An item identifier, item/file path, or archive.org download URL

Options:
      --output-dir <OUTPUT_DIR>  Destination directory. Defaults to the current directory
      --original                 Only download files with source="original"
      --progress                 Show progress during download
      --no-progress              Suppress progress during download
      --recover-graph            Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                     Print help

ctoolbox ia downloadAsStream

Download a single file and write it to stdout

Usage: ctoolbox ia downloadAsStream [OPTIONS] <TARGET>

Arguments:
  <TARGET>  An item/file path or archive.org download URL

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox ia downloadHere

Download a single file into the current directory (resuming partial `.part` files)

Usage: ctoolbox ia downloadHere [OPTIONS] <TARGET>

Arguments:
  <TARGET>  An item/file path or archive.org download URL

Options:
      --output-dir <OUTPUT_DIR>  Destination directory. Defaults to the current directory
      --progress                 Show progress during download
      --no-progress              Suppress progress during download
      --recover-graph            Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                     Print help

ctoolbox ia filesxml

Fetch the live `_files.xml` document

Usage: ctoolbox ia filesxml [OPTIONS] <TARGET>

Arguments:
  <TARGET>  An item identifier or archive.org URL

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox ia listplain

List item files one per line

Usage: ctoolbox ia listplain [OPTIONS] <TARGET>

Arguments:
  <TARGET>  An item identifier or archive.org URL

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox ia md5

Print the expected md5 for a file in an Internet Archive item

Usage: ctoolbox ia md5 [OPTIONS] <TARGET>

Arguments:
  <TARGET>  A local file path, item/file path, or archive.org download URL

Options:
      --identifier <IDENTIFIER>  Override the identifier if it cannot be inferred from the path
      --check-live               Fetch live metadata instead of reading a local files XML
      --recover-graph            Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                     Print help

ctoolbox ia metadata

Fetch live item metadata as pretty JSON

Usage: ctoolbox ia metadata [OPTIONS] <TARGET>

Arguments:
  <TARGET>  An item identifier or archive.org URL

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox ia metaxml

Fetch the live `_meta.xml` document

Usage: ctoolbox ia metaxml [OPTIONS] <TARGET>

Arguments:
  <TARGET>  An item identifier or archive.org URL

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox ia sha1

Print the expected sha1 for a file in an Internet Archive item

Usage: ctoolbox ia sha1 [OPTIONS] <TARGET>

Arguments:
  <TARGET>  A local file path, item/file path, or archive.org download URL

Options:
      --identifier <IDENTIFIER>  Override the identifier if it cannot be inferred from the path
      --check-live               Fetch live metadata instead of reading a local files XML
      --recover-graph            Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                     Print help

ctoolbox ia verify

Verify a local Internet Archive item directory against its files XML

Usage: ctoolbox ia verify [OPTIONS] [ITEM_PATH]

Arguments:
  [ITEM_PATH]  Path to the item directory, or omit to use the current directory

Options:
      --identifier <IDENTIFIER>  Override the identifier if it cannot be inferred from the path
      --check-live               Fetch the current files XML from archive.org instead of using a local copy
      --original                 Only verify files with source="original"
      --recover-graph            Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                     Print help

ctoolbox install

Launch the installer GUI (or TUI if --no-gui)

Usage: ctoolbox install [OPTIONS]

Options:
      --no-gui         Use text-mode installer instead of GUI
      --unattended     Run in unattended mode with default options (implies --no-gui)
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help (see more with '--help')

ctoolbox jq

Lightweight JQ implementation

Usage: ctoolbox jq [OPTIONS] <QUERY> [FILE]

Arguments:
  <QUERY>  The JQ query string
  [FILE]   Optional path to the JSON file, or - for stdin

Options:
  -r, --raw-output     Use raw output (no quotes around strings)
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox js-lint

Lint JavaScript and TypeScript sources

Usage: ctoolbox js-lint [OPTIONS] [FILES]...
       ctoolbox js-lint <COMMAND>

Commands:
  rules  
  run    

Arguments:
  [FILES]...  Set the input file to use

Options:
      --rule <RULE_CODE>  Run a certain rule
      --config <CONFIG>   Load config from file
      --format <FORMAT>   Configure output format [default: pretty] [possible values: compact, pretty]
      --recover-graph     Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help              Print help

ctoolbox js-lint rules

Usage: ctoolbox js-lint rules [OPTIONS] [RULE_NAME]

Arguments:
  [RULE_NAME]  Show detailed information about rule. If omitted, show the list of all rules

Options:
      --json           
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox js-lint run

Usage: ctoolbox js-lint run [OPTIONS] [FILES]...

Arguments:
  [FILES]...  Set the input file to use

Options:
      --rule <RULE_CODE>  Run a certain rule
      --config <CONFIG>   Load config from file
      --format <FORMAT>   Configure output format [default: pretty] [possible values: compact, pretty]
      --recover-graph     Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help              Print help

ctoolbox js-test

Run JavaScript tests

Usage: ctoolbox js-test [OPTIONS] <FOLDER>

Arguments:
  <FOLDER>  Folder containing JavaScript tests

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox json-escape

Escape a string to be a valid JSON string value (enclosed in double quotes)

Usage: ctoolbox json-escape [OPTIONS] [VALUE]

Arguments:
  [VALUE]  The string to escape. If not provided, reads from stdin

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox make-offline-installer

Download and package the latest offline installer bundle

Usage: ctoolbox make-offline-installer [OPTIONS] <OUTPUT>

Arguments:
  <OUTPUT>  Output path for the generated bundle

Options:
      --platform <PLATFORM>      Target platform to fetch. Defaults to the current platform
      --version <VERSION>        Release version to fetch. Defaults to latest
      --server-url <SERVER_URL>  URL of the update server. Defaults to the configured server URL
      --recover-graph            Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                     Print help

ctoolbox metadatajson2file

Read file metadata JSON and rematerialize the file to the given path

Usage: ctoolbox metadatajson2file [OPTIONS] <METADATA_FILE> <PATH>

Arguments:
  <METADATA_FILE>  Path to metadata JSON file (or - for stdin)
  <PATH>           Destination path to rematerialize the file to

Options:
      --overwrite                  Overwrite existing destination file or directory metadata
      --copy-specials-as-specials  Permit creating special files (FIFOs, character/block devices)
      --best-effort-metadata       Proceed best-effort if destination filesystem cannot reproduce all metadata
      --recover-graph              Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                       Print help

ctoolbox mv

Move files or directories without copying when possible, or run verified cross-device copy

Usage: ctoolbox mv [OPTIONS] [PATHS] [PATHS]...

Arguments:
  [PATHS] [PATHS]...  Source path(s) followed by target destination path

Options:
      --resume <STATE_FILE>          Path to a state file (.cscjournal or .cscdesc) from which to resume an interrupted move
      --journal-path <JOURNAL_PATH>  Explicit path for the state journal file (.cscjournal)
      --state-dir <DIR>              Directory in which to store state files when cross-device copy occurs
  -v, --verbose                      Enable verbose diagnostic output
      --progress                     Display real-time progress indicators (default: enabled when standard error is connected to an interactive terminal)
      --no-progress                  Disable progress display unconditionally
      --recover-graph                Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
      --verify-after                 Recalculate checksums after flushing OS caches when cross-device copy occurs (default: enabled)
      --no-verify-after              Skip the post-flush verification pass on cross-device moves
      --best-effort-metadata         Relax strict metadata requirements when cross-device copy occurs
      --allow-unknown-fs             Allow operation even if the filesystem type cannot be detected
  -f, --force                        Force overwrite destination without prompt (accepted for mv compatibility)
  -n, --dry-run                      Perform a dry run without moving or deleting files
      --full-provenance              Record full provenance environment information using slow environment detection when falling back to verified copy
  -h, --help                         Print help

ctoolbox pan2csv

Convert a .pan file to CSV format (writes to stdout)

Usage: ctoolbox pan2csv [OPTIONS] <PAN_FILE>

Arguments:
  <PAN_FILE>  Input PAN file path

Options:
  -p, --patterns                   Format data using Panorama output patterns (also strips subsequent lines of text fields by default)
      --keep-multiline             When formatting with patterns, keep full multiline text strings instead of truncating at first newline
      --header <HEADER>            Include CSV header row with field names (default: true) [default: true] [possible values: true, false]
      --no-header                  Do not include CSV header row (alias for --header=false)
  -d, --delimiter <DELIMITER>      Export delimiter / format: commas (default), tabs, tabs-no-quotes, wordperfect [default: commas]
      --encoding <ENCODING>        Output character encoding (utf8, mac, windows) [default: utf8]
      --crlf                       Line terminator: crlf (\r\n) or lf (\n)
      --recover-graph              Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
      --replicate-double-encoding  Replicate export inconsistencies and legacy double-encoding behavior
      --run-startup-procedure      Run the startup procedure (.Initialize) before exporting CSV
  -h, --help                       Print help

ctoolbox pan2macro

Extract a macro/procedure from a .pan file (writes to stdout)

Usage: ctoolbox pan2macro [OPTIONS] <PAN_FILE> <MACRO_NAME>

Arguments:
  <PAN_FILE>    Input PAN file path
  <MACRO_NAME>  Name of the macro/procedure to extract

Options:
      --encoding <ENCODING>  Output character encoding (mac, windows, utf8) [default: windows]
      --recover-graph        Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                 Print help

ctoolbox pan2parsejson

Convert a .pan file to JSON of parse (writes to stdout)

Usage: ctoolbox pan2parsejson [OPTIONS] <PAN_FILE>

Arguments:
  <PAN_FILE>  Input PAN file path

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox pan2procedures

Export procedures from a .pan file into a directory of individual procedure files

Usage: ctoolbox pan2procedures [OPTIONS] <PAN_FILE>

Arguments:
  <PAN_FILE>  Input PAN file path

Options:
  -o, --output-dir <OUTPUT_DIR>  Optional output directory (defaults to <`pan_stem`>_procedures)
  -e, --extension <EXTENSION>    Optional procedure file extension (e.g. "estes", defaults to no extension)
      --encoding <ENCODING>      Output character encoding (utf8, mac, windows) [default: utf8]
      --recover-graph            Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                     Print help

ctoolbox panmacro2ast

Parse a macro/procedure into AST JSON from a macro code file (or whole .pan database if `macro_name` is provided) and write to stdout

Usage: ctoolbox panmacro2ast [OPTIONS] <INPUT_FILE> [MACRO_NAME]

Arguments:
  <INPUT_FILE>  Input file path (macro code file, or PAN database file if `macro_name` is given, or - for stdin)
  [MACRO_NAME]  Optional name of the macro/procedure (if provided, `input_file` is parsed as a whole .pan database)

Options:
  -i, --input-encoding <INPUT_ENCODING>
          Input character encoding (utf-8, macroman, win-1252 / windows) [default: macroman]
  -o, --output-encoding <OUTPUT_ENCODING>
          Output character encoding (utf-8, macroman, win-1252 / windows) [default: utf-8]
      --recover-graph
          Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help
          Print help

ctoolbox pdf2json

Convert a PDF file to JSON output. Not yet implemented

Usage: ctoolbox pdf2json [OPTIONS] <PDF_FILE>

Arguments:
  <PDF_FILE>  Input PDF file path (or - for stdin)

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox pdf2md

Convert a PDF file to Markdown output. Not yet implemented

Usage: ctoolbox pdf2md [OPTIONS] <PDF_FILE>

Arguments:
  <PDF_FILE>  Input PDF file path (or - for stdin)

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox pdf2txt

Convert a PDF file to text output. Not yet implemented

Usage: ctoolbox pdf2txt [OPTIONS] <PDF_FILE>

Arguments:
  <PDF_FILE>  Input PDF file path (or - for stdin)

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox python

Run the embedded Python interpreter or execute Python scripts

Usage: ctoolbox python [OPTIONS] [SCRIPT] [ARGS]...

Arguments:
  [SCRIPT]   Python script file, or '-' to read from stdin
  [ARGS]...  Arguments passed to the Python program in sys.argv[1:]

Options:
  -c <COMMAND>         Program passed in as string (terminates option list)
  -m <MODULE>          Run library module as a script (terminates option list)
  -B                   Don't write .pyc files on import
  -u                   Force the stdout and stderr streams to be unbuffered
  -i                   Inspect interactively after running script
  -I                   Isolate Python from the user's environment
  -E                   Ignore PYTHON* environment variables
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -q                   Don't print version and copyright messages on interactive startup
  -s                   Don't add user site directory to sys.path
  -S                   Don't imply 'import site' on initialization
  -v...                Verbose (trace import statements)
  -h, --help           Print help

ctoolbox range_gen

Generate a range of numbers in various bases

Usage: ctoolbox range_gen [OPTIONS] <START> <END>

Arguments:
  <START>  Starting value of the range
  <END>    Ending value of the range

Options:
  -s, --step <STEP>            Step size (defaults to "1") [default: 1]
  -b, --base <BASE>            Number base (e.g. "10", "16", "2", "64", "hex", "bin", "oct") [default: 10]
  -S, --separator <SEPARATOR>  Separator between output items (defaults to newline) [default: "\n"]
  -t, --trailing               Append a trailing separator to the output
      --recover-graph          Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                   Print help

Examples:
  $ ctoolbox range_gen 1 10
  1
  2
  3
  4
  5
  6
  7
  8
  9
  10

  $ ctoolbox range_gen -s 2 1 10
  1
  3
  5
  7
  9

  $ ctoolbox range_gen -b 16 -t -S, 18D0C 18D12
  18D0C,18D0D,18D0E,18D0F,18D10,18D11,18D12,

  $ ctoolbox range_gen -b hex 0x00 0x10
  00
  01
  02
  03
  04
  05
  06
  07
  08
  09
  0A
  0B
  0C
  0D
  0E
  0F
  10

ctoolbox run

Compile, execute, and render a Document Character (Dc) document or StageL 3 / StageR 3 program

Usage: ctoolbox run [OPTIONS] [INPUT]

Arguments:
  [INPUT]  Document source text. If omitted, reads from `--file` or standard input

Options:
      --from <FROM>
          Input format (autodetected if omitted; accepts nickname, `FormatId` name, or `f<N>` shorthand)
      --permissive
          Parse input document in permissive mode (recovering from non-fatal format warnings)
      --strict
          Parse input document in strict mode
  -f, --file <FILE>
          Input document file path (or `-` for stdin)
  -o, --output <OUTPUT>
          Output file path (or `-` for stdout)
  -F, --force
          Overwrite existing output file without prompt
      --program-input <PROGRAM_INPUT>
          Optional UTF-8 payload passed to the executed program's input mailbox
      --recover-graph
          Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
      --program-input-file <PROGRAM_INPUT_FILE>
          Optional file path containing raw input bytes for the executed program's input mailbox
      --target <TARGET>
          Rendering target (`teletype` plain-text UTF-8 output by default) [default: teletype] [possible values: teletype, videoterminal, web, raster, vector, print]
  -h, --help
          Print help (see more with '--help')

Supported document input formats (--from):
  Document formats:
    cdce_lstrict (CdceLegacyStrict): CDCE (legacy, strict)
    csdl (Csdl): Comma-separated Dc list (long Dcs)
    ctbnbdl (CtbNodeBundle): Collective Toolbox Node Bundle (default: ctbnbdl2)
        ctbnbdl1 (CtbNodeBundle1): Collective Toolbox Node Bundle, version 1
        ctbnbdl2 (CtbNodeBundle2): Collective Toolbox Node Bundle, version 2
    ctbnode-incoming (CtbNodeIncoming): Collective Toolbox incoming graph node (shorthand text)
    ctbnodes (CtbNodes): Collective Toolbox graph nodes (shorthand text)
    dc_id_list (DcIdList): Dc ID list (ASCII)
    dcal (Dcal): Dc ASCII List (long Dcs)
    dce (Dce): DCE (automatic version selection)
    dce_3_01a (Dce_3_01a): DCE 3.01a
    dce_3_01a_raw (Dce_3_01a_raw): DCE 3.01a (raw)
    dce_3_0a (Dce_3_0a): DCE 3.0a
    dce_3_0a_raw (Dce_3_0a_raw): DCE 3.0a (raw)
    dce_hex_3_01a (Dce_3_01a_hex): DCE 3.01a (hex-encoded)
    dce_hex_3_01a_raw (Dce_3_01a_raw_hex): DCE 3.01a (raw hex-encoded)
    dce_hex_3_0a (Dce_3_0a_hex): DCE 3.0a (hex-encoded)
    dce_hex_3_0a_raw (Dce_3_0a_raw_hex): DCE 3.0a (raw hex-encoded)
    dcil (DcIntegerList): Dc Integer List (short Dcs)
    dcmm, dcmstr (DcMixed): Dc mixed mode (default: dcmm2)
        dcmm1 (DcMixed1): Dc mixed mode, version 1 (DcUtf)
        dcmm2 (DcMixed2): Dc mixed mode, version 2 (DcTF)
    dcsh (Dcsh): Dc shorthand ASCII list
    dctext (DcText): DcText
    dctf (DcTf): DcTF (Dc Transformation Format)
    dcts (Dcts): DcText short
    dcutf (DcUtf): DcUtf
    hex_dce (DceHex): DCE (hex-encoded)
    legacy_cdce (CdceLegacy): CDCE (legacy)
    sems, selq (Sems): SEMS (short Dcs)
    utf8_dc64 (Utf8_Dc64): UTF-8 (Base64-encoded, ASCII Dc ID list)
    utf8_dc64_bin (Utf8_Dc64_bin): UTF-8 (Base64-encoded, DCE 3.01a+ encoding)
    utf8_dc64_bin_enc (Utf8_Dc64_bin_enc): UTF-8 (Base64-encoded, DCE 3.01a+ encoding; with headers)
    utf8_dc64_bin_enc_hex (Utf8_Dc64_bin_enc_hex): UTF-8 (Base64-encoded, DCE 3.01a+ encoding; with headers; hex-encoded)
    utf8_dc64_bin_hex (Utf8_Dc64_bin_hex): UTF-8 (Base64-encoded, DCE 3.01a+ encoding; hex-encoded)
    utf8_dc64_enc (Utf8_Dc64_enc): UTF-8 (Base64-encoded, ASCII Dc ID list; with headers)
  Text encodings:
    alphasmartneo (AlphaSmartNeo): AlphaSmart Neo encoding (has several variants)
    alphasmartneolowctluamac (AlphaSmartNeoLowCtlUaMac): AlphaSmart Neo, control low bytes, Ukraine (Mac)
    alphasmartneolowctluapc (AlphaSmartNeoLowCtlUaPc): AlphaSmart Neo, control low bytes, Ukraine (PC)
    alphasmartneolowctlus (AlphaSmartNeoLowCtlUs): AlphaSmart Neo, control low bytes, USA
    alphasmartneolowgruamac (AlphaSmartNeoLowGrUaMac): AlphaSmart Neo, graphical low bytes, Ukraine (Mac)
    alphasmartneolowgruapc (AlphaSmartNeoLowGrUaPc): AlphaSmart Neo, graphical low bytes, Ukraine (PC)
    alphasmartneolowgrus (AlphaSmartNeoLowGrUs): AlphaSmart Neo, graphical low bytes, USA
    ascii (Ascii): ASCII
    asciisafesubset (AsciiSafeSubset): Printable ASCII
    cp437 (Cp437): Code page 437 (CCSID 437)
    iso88591, latin1 (Iso88591): ISO 8859-1
    macroman (MacRoman): MacRoman
    utf8, txt, utf-8 (Utf8): UTF-8
    win1252, ansi (Win1252): Windows-1252 ("ANSI")
  Database & archive formats:
    cscarchive (CscArchive): Collective Toolbox csc archive (default: cscarchive2)
        cscarchive1 (CscArchive1): Collective Toolbox csc archive, version 1
        cscarchive2 (CscArchive2): Collective Toolbox csc archive, version 2
    cscjournal (CscJournal): Collective Toolbox csc journal

Additional executable source formats (--from or by extension):
  sr3 (f657, .sr3): StageR 3 module
  sl3 (f656, .sl3): StageL 3 module
  elad (f17, .elad, .emd): EITE Language in ASCII documents
  ems (f914, .ems, .elq): EMS short-Dc sequence
  dems (f915, .dems, .delq): Documented EMS short-Dc sequence
  wat (.wat): WebAssembly Text Format

Examples:
  $ ctoolbox run -f hello-world.emd
  $ ctoolbox run -f idiomatic-hello-world.ems
  $ ctoolbox run --from dcsh "256 258 260 262 264 263 57 86 93 93 96 261 259"
  $ ctoolbox run -f prog.sr3 --program-input "world"

ctoolbox short-dc

Convert Document Character (Dc) shorthand to Global Graph ID or show metadata

Usage: ctoolbox short-dc [OPTIONS] <ID>

Arguments:
  <ID>  Document Character shorthand identifier (e.g. 296, f80, u12a, l1114408)

Options:
  -i, --info           Show full metadata for the Document Character, Format, or Codepoint
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

Examples:
  $ ctoolbox short-dc 296
  1114408

  $ ctoolbox short-dc f80
  2228304

  $ ctoolbox short-dc -i 296

ctoolbox show-node

Unimplemented, just an example

Usage: ctoolbox show-node [OPTIONS] --id <ID>

Options:
  -i, --id <ID>        Example parameter
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox stagel-bootstrap-convert

Translate a StageL file using the bootstrap compiler

Usage: ctoolbox stagel-bootstrap-convert [OPTIONS] <INPUT_FILE> <TARGET_LANG>

Arguments:
  <INPUT_FILE>   Input StageL file path
  <TARGET_LANG>  Target language (js or bash)

Options:
      --cache-dir <CACHE_DIR>   Optional cache directory (if specified, enables caching)
      --no-debug                Disable debug build
      --no-runtime-type-checks  Disable runtime type checks
      --recover-graph           Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                    Print help

ctoolbox stagel-bootstrap-parse

Parse a StageL file to token output

Usage: ctoolbox stagel-bootstrap-parse [OPTIONS] <INPUT_FILE>

Arguments:
  <INPUT_FILE>  Input StageL file path

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox ts-check

Type-check TypeScript code

Usage: ctoolbox ts-check [OPTIONS] [FILES]...

Arguments:
  [FILES]...  Set the input file(s) or directories to use

Options:
      --config <CONFIG>           Load config from file
      --format <FORMAT>           Configure output format [default: pretty] [possible values: compact, pretty]
      --add-types <ADD_TYPES>...  Dynamically patch tsconfig to add paths mapping for these types from the compiler's types folder
      --recover-graph             Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                      Print help

ctoolbox uninstall

Uninstall ctoolbox from this system

Usage: ctoolbox uninstall [OPTIONS]

Options:
      --no-gui         Use text-mode uninstaller instead of GUI
      --unattended     Run without prompting for confirmation
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help (see more with '--help')

ctoolbox update

Check for updates and optionally apply them

Usage: ctoolbox update [OPTIONS]

Options:
      --unattended               Automatically apply updates without prompting
      --server-url <SERVER_URL>  URL of the update server. Defaults to the configured server URL
      --recover-graph            Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                     Print help (see more with '--help')

ctoolbox validate-docker-image

Validate a docker save image tarball

Usage: ctoolbox validate-docker-image [OPTIONS] [FILE]

Arguments:
  [FILE]  Tarball file path (or - for stdin)

Options:
      --strict         Fail if any unreferenced blobs are present in blobs/
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox waitrestart

Wait for the provided PID to shutdown, then start ctoolbox with the given port

Usage: ctoolbox waitrestart [OPTIONS] --pid <PID> --port <PORT>

Options:
      --pid <PID>      Process ID to wait for
      --port <PORT>    Port to pass to the new ctoolbox instance
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox waitshutdown

Wait for the provided PID to shutdown, then clean up

Usage: ctoolbox waitshutdown [OPTIONS] --pid <PID>

Options:
      --pid <PID>      Process ID to wait for
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox waitupgrade

Wait for the provided PID to shutdown, then upgrade the ctoolbox instance in place, then restart it. (Will need to copy the executable before upgrading it probably because Windows locks running executables.)

Usage: ctoolbox waitupgrade [OPTIONS] --pid <PID> --temp-path <TEMP_PATH> --target-path <TARGET_PATH> --port <PORT>

Options:
      --pid <PID>                  Process ID to wait for
      --temp-path <TEMP_PATH>      Path to the temporary file holding the new ctoolbox executable
      --target-path <TARGET_PATH>  Path to the installed ctoolbox executable
      --port <PORT>                Port to pass to the new ctoolbox instance
      --recover-graph              Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help                       Print help

ctoolbox warcat

WARC archive tool

Usage: warcat [OPTIONS] <COMMAND>

Commands:
  export   Decodes a WARC file to messages in a easier-to-process format such as JSON
  import   Encodes a WARC file from messages in a format of the `export` subcommand
  list     Provides a listing of the WARC records
  get      Returns a single WARC record
  extract  Extracts resources for casual viewing of the WARC contents
  verify   Perform specification and integrity checks on WARC files
  self     Self-installer and uninstaller
  help     Print this message or the help of the given subcommand(s)

Options:
  -q, --quiet                  Disable any progress messages
      --log-level <LOG_LEVEL>  Filter log messages by level [default: off] [possible values: trace, debug, info, warn, error, off]
      --log-file <LOG_FILE>    Write log messages to the given file instead of standard error
      --log-json               Write log messages as JSON sequences instead of a console logging format
  -h, --help                   Print help (see more with '--help')
  -V, --version                Print version

ctoolbox warcat export

Decodes a WARC file to messages in a easier-to-process format such as JSON

Usage: warcat export [OPTIONS]

Options:
      --input <INPUT>              Path to a WARC file [default: -]
      --compression <COMPRESSION>  Specify the compression format of the input WARC file [default: auto] [possible values: auto, none, gzip, zstandard]
      --output <OUTPUT>            Path for the output messages [default: -]
      --format <FORMAT>            Format for the output messages [default: json-seq] [possible values: json-seq, jsonl, cbor-seq]
      --no-block                   Do not output block messages
      --extract                    Output extract messages
  -h, --help                       Print help (see more with '--help')

ctoolbox warcat extract

Extracts resources for casual viewing of the WARC contents

Usage: warcat extract [OPTIONS]

Options:
      --input <INPUT>
          Path to the WARC file [default: -]
      --compression <COMPRESSION>
          Compression format of the input WARC file [default: auto] [possible values: auto, none, gzip, zstandard]
      --output <OUTPUT>
          Path to the output directory [default: ./]
      --continue-on-error
          Whether to ignore errors
      --include <INCLUDE>
          Select only records with a field
      --include-pattern <INCLUDE_PATTERN>
          Select only records matching a regular expression
      --exclude <EXCLUDE>
          Do not select records with a field
      --exclude-pattern <EXCLUDE_PATTERN>
          Do not select records matching a regular expression
  -h, --help
          Print help (see more with '--help')

ctoolbox warcat get

Returns a single WARC record

Usage: warcat get <COMMAND>

Commands:
  export   Output export messages
  extract  Extract a resource
  help     Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

ctoolbox warcat get export

Output export messages

Usage: warcat get export [OPTIONS] --position <POSITION>

Options:
      --input <INPUT>              Path of the WARC file [default: -]
      --compression <COMPRESSION>  Compression format of the input WARC file [default: auto] [possible values: auto, none, gzip, zstandard]
      --position <POSITION>        Position where the record is located in the input WARC file
      --id <ID>                    The ID of the record to extract
      --output <OUTPUT>            Path for the output messages [default: -]
      --format <FORMAT>            Format for the output messages [default: json-seq] [possible values: json-seq, jsonl, cbor-seq]
      --no-block                   Do not output block messages
      --extract                    Output extract messages
  -h, --help                       Print help (see more with '--help')

ctoolbox warcat get extract

Extract a resource

Usage: warcat get extract [OPTIONS] --position <POSITION>

Options:
      --input <INPUT>              [default: -]
      --compression <COMPRESSION>  Compression format of the input WARC file [default: auto] [possible values: auto, none, gzip, zstandard]
      --position <POSITION>        Position where the record is located in the input WARC file
      --id <ID>                    The ID of the record to extract
      --output <OUTPUT>            Path for the output file [default: -]
  -h, --help                       Print help (see more with '--help')

ctoolbox warcat import

Encodes a WARC file from messages in a format of the `export` subcommand

Usage: warcat import [OPTIONS]

Options:
      --input <INPUT>
          Path to the input messages [default: -]
      --format <FORMAT>
          Format for the input messages [default: json-seq] [possible values: json-seq, jsonl, cbor-seq]
      --output <OUTPUT>
          Path of the output WARC file [default: -]
      --compression <COMPRESSION>
          Compression format of the output WARC file [default: auto] [possible values: auto, none, gzip, zstandard]
      --compression-level <COMPRESSION_LEVEL>
          Level of compression for the output [default: high] [possible values: balanced, high, low]
  -h, --help
          Print help (see more with '--help')

ctoolbox warcat list

Provides a listing of the WARC records

Usage: warcat list [OPTIONS]

Options:
      --input <INPUT>              Path of the WARC file [default: -]
      --compression <COMPRESSION>  Compression format of the input WARC file [default: auto] [possible values: auto, none, gzip, zstandard]
      --output <OUTPUT>            Path to output listings [default: -]
      --format <FORMAT>            Format of the output [default: json-seq] [possible values: json-seq, jsonl, cbor-seq, csv]
      --field <FIELD>              Fields to include in the listing [default: :position,WARC-Record-ID,WARC-Type,Content-Type,WARC-Target-URI]
  -h, --help                       Print help (see more with '--help')

ctoolbox warcat self

Self-installer and uninstaller

Usage: warcat self <COMMAND>

Commands:
  install    Launch the interactive self-installer
  uninstall  Launch the interactive uninstaller
  help       Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

ctoolbox warcat self install

Launch the interactive self-installer

Usage: warcat self install [OPTIONS]

Options:
      --quiet  Install automatically without user interaction
  -h, --help   Print help

ctoolbox warcat self uninstall

Launch the interactive uninstaller

Usage: warcat self uninstall [OPTIONS]

Options:
      --quiet  Uninstall automatically without user interaction
  -h, --help   Print help

ctoolbox warcat verify

Perform specification and integrity checks on WARC files

Usage: warcat verify [OPTIONS]

Options:
      --input <INPUT>                  Path to the WARC file [default: -]
      --compression <COMPRESSION>      Compression format of the input WARC file [default: auto] [possible values: auto, none, gzip, zstandard]
      --output <OUTPUT>                Path to output problems [default: -]
      --format <FORMAT>                Format of the output [default: json-seq] [possible values: json-seq, jsonl, cbor-seq, csv]
      --exclude-check <EXCLUDE_CHECK>  Do not perform check [possible values: mandatory-fields, known-record-type, content-type, concurrent-to, block-digest, payload-digest, ip-address, refers-to, refers-to-target-uri, refers-to-date, target-uri, truncated, warcinfo-id, filename, profile, segment, record-at-time-compression]
      --database <DATABASE>            Database filename for storing temporary intermediate data
  -h, --help                           Print help (see more with '--help')

ctoolbox wfparser

Process a file using wfparser logic

Usage: ctoolbox wfparser [OPTIONS] [FILE]

Arguments:
  [FILE]  Input file path (or - for stdin) [default: -]

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox wfscan

Process a file using wfscan logic

Usage: ctoolbox wfscan [OPTIONS] [FILE]

Arguments:
  [FILE]  Input file path (or - for stdin) [default: -]

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox x86-instruction-sets

Analyze an x86/x64 object or archive file and list CPU instruction set features

Usage: ctoolbox x86-instruction-sets [OPTIONS] <PATH>

Arguments:
  <PATH>  Path to the object or archive file

Options:
      --recover-graph  Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help           Print help

ctoolbox xxd

Format binary data as an xxd hex dump

Usage: ctoolbox xxd [OPTIONS] [VALUE]

Arguments:
  [VALUE]  Data to dump. If not provided, reads from stdin or file

Options:
  -f, --file <FILE>      Input file path (or - for stdin)
  -o, --output <OUTPUT>  Output file path (or - for stdout)
      --plain            Output in plain (classic) hex dump format
      --fancy            Output in fancy hex dump format
      --recover-graph    Recover valid graph nodes and warn instead of failing on corrupted or inconsistent graph data
  -h, --help             Print help

Examples:
  $ ctoolbox xxd "Hello"
  $ echo -n "Hello" | ctoolbox xxd
  $ ctoolbox xxd -f file.bin -o file.hex
  $ ctoolbox xxd --plain "Hello"
  $ ctoolbox xxd --fancy "Hello"