Skip to content

motemen/sbx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbx

A Scrapbox CLI in the wild

Usage

project

sbx project show <project>

Prints JSON for project.

Requests https://scrapbox.io/api/projects/<project>

page

sbx page list [--limit <limit>] <project>

Prints JSON array of pages in project.

Requests https://scrapbox.io/api/pages/<project>

Options

  • --session <session>
    • Specify connect.sid cookie value on scrapbox.io, for querying private projects.
  • --jq <query>
    • 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.

{
  "projects": {
    "<project>": {
      "session": {
        "command": "<command to print session>", // or
        "value": "<constant value>"
      }
    }
  },

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

About

An unofficial Scrapbox client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages