Skip to content

benithors/brings-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brings-cli

image

CLI for Bring! Shopping Lists - manage lists, add recipes, and more.

Installation

Build locally:

go build -o brings ./cmd/brings

Or install into your $GOBIN:

go install ./cmd/brings

Homebrew

brew tap benithors/tap
brew install brings-cli

Playwright (browser login)

Browser-based login uses Playwright. The CLI will try to install Playwright automatically if needed, but you can also pre-install:

go run github.com/playwright-community/playwright-go/cmd/playwright install

Authentication

Login via browser (recommended - handles bot detection):

brings login --browser

This opens Chrome, you log in to Bring!, and the token is extracted automatically.

Usage

# Show all shopping lists
brings lists

# Show items to purchase
brings items

# Add item to list
brings add Milk --spec "2%"

# Remove item
brings remove Milk

# Mark as purchased
brings complete Milk

Recipes

Browse and add recipe ingredients to your shopping list:

# List saved recipes
brings inspirations

# View recipe details
brings recipe <id>

# Add recipe ingredients to cart
brings add-recipe <id>

Configuration

Set default servings for recipe scaling:

# Set servings (scales all recipes)
brings config servings 4

# View current config
brings config

All Commands

Authentication:
  login --browser           Open browser for login
  login --token <token>     Login with token directly
  logout                    Clear saved credentials
  status                    Show login status

Shopping List:
  lists                     Show all shopping lists
  items [--list <uuid>]     Show items to purchase
  add <item> [--spec ".."]  Add item to list
  remove <item>             Remove item
  complete <item>           Mark as purchased

Recipes:
  inspirations [filter]     List saved recipes with IDs
  recipe <id>               Show recipe details
  add-recipe <id>           Add ingredients to shopping list
    --servings <n>          Scale for n servings
    --all                   Include pantry items

Social:
  users                     Show users sharing the list
  notify <type>             Send notification
  activity                  Show recent activity

Settings:
  account                   Show account info
  config                    Show/set configuration
  catalog [locale]          Browse item catalog

Agent Workflow

For AI agents integrating with Bring!:

# 1. List recipes with IDs
brings inspirations

# 2. Add recipe to shopping list (scaled to config servings)
brings add-recipe <id>

Disclaimer

This project is not affiliated with Bring! Labs AG.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages