npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bring-shopping-cli

v1.1.0

Published

Bring Shopping CLI

Readme

bring-shopping-cli

Command-line client for Bring shopping lists.

oclif Version Downloads/week

bring-shopping-cli is an oclif-based CLI for reading and updating Bring shopping lists from a terminal. It authenticates with a Bring account, lists available shopping lists, and prints or adds shopping list items in text or machine-readable formats.

Requirements

  • Node.js 18 or newer
  • A Bring account

Installation

Install the package globally from npm:

npm install -g bring-shopping-cli

Then run:

bring --help

For local development, install dependencies and run commands through the development entrypoint:

pnpm install
node ./bin/dev.js lists

Authentication

Commands that call the Bring API need your Bring account credentials. The recommended setup is to provide them through environment variables:

export BRING_EMAIL="[email protected]"
export BRING_PASSWORD="your-password"

You can also pass credentials per command:

bring lists --email [email protected] --password your-password

Environment variables are preferred because they keep credentials out of command history and make repeated usage simpler. This CLI does not currently store credentials or session tokens.

Commands

bring lists

Prints the shopping lists available to the authenticated Bring account.

bring lists

Default text output:

Name       UUID    Theme
Groceries  list-1  ch.publisheria.bring.theme.home

Supported flags:

  • --email <value>: Bring account email. Defaults to BRING_EMAIL.
  • --password <value>: Bring account password. Defaults to BRING_PASSWORD.
  • --format text|json|csv|tsv: Output format. Defaults to text.

Examples:

bring lists --format json
bring lists --format csv
bring lists --format tsv

List output fields are name, listUuid, and theme.

bring items LIST

Prints items for one Bring shopping list. LIST can be either a list UUID or a case-insensitive exact list name. If multiple lists share the same name, pass the UUID.

bring items list-1
bring items Groceries

Default text output:

Section   Name   Specification
purchase  Milk   2 liters
recently  Eggs   10

Supported flags:

  • --email <value>: Bring account email. Defaults to BRING_EMAIL.
  • --password <value>: Bring account password. Defaults to BRING_PASSWORD.
  • --format text|json|csv|tsv: Output format. Defaults to text.
  • --section all|purchase|recently: Item section to print. Defaults to all.
  • --locale <value>: Translation locale. Defaults to the current system locale.
  • --no-translate: Print raw Bring item names without loading translations.

Examples:

bring items Groceries --section purchase
bring items list-1 --no-translate
bring items Groceries --locale de-DE --format json

Translated item output includes originalName when Bring returns a translated name:

[
  {
    "section": "purchase",
    "name": "Milch",
    "originalName": "Milk",
    "specification": "2 liters"
  }
]

Item output fields are section, name, originalName, and specification.

bring items add LIST NAME

Adds or updates one item in a Bring shopping list. LIST can be either a list UUID or an exact list name. By default, NAME is matched case-insensitively against Bring translations for the current system locale. When a translated value matches, the source item name is saved with the casing returned by Bring. If no translation exists, the raw name is saved with the casing passed on the command line.

bring items add list-1 mleko
bring items add groceries mleko --spec "2 liters"

Default text output:

Added mleko to Groceries (list-1); saved as: Milk; specification: 2 liters

Supported flags:

  • --email <value>: Bring account email. Defaults to BRING_EMAIL.
  • --password <value>: Bring account password. Defaults to BRING_PASSWORD.
  • --format text|json|csv|tsv: Output format. Defaults to text.
  • --locale <value>: Translation locale. Defaults to the current system locale.
  • --no-translate: Save the raw item name without loading translations.
  • --spec <value>: Item specification.

Examples:

bring items add groceries mleko --locale pl-PL
bring items add list-1 Bread --no-translate
bring items add Groceries Mleko --spec "2 liters" --format json

Added item output fields are listUuid, listName, name, originalName, and specification.

Output Formats

Bring commands that print structured data support the same output formats:

  • text: readable table output for terminal usage
  • json: pretty-printed JSON
  • csv: comma-separated rows with a header
  • tsv: tab-separated rows with a header

Help

Use the built-in help command to inspect command usage:

bring help
bring help lists
bring help items
bring help items add

oclif also provides framework-level commands such as autocomplete and plugin management. They are available through the runtime, but they are not part of the Bring shopping workflow documented here.

Development

Common project commands:

pnpm run build
pnpm test
pnpm run lint
pnpm run format:check

Formatting is handled by Prettier using the existing oclif Prettier config. Staged files are formatted automatically by the Husky pre-commit hook through lint-staged.