Logout

When you no longer actively use an API Access Key, it is best to remove the credentials. You can use the first positional argument to filter which credentials to remove from the Shared Credentials File.

Usage

bunny-transfer logout [options] [user]

Examples

bunny-transfer logout                                         # all
bunny-transfer logout "personal"                              # profile
bunny-transfer logout "c24347cf-1bc0-4900-8d60-86b1c7701f53"  # accessKey
bunny-transfer logout "johndoe@example.com"                   # email
bunny-transfer logout "31141ed7-9a4c-48b3-9910-676f9c999d70"  # id
bunny-transfer logout "John Doe"                              # name

  • Name
    user
    Type
    string
    Description

    User

    Any piece of information related to a credential that should be removed:

    • profile
    • accessKey
    • email
    • id
    • name

    If the argument is empty, all credentials will be removed.

  • Name
    --shared-credentials-file, -c
    Type
    file-path
    Description

    Shared Credentials File

    All profiles are saved by default in ~/.bunny/credentials.

    The shared credentials file follows the TOML v1.0.0 format specification.

    Each profile consists of a:

    • profile
    • accessKey
    • email
    • id
    • name (optional)

    Shared Credentials File sample

    [personal]
    accessKey = "c24347cf-1bc0-4900-8d60-86b1c7701f53"
    email = "johndoe@example.com"
    id = "31141ed7-9a4c-48b3-9910-676f9c999d70"
    
    [business]
    accessKey = "85e2e568-dc73-47c2-8530-ce8f8f42fe6c"
    email = "johndoe@company.com"
    id = "5552c462-bde1-4a41-88ed-d8c1bc1c51bc"
    name = "John Doe"