I just realized what you were likely asking - here is a more detailed answer.
When you execute the bw serve
command in the CLI, it will bind to a hostname and port that you choose. The default is localhost on port 8087, and the api endpoints expose objects within whatever vault you have logged in to (could be hosted by Bitwarden.com or a self-hosted instance). So, in your terminal you might do something like this:
bw login [email protected]
bw serve & #run in background
curl -X 'GET' 'http://localhost:8087/object/fingerprint/me' -H 'accept: application/json'
This will reveal your fingerprint phrase.
{
"success": true,
"data": {
"object": "string",
"data": "magician-fruit-justify-tactfulness-cornflake"
}
}
When you are finished your workflow, just type fg
to bring the bw CLI back to the foreground in your terminal, and press Control-C to end the api session. Then you can logout of your vault with the CLI if you like. Hope that helps!