@@ -15,10 +15,7 @@ The steps to using this to provide default flags are as follows. An example of t
1515
16161 . Install the cli `` npm i flagsmith-cli --save-dev ``
17172 . Call the cli as part of postinstall to create a `` flagsmith.json `` file:
18- ```
19- "postinstall":"flagsmith get <ENV_API_KEY>"
20- ```
21- or
18+
2219``` export FLAGSMITH_ENVIRONMENT=API_KEY ```
2320
2421```
@@ -56,7 +53,7 @@ $ npm install -g flagsmith-cli
5653$ flagsmith COMMAND
5754running command...
5855$ flagsmith (--version)
59- flagsmith-cli/0.1.0 darwin-x64 node-v16.15.1
56+ flagsmith-cli/0.1.2 darwin-arm64 node-v18.13.0
6057$ flagsmith --help [COMMAND]
6158USAGE
6259 $ flagsmith COMMAND
6663# Commands
6764<!-- commands -->
6865* [ ` flagsmith get [ENVIRONMENT] ` ] ( #flagsmith-get-environment )
69- * [ ` flagsmith help [COMMAND ] ` ] ( #flagsmith-help-command )
66+ * [ ` flagsmith help [COMMANDS ] ` ] ( #flagsmith-help-commands )
7067* [ ` flagsmith plugins ` ] ( #flagsmith-plugins )
7168* [ ` flagsmith plugins:install PLUGIN... ` ] ( #flagsmith-pluginsinstall-plugin )
7269* [ ` flagsmith plugins:inspect PLUGIN... ` ] ( #flagsmith-pluginsinspect-plugin )
@@ -83,14 +80,15 @@ Retrieve flagsmith features from the Flagsmith API and output them to a file.
8380
8481```
8582USAGE
86- $ flagsmith get [ENVIRONMENT] [-o <value>] [-a <value>]
83+ $ flagsmith get [ENVIRONMENT] [-o <value>] [-a <value>] [-i <value>]
8784
8885ARGUMENTS
8986 ENVIRONMENT The flagsmith environment key to use, defaults to the environment variable FLAGSMITH_ENVIRONMENT
9087
9188FLAGS
92- -a, --api=<value> The API URL to fetch the feature flags from
93- -o, --output=<value> [default: ./flagsmith.json] The file path output
89+ -a, --api=<value> The API URL to fetch the feature flags from
90+ -i, --identity=<value> The identity for which to fetch feature flags
91+ -o, --output=<value> [default: ./flagsmith.json] The file path output
9492
9593DESCRIPTION
9694 Retrieve flagsmith features from the Flagsmith API and output them to a file.
@@ -107,18 +105,18 @@ EXAMPLES
107105 $ flagsmith get --i flagsmith_identity
108106```
109107
110- _ See code: [ dist/commands/get/index.ts] ( https://github.com/Flagsmith/flagsmith-cli/blob/v0.1.0 /dist/commands/get/index.ts ) _
108+ _ See code: [ dist/commands/get/index.ts] ( https://github.com/Flagsmith/flagsmith-cli/blob/v0.1.2 /dist/commands/get/index.ts ) _
111109
112- ## ` flagsmith help [COMMAND ] `
110+ ## ` flagsmith help [COMMANDS ] `
113111
114112Display help for flagsmith.
115113
116114```
117115USAGE
118- $ flagsmith help [COMMAND ] [-n]
116+ $ flagsmith help [COMMANDS ] [-n]
119117
120118ARGUMENTS
121- COMMAND Command to show help for.
119+ COMMANDS Command to show help for.
122120
123121FLAGS
124122 -n, --nested-commands Include all nested commands in the output.
@@ -127,7 +125,7 @@ DESCRIPTION
127125 Display help for flagsmith.
128126```
129127
130- _ See code: [ @oclif/plugin-help ] ( https://github.com/oclif/plugin-help/blob/v5.1.12 /src/commands/help.ts ) _
128+ _ See code: [ @oclif/plugin-help ] ( https://github.com/oclif/plugin-help/blob/v5.2.5 /src/commands/help.ts ) _
131129
132130## ` flagsmith plugins `
133131
@@ -147,7 +145,7 @@ EXAMPLES
147145 $ flagsmith plugins
148146```
149147
150- _ See code: [ @oclif/plugin-plugins ] ( https://github.com/oclif/plugin-plugins/blob/v2.1.0 /src/commands/plugins/index.ts ) _
148+ _ See code: [ @oclif/plugin-plugins ] ( https://github.com/oclif/plugin-plugins/blob/v2.3.2 /src/commands/plugins/index.ts ) _
151149
152150## ` flagsmith plugins:install PLUGIN... `
153151
@@ -167,7 +165,6 @@ FLAGS
167165
168166DESCRIPTION
169167 Installs a plugin into the CLI.
170-
171168 Can be installed from npm or a git url.
172169
173170 Installation of a user-installed plugin will override a core plugin.
@@ -176,6 +173,7 @@ DESCRIPTION
176173 will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
177174 the CLI without the need to patch and update the whole CLI.
178175
176+
179177ALIASES
180178 $ flagsmith plugins add
181179
@@ -202,6 +200,9 @@ FLAGS
202200 -h, --help Show CLI help.
203201 -v, --verbose
204202
203+ GLOBAL FLAGS
204+ --json Format output as json.
205+
205206DESCRIPTION
206207 Displays installation properties of a plugin.
207208
@@ -227,7 +228,6 @@ FLAGS
227228
228229DESCRIPTION
229230 Installs a plugin into the CLI.
230-
231231 Can be installed from npm or a git url.
232232
233233 Installation of a user-installed plugin will override a core plugin.
@@ -236,6 +236,7 @@ DESCRIPTION
236236 will override the core plugin implementation. This is useful if a user needs to update core plugin functionality in
237237 the CLI without the need to patch and update the whole CLI.
238238
239+
239240ALIASES
240241 $ flagsmith plugins add
241242
@@ -264,12 +265,12 @@ FLAGS
264265
265266DESCRIPTION
266267 Links a plugin into the CLI for development.
267-
268268 Installation of a linked plugin will override a user-installed or core plugin.
269269
270270 e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
271271 command will override the user-installed or core plugin implementation. This is useful for development work.
272272
273+
273274EXAMPLES
274275 $ flagsmith plugins:link myplugin
275276```
0 commit comments