rc ls lists buckets or objects. It is a legacy-compatible command; prefer rc bucket list for bucket workflows and rc object list for object workflows.
rc [GLOBAL OPTIONS] ls [OPTIONS] <PATH>| Parameter | Description |
|---|---|
PATH |
ALIAS/ to list buckets, or ALIAS/BUCKET[/PREFIX] to list objects. |
-r, --recursive |
Recursively list objects. |
--versions |
Show object versions where supported. |
--incomplete |
Include incomplete multipart uploads. |
--summarize |
Show totals only. |
rc ls local/
rc ls local/reports --recursive
rc bucket list local/reports --versionsWhen PATH contains only an alias, rc ls lists buckets. When it contains a bucket, it lists objects under the optional prefix.
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. |