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.