Get-download-auth command

Prints an authorization token that is valid only for downloading files from the given bucket.

The token is valid for the duration specified, which defaults to 86400 seconds (one day).

Only files that match that given prefix can be downloaded with the token. The prefix defaults to “”, which matches all files in the bucket.

Requires capability:

  • shareFiles

b2 get-download-auth [-h] [--prefix PREFIX] [--duration DURATION] bucketName

Positional Arguments

bucketName

Named Arguments

--prefix

Default: “”

--duration

Default: 86400