Get-download-url-with-auth command

Prints a URL to download the given file. The URL includes an authorization token that allows downloads from the given bucket for files whose names start with the given file name.

The URL will work for the given file, but is not specific to that file. Files with longer names that start with the give file name can also be downloaded with the same auth token.

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

Requires capability:

  • shareFiles

b2 get-download-url-with-auth [-h] [--duration DURATION] bucketName fileName

Positional Arguments


Named Arguments


Default: 86400