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

@flagsmith/cli_linux_amd64

v2.0.0

Published

The Flagsmith command-line interface

Downloads

291

Readme

Flagsmith CLI

The Flagsmith command-line interface helps you manage and roll out your feature flags without leaving your terminal.

Install

brew install Flagsmith/tap/flagsmith

Or:

curl -fsSL https://get.flagsmith.com | sh

Installs to $HOME/.local/bin and adds it to your PATH. Options:

curl -fsSL https://get.flagsmith.com | sh -s -- --version v2.0.0 --bin-dir /usr/local/bin --no-modify-path
curl -fsSL https://get.flagsmith.com | sh -s -- --help

FLAGSMITH_CLI_VERSION, FLAGSMITH_INSTALL_DIR and FLAGSMITH_NO_MODIFY_PATH do the same if exported first.

To pin the installer itself, fetch it at a commit you trust: raw.githubusercontent.com/Flagsmith/flagsmith-cli/<sha>/install.sh.

On Windows:

irm https://raw.githubusercontent.com/Flagsmith/flagsmith-cli/main/install.ps1 | iex

Using npm:

npm install -g @flagsmith/cli

Alternatively, go install github.com/Flagsmith/flagsmith-cli/[email protected] (installs as flagsmith-cli), or grab an archive from Releases.

Build

go build -o flagsmith .

Docker

docker run --rm -v "$PWD:/work" -e FLAGSMITH_API_KEY ghcr.io/flagsmith/flagsmith-cli flag list

A container has no keyring, so flagsmith login cannot store credentials there — pass FLAGSMITH_API_KEY or FLAGSMITH_ENVIRONMENT_KEY.

Quickstart

flagsmith init          # log in, pick a project + environment, write flagsmith.json
flagsmith flag list    # list the flags in the current environment

Commands

Full reference for every command and flag: https://flagsmith.github.io/flagsmith-cli/.

Reading works against any Flagsmith instance. Changing flags — flag update, flag enable/disable, flag reorder, flag delete — needs Flagsmith 2.263.0 or newer.

  • flagsmith init — bind the current directory to a project (writes flagsmith.json).
  • flagsmith flag list — list feature flags in the current environment.
  • flagsmith flag get <feature> — show a single flag's state (--segment <id> or --identifier <id> for an override).
  • flagsmith flag update <feature> — toggle (--enable/--disable), set the value (--value, --type), or re-weight a multivariate flag's variants (--weight <key|id>=<percentage>); --segment <id> or --identifier <id> targets an override.
  • flagsmith flag enable|disable <feature> — shorthand for flag update --enable/--disable (same --segment/--identifier targeting).
  • flagsmith flag delete <feature> --segment <id>|--identifier <id> — delete a segment or identity override.
  • flagsmith segment list — list segments (--include-feature-specific to include feature-scoped ones).
  • flagsmith segment get <segment> — show a segment and its rule tree.
  • flagsmith segment create <name> --rules @rule.json — create a segment (--description, --feature).
  • flagsmith segment update <segment> — replace the rules (--rules), description, or feature.
  • flagsmith segment delete <segment> — delete a segment.
  • flagsmith feature list — list project features (--include-archived).
  • flagsmith feature get <feature> — show a feature and its variants.
  • flagsmith feature create <name> — create a feature (--value, --enabled, --description, --variants).
  • flagsmith feature update <feature> — update description or archive (--description, --archive/--unarchive).
  • flagsmith feature delete <feature> — delete a feature.
  • flagsmith feature variant list|add|update|delete <feature> — manage a multivariate feature's variants (by id or key).
  • flagsmith organisation list|get|create|update|delete (alias org) — manage organisations.
  • flagsmith project list|get|create|update|delete — manage projects (create uses --organisation).
  • flagsmith environment list|get|create|update|delete|clone (alias env) — manage environments (by name or API key).
  • flagsmith environment key list|create|delete <environment> — manage server-side SDK keys.
  • flagsmith environment document [environment] — output the environment document (local-evaluation JSON).
  • flagsmith evaluate [feature] (alias eval) — the flags an SDK resolves for the current environment (--identity, --trait key=value, --persist); --js writes the state a frontend SDK hydrates from, --test fails when a named flag is disabled.
  • flagsmith config — show the resolved context and where each value comes from.
  • flagsmith login / logout — browser OAuth (PKCE, loopback); also auth login/auth logout.
  • flagsmith auth status — identity, organisations, credential source, token expiry.
  • flagsmith auth token — print the active Admin API credential for curl/scripts.
  • flagsmith api <path> — call any Flagsmith endpoint with the CLI's credentials applied (curl-like; --sdk for the SDK API, -F/-f fields).

Conventions

  • --json (or FLAGSMITH_JSON_OUTPUT) for machine-readable output; --jq <expr> to filter it.
  • Static credentials: FLAGSMITH_API_KEY (Admin API), FLAGSMITH_ENVIRONMENT_KEY (SDK). When self-hosting Flagsmith, append the host and port, doubling - and writing . and : as _: https://flagsmith-staging.com:8000 reads FLAGSMITH_API_KEY_flagsmith__staging_com_8000.
  • Self-hosted: --api-url or FLAGSMITH_API_URL.