Skip to content

dt blob ls

Overview

List buckets, or files at a prefix inside a bucket

Synopsis

dt blob ls [OPTIONS] [<bucket_name>] 

Options

  • -r, --recursive
    Recursive listing of files

  • -f, --filter=<filter>
    Filter expression, e.g. "name ends_with .json and size > 0"

  • -s, --sort=<sort>
    Sort expression: +field for ASC, -field for DESC

  • -o, --offset=<offset>
    Offset to start showing results (default 0)

  • -b, --batch-size=<batch-size>
    Retrieve up to batch-size results (default: no limit)

  • -j, --json
    Output as JSON

  • -p, --pretty
    Pretty print results

Arguments

  • bucket_name (optional)
    Type: String
    Bucket name (omit to list available buckets)

Examples

List all available buckets

dt blob ls

List all files under a certain prefix

dt blob ls mybucket my
dt blob ls mybucket/my
dt blob ls blob://mybucket/my

Filter objects by suffix and sort by size

dt blob ls mybucket -f "name ends_with .csv" -s "-size"

SEE ALSO

← Back to dt blob