Releases: Backblaze/B2_Command_Line_Tool
Releases · Backblaze/B2_Command_Line_Tool
4.0.0
Changed
- CLI
b2
executable now points to the latest stable ApiVer version,b2v4
, previously it pointed tob2v3
.
These means following breaking changes:b2
will no longer persists credentials and other secrets on disk if credentials were passed throughB2_*
environment variables. To explicitly persist them and keep using local cache for better performance, user can simply callb2 account authorize
b2 ls
andb2 rm
no longer accept two positional arguments, instead accepting onlyB2 URI
(e.g.b2://bucketName/path
)
- Changed
sync
command exit status code from 0 to 1 if any warnings or errors were encountered during the operation.
Fixed
- Invalid unicode characters read from filesystem will no longer interrupt
b2 sync
Deprecated
- Deprecated
authorize-account
,get-account-info
andclear-account
, useaccount {authorize|get|clear}
instead. - Deprecated
delete-file-version
, userm
instead. Added--bypass-governance
option torm
. - Deprecated
file-info
,get-url
,cat
,upload-file
,download-file
,copy-file-by-id
,hide-file
,update-file-legal-hold
andupdate-file-retention
, usefile {info|url|cat|upload|download|copy-by-id|hide|update}
instead. - Deprecated
get-download-url-with-auth
, usefile url
instead. Added--with-auth
and--duration
options tofile url
. - Deprecated
list-buckets
,get-bucket
,create-bucket
,update-bucket
,delete-bucket
,get-download-auth
andnotification-rules
, usebucket {list|get|create|update|delete|get-download-auth|notification-rule}
instead. - Deprecated
list-keys
,create-key
anddelete-key
, usekey {list|create|delete}
instead. - Deprecated
list-parts
, usefile large parts
instead.
Deprecatedlist-unfinished-large-files
, usefile large unfinished list
instead.
Deprecatedcancel-large-file
amdcancel-all-unfinished-large-files
, usefile large unfinished cancel
instead. - Deprecated
replication-{setup|delete|pause|unpause|status}
, usereplication {setup|delete|pause|unpause|status}
instead.
Added
- Add
account {authorize|get|clear}
commands. - Add
bucket {list|get|create|update|delete|get-download-auth|notification-rule}
commands. - Add
file large {parts|unfinished list|unfinished cancel}
commands. - Add
file {info|url|cat|upload|download|copy-by-id|hide|update}
commands. - Add
key {list|create|delete}
commands. - Add
replication {setup|delete|pause|unpause|status}
commands. - Allow
b2v3
to be run in official Docker image without the need to change entrypoint.
Doc
- Automate nested subcommand documentation generation.
- Display short descriptions instead of arguments in subcommands help messages.
- Sort subcommands in
--help
alphabetically for better readability.
3.19.1
Fixed
- Fix
create-key --all-capabilities
error when usingb2sdk>=2.1
.
3.19.0
Added
- Add
notification-rules
commands for manipulating Bucket notification rules as part of Event Notifications feature Private Preview.
See https://www.backblaze.com/blog/announcing-event-notifications/ for details.
3.18.0
Changed
- Change all
_b2v4 --camelCase
CLI flags to --kebab-case.
Add deprecation warning forb2v3 --camelCase
CLI flags.
Fixed
- Don't persist credentials provided in the Environment variables in any command other than
authorize-account
when usingb2v4
. - Fix
b2 --help
showing full binary path instead of just basename.
Added
- Add autocomplete support for
zsh
andfish
shells. - Add support for calling
b2 ls
without arguments to list all buckets.
Infrastructure
- Add dockerhub description deployment to CD workflow.
- Add support for pre-releases in CD.
- Fix missing command output when running
nox
under CI. - Increase verbosity when running tests under CI.
- Update to GitHub Actions using Node 20.
3.17.0
Fixed
- Control character escaping is now enabled by default if running in a terminal for improved security.
Added
- Added
--escape-control-characters
and--no-escape-control-characters
flags,
as well asB2_ESCAPE_CONTROL_CHARACTERS
env var to explicitly enable or disable control character escaping.
3.16.1
Fixed
- Fix
--threads
option being silently ignored in upload commands.
3.16.0
Changed
- All internal Python modules were moved to the
b2._internal
package to further discourage users from importing them. - Change
ls
andrm
commands to use theb2://
URI scheme in the pre-release_b2v4
command.
Fixed
- Fix
--minPartSize
not supporting values above 100MB. - Fix a bug where
rm bucketName folderName
command without the--recursive
flag would
remove a first file from every subdirectory insidefolderName
. - Fix handling of
?
and#
in B2 URI.
Added
- ApiVer introduced.
b2
executable points to the latest stable ApiVer version, while
b2v3
will always point to v3 ApiVer release ofb2
CLI. - Add
--include
and--exclude
filters to thels
andrm
commands. - Add support for deleting a single file by
b2id://
URI in the pre-release_b2v4
command. - Print account info if
b2 authorize-account
is successful using the same format asb2 get-account-info
. - Print output file path in
download-file
command.
Infrastructure
- Fix CI failing on
mkdir
when testing docker image. - Use pdm for building, testing and managing dependencies.
- Remove unnecessary files (continuous integration scripts, tests) from sdist tarball.
3.15.0
Changed
- Use Python 3.12 in the official
b2
Docker image.
Fixed
- Loosen platformdirs dependency version specifier.
Added
- Whenever target filename is a directory, file is downloaded into that directory.
3.14.0
Changed
Fixed
- Don't print `Using https://REALM" in stderr unless explicitly set by user. (#949)
- Added autocomplete suggestion caching to improve autocomplete performance.
- Do not include build cache in official
b2
docker image. - Fix an error that caused multiprocessing semaphores to leak on OSX.
Deprecated
- Deprecated
download-file-by-id
anddownload-file-by-name
, usedownload-file
instead.
Deprecatedget-file-info
, usefile-info
instead.
Deprecatedmake-url
andmake-friendly-url
, useget-url
instead.
Added
- Add
--expires
,--content-disposition
,--content-encoding
,--content-language
options to subcommandsupload-file
,upload-unbound-stream
,copy-file-by-id
. - Add
download-file
,file-info
andget-url
commands using new B2 URI syntax allowing for referring to file-like objects by their bucket&name or ID.
Doc
- Add
cat
command to documentation. - Add additional linebreaks to ensure lists are properly rendered.
Infrastructure
- Ensure CI checks Python package compatibility with latest setuptools. (#952)
- Allow skipping changelog for PRs marked with
-changelog
label. - Changelog entries are now validated as a part of CI pipeline.
- Disable dependabot requests for updates unrelated to security issues.
- Fix CI badge not showing correct status in README.
- Remove unused exception class and outdated todo.
- Skip draft step in releases - all successful releases are public.
- Update license text generation dependencies to prevent triggering security scan false-positives.
- Use cpython 3.12 (not 3.11) for integration tests with secrets.