Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

Flagsmith Legacy CLI

warning

The npm-based CLI (@flagsmith/cli) is deprecated and no longer maintained. Use the new Flagsmith CLI instead.

Installation

Install globally:

npm install -g @flagsmith/cli

Sample Usage

USAGE
$ flagsmith get [ENVIRONMENT] [-o <value>] [-a <value>] [-i <value>]

ARGUMENTS
ENVIRONMENT The flagsmith environment key to use,
defaults to the environment variable FLAGSMITH_ENVIRONMENT

FLAGS
-a, --api=<value> The API URL to fetch the feature flags from
-i, --identity=<value> The identity for which to fetch feature flags
-o, --output=<value> [default: ./flagsmith.json] The file path output

DESCRIPTION
Retrieve flagsmith feature flags from the Flagsmith API and output them to a file.

EXAMPLES
$ FLAGSMITH_ENVIRONMENT=x flagsmith get

$ flagsmith get <ENVIRONMENT_ID>

$ flagsmith get --o ./my-file.json

$ flagsmith get --a https://flagsmith.example.com/api/v1/

$ flagsmith get --i flagsmith_identity