Skip to content
/ xbscli Public

Command line interface for xbsapi and the official xBrowserSync API

License

Notifications You must be signed in to change notification settings

mrusme/xbscli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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