Skip to content

Updated README and adding an example AGENTS.md file - #94

Draft
asaphko wants to merge 5 commits into
mainfrom
docs/add-example-agents-md
Draft

Updated README and adding an example AGENTS.md file#94
asaphko wants to merge 5 commits into
mainfrom
docs/add-example-agents-md

Conversation

@asaphko

@asaphko asaphko commented Aug 18, 2026

Copy link
Copy Markdown

No description provided.

@asaphko asaphko self-assigned this Aug 18, 2026
@coderabbitai

coderabbitai Bot commented Aug 18, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 2daa1540-4067-4568-ad7c-b927c8b3bfbb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md

[![Release](https://img.shields.io/github/v/release/Flagsmith/flagsmith-cli)](https://github.com/Flagsmith/flagsmith-cli/releases) [![License](https://img.shields.io/badge/license-MIT-blue)](./LICENSE)

---

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer a heading here instead of a divider.

Comment thread README.md

```sh
brew install Flagsmith/tap/flagsmith
## Stop a release that depends on a flag that's off

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this section gains an H2 heading, these become H3 and don't read as noisy as they do now.

Ideally, they shouldn't be headings at all. Landing page layouts don't really work well in documentation.

Comment thread README.md
Comment thread README.md Outdated
Comment thread README.md
Comment on lines +121 to +139
## Which Flagsmith CLI is this?

There are two, and they do different jobs.

| | `flagsmith-cli` (npm) | `flagsmith` (this one) |
|---|---|---|
| **What it's for** | Fetching flag state at build time and writing it to a file | Managing your Flagsmith account, and gating pipelines |
| **Reads / writes** | Read-only | Read and write |
| **Installed with** | npm | curl, PowerShell, Docker, `go install` |
| **Needs** | Node | Nothing |

**Already using the npm package?** Keep using it — it still works and we'll give notice before that changes. When you want to consolidate, this CLI covers the same ground:

```bash
flagsmith evaluate --js # the state a frontend SDK hydrates from
flagsmith environment document # the local-evaluation environment document
```

This tool is version 2 because it shares a repository and a name with the older one. It is not an upgrade of it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This really should be a simple deprecation notice / migration guide. Instead, it confuses people, and their agents:

It is not an upgrade of it.

It very much is. It's a replacement!

Comment thread README.md Outdated
Comment thread README.md

- Documentation: [docs.flagsmith.com](https://docs.flagsmith.com/integrating-with-flagsmith/CLI)
- Bugs and requests: [open an issue](https://github.com/Flagsmith/flagsmith-cli/issues)
- Include `flagsmith --version` and how you installed it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add an issue template instead?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure what that exactly means, can you show me an example?

@khvn26 khvn26 Aug 18, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread README.md Outdated
asaphko and others added 4 commits August 18, 2026 12:33
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
Co-authored-by: Kim Gustyr <kim.gustyr@flagsmith.com>
Comment thread README.md
## Docker
## Using it with a coding agent

The CLI is a smaller context cost than a full tool catalogue: your agent gets one binary with self-documenting help, and pays for it only when it runs something.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CLI is a smaller context cost than a full tool catalogue

context?

Comment thread README.md
```sh
flagsmith init # log in, pick a project + environment, write flagsmith.json
flagsmith flag list # list the flags in the current environment
## Command reference

@khvn26 khvn26 Aug 19, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CLI docs over at docs.flagsmith.com reference #commands, let's change this heading back:

Suggested change
## Command reference
## Commands

Comment thread README.md
Comment on lines +105 to 109
Self-hosted? Point at your own instance with `--api-url` or `FLAGSMITH_API_URL`:

```bash
flagsmith --api-url https://flagsmith.internal/api/v1 flag list
```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to add info on host-scoped static credentials here

Comment thread README.md
The next-generation Flagsmith command-line interface (work in progress).
Manage Flagsmith from your terminal and your pipeline.

## Install

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CLI docs over at docs.flagsmith.com reference #install. we should keep the Install heading, or change that reference in Flagsmith/flagsmith#8045.

Comment thread README.md
```powershell
irm https://raw.githubusercontent.com/Flagsmith/flagsmith-cli/main/install.ps1 | iex
irm https://get.flagsmith.com/install.ps1 | iex
```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

homebrew instruction got swallowed in a merge conflict. we'll also have an npm instruction soon

@khvn26 khvn26 self-assigned this Aug 20, 2026
Comment thread README.md
curl -sSL https://get.flagsmith.com | sh
flagsmith init

[![Release](https://img.shields.io/github/v/release/Flagsmith/flagsmith-cli)](https://github.com/Flagsmith/flagsmith-cli/releases) [![License](https://img.shields.io/badge/license-MIT-blue)](./LICENSE)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ```bash fence opened above is never closed, so the badges line and the whole rest of the README get swallowed into the code block. Needs a closing fence before the badges.

Comment thread README.md
Installs to `$HOME/.local/bin` and adds it to your `PATH`. Options:
Writes a `flagsmith.json` you commit with your code, recording which project and environment this repo maps to. New teammates can clone, log in, and they're pointed at the right project. Prevents complex setup docs and changes landing in the wrong environment.

If you work across several projects, this is even more uesful, both for you and for LLMs interacting on your behalf.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: "uesful" -> "useful"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants