xbscli
A command line interface for xbsapi as well as the official xBrowserSync API.
Build
go build .
Run
xbscli \
-s "https://xbsapi.myserver.com/api/v1" \
-i $(pass show xbs/id) \
-p $(pass show xbs/password) \
-f pretty
Supported formats (-f)
- json (default)
- pretty - formatted text
- html - produces a basic HTML file similar to browser export of bookmarks as html. Handy as an input to static-marks
Docker
An alternate way to run xbscli
Build
docker build -t xbscli .
Run
docker run --rm xbscli \
-s "https://xbsapi.myserver.com/api/v1" \
-i $(pass show xbs/id) \
-p $(pass show xbs/password) \
-f pretty