I needed to be able to retrieve a Firefox bookmark for an account on a MacBook Pro laptop running OS X Yosemite (10.10.5). I wanted to be able to view the bookmarks from a command line interface (CLI), i.e., a shell prompt that I would get in a Terminal window. On an OS X system, the bookmarks and other account-unique information is stored beneath the profile directory for the account, which you can find beneath the ~/Library/Application Support/Firefox/Profiles directory.
$ ls ~/Library/Application\ Support/Firefox/Profiles bgq13udo.default $
Within that directory is a places.sqlite SQLite database. OS X comes with the sqlite3 program for creating, viewing, and editing SQLite databases - see Using SQLite for information on how to use the program.
[ More Info ]