GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bu3/rebrickable-cli: Command-line interface for your LEGO collection, powered by rebrickable-go

BranchesTags
Open more actions menu

Latest commit

 

History

108 Commits
108 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
cli
cli
 
 
docs/superpowers
docs/superpowers
 
 
testdata
testdata
 
 
.bazelrc
.bazelrc
 
 
.bazelversion
.bazelversion
 
 
.gitignore
.gitignore
 
 
BUILD.bazel
BUILD.bazel
 
 
CLAUDE.md
CLAUDE.md
 
 
CODE_REVIEW.md
CODE_REVIEW.md
 
 
LICENSE
LICENSE
 
 
MODULE.bazel
MODULE.bazel
 
 
MODULE.bazel.lock
MODULE.bazel.lock
 
 
README.md
README.md
 
 
WORKSPACE
WORKSPACE
 
 
build.sh
build.sh
 
 
deps.bzl
deps.bzl
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
rebrickable-go-logo.png
rebrickable-go-logo.png
 
 
run.sh
run.sh
 
 
test.sh
test.sh
 
 

Repository files navigation

rebrickable-go

Rebrickable Go Client

Client to interact with Rebrickable API.

Setup

Set the following environment variables:

export REBRICKABLE_USERNAME=...
export REBRICKABLE_PASSWORD="..."
export REBRICKABLE_API_KEY=...

Build and test with Bazel:

bazel test //...          # run all tests
bazel build //cli         # build the binary

Supported API

Sets (user sets)

Command Flag(s) API
user sets get GET /users/{token}/sets/
user sets getOne -n <set_num> GET /users/{token}/sets/{set_num}/
user sets set -n <set_num> POST /users/{token}/sets/
user sets replace -n <set_num> -q <quantity> PUT /users/{token}/sets/{set_num}/
user sets delete -n <set_num> DELETE /users/{token}/sets/{set_num}/

Set Lists (user setLists)

Command Flag(s) API
user setLists get GET /users/{token}/setlists/
user setLists getOne -l <list_id> GET /users/{token}/setlists/{list_id}/
user setLists set -n <name> POST /users/{token}/setlists/
user setLists update -l <list_id> -n <name> PATCH /users/{token}/setlists/{list_id}/
user setLists replace -l <list_id> -n <name> PUT /users/{token}/setlists/{list_id}/
user setLists delete -l <list_id> DELETE /users/{token}/setlists/{list_id}/

Sets within a Set List (user setListSets)

Command Flag(s) API
user setListSets get -l <list_id> GET /users/{token}/setlists/{list_id}/sets/
user setListSets getOne -l <list_id> -n <set_num> GET /users/{token}/setlists/{list_id}/sets/{set_num}/
user setListSets set -l <list_id> -n <set_num> POST /users/{token}/setlists/{list_id}/sets/
user setListSets delete -l <list_id> -n <set_num> DELETE /users/{token}/setlists/{list_id}/sets/{set_num}/

LEGO Catalog Sets (lego sets)

Requires only REBRICKABLE_API_KEY — no login needed.

Command Flag(s) API
lego sets list GET /lego/sets/
lego sets get -n <set_num> GET /lego/sets/{set_num}/
lego sets alternates -n <set_num> GET /lego/sets/{set_num}/alternates/
lego sets minifigs -n <set_num> GET /lego/sets/{set_num}/minifigs/
lego sets parts -n <set_num> GET /lego/sets/{set_num}/parts/
lego sets sets -n <set_num> GET /lego/sets/{set_num}/sets/

LEGO Catalog Parts (lego parts)

Requires only REBRICKABLE_API_KEY — no login needed.

Command Flag(s) API
lego parts list --part_num, --part_nums, --part_cat_id, --color_id, --bricklink_id, --brickowl_id, --lego_id, --ldraw_id, --ordering, --search (all optional) GET /lego/parts/
lego parts get -n <part_num> GET /lego/parts/{part_num}/
lego parts colors -n <part_num> GET /lego/parts/{part_num}/colors/
lego parts colorDetail -n <part_num> -c <color_id> GET /lego/parts/{part_num}/colors/{color_id}/
lego parts colorSets -n <part_num> -c <color_id> GET /lego/parts/{part_num}/colors/{color_id}/sets/

About

Command-line interface for your LEGO collection, powered by rebrickable-go

rebrickable-cli.vercel.app

Topics

legorebrickable

Resources

Readme
Apache-2.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.