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

@tolgee/cli

v2.21.0

Published

A tool to interact with the Tolgee Platform through CLI

Readme

Tolgee CLI 🐁

A CLI tool to interact with Tolgee directly from your terminal.

The Tolgee CLI lets you pull strings from the Tolgee platform into your projects, push local strings to the Tolgee platform, extract strings from your code, and much more!

Tolgee CLI screenshot

Installation

The Tolgee CLI is published as a NPM package. You simply need to install it, and you're good to go!

# npm
npm i --global @tolgee/cli

# Yarn
yarn global add @tolgee/cli

# pnpm
pnpm add --global @tolgee/cli

See our documentation for more information.

Docker Installation

Alternatively, you can use the Docker image:

# Pull the latest image
docker pull tolgee/cli:latest

# Run directly
docker run --rm tolgee/cli:latest --help

# Create an alias for easier usage
alias tolgee="docker run --rm -v \$(pwd):/workspace -w /workspace tolgee/cli:latest"

The Docker images are available on Docker Hub and support multiple platforms (linux/amd64, linux/arm64).

Usage

Once installed, you'll have access to the tolgee command. Run tolgee help to see all the supported commands, their options and arguments.

Make sure to give the docs a look!

Authentication

Run tolgee login with no arguments to sign in through your browser — you approve the CLI on a Tolgee consent screen and no key is generated, copied or pasted. It needs a browser on the same machine as the CLI, since the sign-in finishes by redirecting to a local address the CLI is listening on. With --no-browser the CLI prints the URL instead of opening one; the browser you open it in still has to reach this machine.

tolgee login                # browser sign-in
tolgee login <API key>      # a Personal Access Token or Project API Key, as before
tolgee login --list         # what you are signed in as, per instance
tolgee logout               # ends the session on the server too
tolgee logout --project     # drops only the API key stored for one project

If you approve the sign-in for a single project, the CLI takes that project from the approval, so commands need no --project-id and no projectId in .tolgeerc — the same way a project API key names its own project. Approving all projects leaves the choice to you, so name the project as before.

On a machine with no browser — CI, a container, an SSH session without port forwarding — use an API key, either with --api-key or through the TOLGEE_API_KEY environment variable. Browser sign-in refuses outright in CI, --no-browser included, rather than waiting for an approval that cannot come. If the CI guess is wrong and someone can approve the sign-in, set TOLGEE_BROWSER_LOGIN_IN_CI=1.

Browser sign-in requires a Tolgee instance running the OAuth authorization server; against one that does not, the CLI says so and points you at API keys.

Contributing

Contributions are welcome! Check out HACKING.md for some information about the project internals and information about the workflow.


🧀