bucket get

Display bucket info

Prints all of the information about the bucket, including bucket info, CORS rules and lifecycle rules.

If --show-size is specified, then display the number of files (fileCount) in the bucket and the aggregate size of all files (totalSize). Hidden files and hide markers are accounted for in the reported number of files, and hidden files also contribute toward the reported aggregate size, whereas hide markers do not. Each version of a file counts as an individual file, and its size contributes toward the aggregate size. Analysis is recursive.

Note

Note that --show-size requires multiple API calls, and will therefore incur additional latency, computation, and Class C transactions.

Requires capability:

  • listBuckets

b2 bucket get [-h] [--show-size] bucketName

Positional Arguments

bucketName

Target bucket name

Named Arguments

--show-size

Default: False