https://github.com/mrusme/xbscli
Command line interface for xbsapi and the official xBrowserSync API
https://github.com/mrusme/xbscli
api-client cli command-line command-line-tool rest-client xbrowsersync xbrowsersync-api xbsapi
Last synced: 8 months ago
JSON representation
Command line interface for xbsapi and the official xBrowserSync API
- Host: GitHub
- URL: https://github.com/mrusme/xbscli
- Owner: mrusme
- License: gpl-3.0
- Created: 2022-12-15T05:22:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-30T18:12:23.000Z (about 2 years ago)
- Last Synced: 2024-10-18T06:36:13.649Z (over 1 year ago)
- Topics: api-client, cli, command-line, command-line-tool, rest-client, xbrowsersync, xbrowsersync-api, xbsapi
- Language: Go
- Homepage: https://xn--gckvb8fzb.com
- Size: 27.3 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
xbscli
------
[
](https://xn--gckvb8fzb.com/contact/)
A command line interface for [xbsapi](https://github.com/mrusme/xbsapi) as well
as the official [xBrowserSync](https://github.com/xbrowsersync/api) API.
## Build
```sh
go build .
```
## Run
```sh
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](https://darekkay.com/static-marks/)
## Docker
An alternate way to run xbscli
### Build
```sh
docker build -t xbscli .
```
### Run
```sh
docker run --rm xbscli \
-s "https://xbsapi.myserver.com/api/v1" \
-i $(pass show xbs/id) \
-p $(pass show xbs/password) \
-f pretty
```