Skip to content

Commit 2d52437

Browse files
committed
docs: add more examples
1 parent 85608dc commit 2d52437

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,14 @@ cotp edit --index 4 --digits 8
3636
# List all the codes in JSON format passing password through stdin
3737
echo "mysecretpassword" | cotp --password-stdin list --json
3838

39+
# Extract the first matching OTP code with "google" issuer and copy it into the clipboard
40+
echo "mysecretpassword" | cotp extract --issuer google --copy-clipboard
41+
3942
# Import an encrypted Aegis Database backup
4043
cotp import --path my_db.json --aegis-encrypted
44+
45+
# Export the cotp database
46+
cotp export
4147
```
4248

4349
## Compatibility

0 commit comments

Comments
 (0)