Skip to content
Alexander Kopachov edited this page Jan 8, 2024 · 16 revisions

YES!

When Flipper Authenticator is running totp CLI is available for you to list, add or remove tokens as well as do some other manipulations. Run totp help to get list of available commands and arguments.

Here is the list of available commands, their arguments, options and usage:

Commands and usage

Command usage Description
totp (help | h | ?) Show command usage help
totp version Get application version
totp (list | ls) List all available tokens
totp (lsattr | cat) <index> Displays token details
totp (add | mk | new) <name> [-a <algo>] [-e <encoding>] [-d <digits>] [-l <duration>] [-u] [-b <feature>]... Add new token
totp (update) <index> [-a <algo>] [-e <encoding>] [-n <name>] [-d <digits>] [-l <duration>] [-u] [-s] [-b <feature>]... Update existing token
totp (delete | rm) <index> [-f] Delete existing token
totp (timezone | tz) [<timezone>] Get or set current timezone
totp (move | mv) <index> <new_index> Move token
totp pin (set | remove) [-c <slot>] Set\change\remove PIN
totp notify [<notification>...] Get or set notification method
totp reset Reset application to default settings
totp automation [-k <layout>] [<automation>...] Get or set automation settings
totp export Exports and prints all the tokens into URI-list format

Arguments

Argument Description
name Token name
index Token index in the list
new_index New token index in the list
timezone Timezone offset in hours to be set
notification Notification method to be set. Must be one of: none, sound, vibro
automation Automation method to be set. Must be one of: none, usb, bt

Options

Option Description
-a <algo> Token hashing algorithm. Must be one of: sha1, sha256, sha512, steam [default: sha1]
-d <digits> Number of digits to generate, one of: 5, 6, 8 [default: 6]
-e <encoding> Token secret encoding, one of base32, base64 [default: base32]
-l <duration> Token lifetime duration in seconds, between: 15 and 255 [default: 30]
-u Show console user input as-is without masking
-b <feature> Token automation features to be enabled. Must be one of: none, enter, tab [default: none]

none - No features
enter - Type key at the end of token input automation
tab - Type key at the end of token input automation
slower - Type slower
-n <name> Token name
-s Update token secret
-f Force command to do not ask user for interactive confirmation
-c <slot> New crypto key slot. Must be between 12 and 100
-k <layout> Automation keyboard layout. Must be one of: QWERTY, AZERTY, QWERTZ
Clone this wiki locally