-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-template-docs
- Loading branch information
Showing
26 changed files
with
711 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: "config edit" | ||
description: "Edit Flipt configuration" | ||
--- | ||
|
||
``` | ||
flipt config edit [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for edit | ||
``` | ||
|
||
### Inherited Options | ||
|
||
``` | ||
--config string path to config file | ||
``` | ||
|
||
### More Info | ||
|
||
See the [configuration](/configuration) section of the documentation for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: "config init" | ||
description: "Initialize Flipt configuration" | ||
--- | ||
|
||
``` | ||
flipt config init [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-y, --force Overwrite existing configuration file | ||
-h, --help help for init | ||
``` | ||
|
||
### Inherited Options | ||
|
||
``` | ||
--config string path to config file | ||
``` | ||
|
||
### More Info | ||
|
||
See the [configuration](/configuration) section of the documentation for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
title: "export" | ||
description: "Export Flipt data to file/stdout" | ||
--- | ||
|
||
``` | ||
flipt export [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-a, --address string address of remote Flipt instance to export from (defaults to direct DB export if not supplied) | ||
--all-namespaces export all namespaces. (mutually exclusive with --namespaces) | ||
--config string path to config file | ||
-h, --help help for export | ||
--namespaces string comma-delimited list of namespaces to export from. (mutually exclusive with --all-namespaces) (default "default") | ||
-o, --output string export to filename (default STDOUT) | ||
-t, --token string client token used to authenticate access to remote Flipt instance when exporting. | ||
``` | ||
|
||
### More Info | ||
|
||
See the [import/export](/operations/import-export) section of the documentation for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: "import" | ||
description: "Import Flipt data from file/stdin" | ||
--- | ||
|
||
``` | ||
flipt import [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-a, --address string address of remote Flipt instance to import into (defaults to direct DB import if not supplied) | ||
--config string path to config file | ||
--drop drop database before import | ||
-h, --help help for import | ||
--stdin import from STDIN | ||
-t, --token string client token used to authenticate access to remote Flipt instance when importing. | ||
``` | ||
|
||
### More Info | ||
|
||
See the [import/export](/operations/import-export) section of the documentation for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
title: "migrate" | ||
description: "Run pending database migrations" | ||
--- | ||
|
||
``` | ||
flipt migrate [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--config string path to config file | ||
-h, --help help for migrate | ||
``` | ||
|
||
### More Info | ||
|
||
See the [migrations](/configuration/storage#migrations) section of the documentation for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
title: "validate" | ||
description: "Validate Flipt flag state (.yaml, .yml) files" | ||
--- | ||
|
||
``` | ||
flipt validate [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-F, --format string output format: json, text (default "text") | ||
-h, --help help for validate | ||
--issue-exit-code int Exit code to use when issues are found (default 1) | ||
``` | ||
|
||
### More Info | ||
|
||
See the [flag state](/configuration/storage#flag-state-configuration) section of the documentation for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
title: "Overview" | ||
description: "Overview of the flipt CLI" | ||
--- | ||
|
||
The `flipt` CLI is a command line interface for managing Flipt. It's useful for configuring your Flipt instance, running migrations, validating `.features.yml` files, and more. | ||
|
||
You can use it in various environments, including your local machine, CI/CD, and more. | ||
|
||
### Installation | ||
|
||
<CodeGroup> | ||
```console Homebrew | ||
brew install flipt-io/brew/flipt | ||
``` | ||
|
||
```console Binary | ||
curl -fsSL https://github.com/flipt-io/flipt/raw/main/install.sh | bash | ||
``` | ||
|
||
</CodeGroup> | ||
|
||
### Usage | ||
|
||
``` | ||
flipt <command> <subcommand> [flags] | ||
``` | ||
|
||
`flipt` with no arguments will run the Flipt server. It will look for a configuration file as described in the [configuration](/configuration/overview#configuration-file) documentation. You can specify a different configuration file with the `--config` flag. | ||
|
||
### Examples | ||
|
||
``` | ||
$ flipt | ||
$ flipt config init | ||
$ flipt --config /path/to/config.yml migrate | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--config string path to config file | ||
-h, --help help for flipt | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.