---
source: tests/cli_json.rs
expression: normalize_help(&output.stdout)
---
Upload a local file

Usage: rgfile upload [OPTIONS] <FILE>

Arguments:
  <FILE>  File to upload

Options:
      --lifetime <LIFETIME>      File lifetime in days
      --chunk-size <CHUNK_SIZE>  Upload chunk size, for example 50M or 1G [default: 100MiB]
      --threads <THREADS>        Upload read-ahead chunk window (1-16; completion remains ordered)
      --no-verify                Skip post-upload size verification
      --timeout <TIMEOUT>        Idle timeout in seconds while uploading a chunk
      --retries <RETRIES>        Retry count for retryable network/server failures
      --user-agent <USER_AGENT>  Override the default User-Agent
      --dump-page <DUMP_PAGE>    Save the fetched upload landing page HTML for diagnostics
      --json                     Print one JSON object and disable progress output
  -q, --quiet                    Disable progress and non-error status output
  -h, --help                     Print help

Global Options:
  -v, --verbose...     Increase logging verbosity (-v for info, -vv for debug)
      --config <PATH>  Load configuration from a specific TOML file
      --no-config      Do not load a configuration file
      --history        Enable history for this run
      --no-history     Disable history for this run
