List-keys command

Lists the application keys for the current account.

The columns in the output are:

  • ID of the application key

  • Name of the application key

  • Name of the bucket the key is restricted to, or ‘-‘ for no restriction

  • Date of expiration, or ‘-‘

  • Time of expiration, or ‘-‘

  • File name prefix, in single quotes

  • Command-separated list of capabilities

None of the values contain whitespace.

For keys restricted to buckets that do not exist any more, the bucket name is replaced with ‘id=<bucketId>’, because deleted buckets do not have names any more.

Requires capability: listKeys

b2 list-keys [-h] [--long]

Named Arguments

--long

Default: False