Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.26 KB

File metadata and controls

44 lines (32 loc) · 1.26 KB

rc tree

Purpose

rc tree displays object keys in a tree-like view. It is a legacy-compatible command; prefer rc object tree for new scripts.

Syntax

rc [GLOBAL OPTIONS] tree [OPTIONS] <ALIAS/BUCKET[/PREFIX]>

Parameters

Parameter Description
PATH Bucket or prefix to display.
-L, --level Maximum tree depth. Defaults to 3.
-d, --dirs-only Show only directory-like prefixes.
-f, --full-path Show full path prefixes.
-P, --pattern Include only keys matching a pattern.
-s, --size Show object sizes.

Examples

rc tree local/reports -L 2
rc object tree local/reports --recursive --size

Behavior

Tree output is optimized for human inspection of key organization. Use rc object list --json for machine-readable inventory.

Global options shown in command syntax use the same meaning everywhere:

Option Description
--format auto|human|json Select automatic, human-readable, or JSON output.
--json Emit JSON output where the command supports structured output.
--no-color Disable terminal colors.
--no-progress Disable progress bars.
-q, --quiet Suppress non-error output.
--debug Enable debug logging.