Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/motemen/sbx

An unofficial Scrapbox client
https://github.com/motemen/sbx

Last synced: 3 months ago
JSON representation

An unofficial Scrapbox client

Awesome Lists containing this project

README

        

sbx
===

A Scrapbox CLI in the wild

Usage
-----

### project

sbx project show

Prints JSON for _project_.

Requests `https://scrapbox.io/api/projects/`

### page

sbx page list [--limit ]

Prints JSON array of pages in _project_.

Requests `https://scrapbox.io/api/pages/`

Options
-------

* `--session `
* Specify `connect.sid` cookie value on scrapbox.io, for querying private projects.
* `--jq `
* Run a jq query on results.

Configuration
-------------

Put a JSON file like below at `~/.config/sbx/config.json` to give a default value for `--session`.

```json
{
"projects": {
"": {
"session": {
"command": "", // or
"value": ""
}
}
},

// default value
"default": {
"session": ...
}
}
```