- Print
- DarkLight
File URL Command
- Print
- DarkLight
V4.0.2
This command displays a URL that you can use to download the given file, if it is public.
If the file is private, use the --with-auth
parameter to include an authorization token in the URL. This token allows downloads from the given bucket for files with names that begin with the given file name.
The URL works for the given file, but it is not specific to that file. Files with longer names that begin with the given file name can also be downloaded with the same authorization token.
The token is valid for the duration specified, which defaults to 86400 seconds (one day).
b2 file url [-h] [--with-auth] [--duration DURATION] B2_URI
Required Capabilities
- shareFiles
Required if you submit the--with-auth
parameter.
Positional Arguments
- B2_URI
Points to a file, for example,b2://yourBucket/file.txt
orb2id://fileId
.
Named Arguments
- --with-auth
Default: False - --duration
Default: 86400
V4.0.1
This command displays a URL that you can use to download the given file, if it is public.
If the file is private, use the --with-auth
parameter to include an authorization token in the URL. This token allows downloads from the given bucket for files with names that begin with the given file name.
The URL works for the given file, but it is not specific to that file. Files with longer names that begin with the given file name can also be downloaded with the same authorization token.
The token is valid for the duration specified, which defaults to 86400 seconds (one day).
b2 file url [-h] [--with-auth] [--duration DURATION] B2_URI
Required Capabilities
- shareFiles
Required if you submit the--with-auth
parameter.
Positional Arguments
- B2_URI
Points to a file, for example,b2://yourBucket/file.txt
orb2id://fileId
.
Named Arguments
- --with-auth
Default: False - --duration
Default: 86400
V4.0.0
This command displays a URL that you can use to download the given file, if it is public.
If the file is private, use the --with-auth
parameter to include an authorization token in the URL. This token allows downloads from the given bucket for files with names that begin with the given file name.
The URL works for the given file, but it is not specific to that file. Files with longer names that begin with the given file name can also be downloaded with the same authorization token.
The token is valid for the duration specified, which defaults to 86400 seconds (one day).
b2 file url [-h] [--with-auth] [--duration DURATION] B2_URI
Required Capabilities
- shareFiles
Required if you submit the--with-auth
parameter.
Positional Arguments
- B2_URI
Points to a file, for example,b2://yourBucket/file.txt
orb2id://fileId
.
Named Arguments
- --with-auth
Default: False - --duration
Default: 86400
This command is not included in version 2.1.0.
This command is not included in version 2.2.0.
This command is not included in version 2.3.0.
This command is not included in version 2.4.0.
This command is not included in version 2.5.0.
This command is not included in version 2.5.1.
This command is not included in version 3.0.0.
This command is not included in version 3.0.1.
This command is not included in version 3.0.2.
This command is not included in version 3.0.3.
This command is not included in version 3.1.0.
This command is not included in version 3.2.0.
This command is not included in version 3.2.1.
This command is not included in version 3.3.0.
This command is not included in version 3.4.0.
This command is not included in version 3.5.0.
This command is not included in version 3.6.0.
This command is not included in version 3.7.0.
This command is not included in version 3.7.1.
This command is not included in version 3.8.0.
This command is not included in version 3.9.0.
This command is not included in version 3.12.0.
This command is not included in version 3.13.0.
This command is not included in version 3.13.1.
This command is not included in version 3.14.0.
This command is not included in version 3.15.0.
This command is not included in version 3.16.0.
This command is not included in version 3.16.1.
This command is not included in version 3.17.0.
This command is not included in version 3.18.0.
This command is not included in version 3.19.0.
This command is not included in version 3.19.1.
Versions