@withgates/cli
v0.2.0
Published
The Gates command line: sign in, create flags, roll them out, and hand the whole thing to your coding agent through a skill and an MCP server.
Maintainers
Readme
@withgates/cli
The Gates command line, and the way a coding agent ships a feature behind a Gates flag for you.
npx @withgates/cli login
npx @withgates/cli skill install --mcpThen ask your agent: ship my first Gates flag. It installs
@withgates/expo, wires the provider with your project's key, creates the
flag and reads it in code. Everything it does goes through this CLI as you.
By hand
gates # where you stand, and what to do next
gates projects # what you can see
gates link <projectId> # remember it in .gates.json
gates init --env development # install the SDK, print the provider
gates flags create new-checkout # off everywhere until rolled out
gates flags rollout new-checkout --env production --percent 10
gates flags kill new-checkout # off, everywhere, on the next syncEvery command takes --json. GATES_TOKEN and GATES_API_URL override the
saved session, for CI.
For agents
gates skill install [--agent claude|cursor|agents|all] [--mcp]writes the skill into the project and, with--mcp, adds thegatesMCP server to.mcp.json/.cursor/mcp.json.gates mcpruns the MCP server over stdio. Tools:list_projects,get_setup,get_environment_keys,list_flags,create_flag,kill_flag,restore_flag,set_rollout,list_releases. Resource:gates://skill.
Docs: https://usegates.app/docs/cli
