Skip to content

Commit

Permalink
docs(export): added info about the flag sort-by-key for export command
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Dmytrenko <[email protected]>
  • Loading branch information
erka committed Oct 2, 2024
1 parent a34f7b6 commit 1a3fd34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/commands/export.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ flipt export [flags]
-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)
--sort-by-key sort exported resources by key. (flags, flag variants and segments. namespaces will be sorted with --all-namespaces)
-t, --token string client token used to authenticate access to remote Flipt instance when exporting.
```

Expand Down
7 changes: 7 additions & 0 deletions operations/import-export.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,11 @@ flipt export --namespaces production
namespaces.
</Tip>

By default, Flipt exports resources in the _natural_ order of the selected storage type. While the output is typically consistent within the same storage type,
import/export operations can yield varying results across different storage types. To enhance consistency during export, the --sort-by-key flag can be used.

```yaml
flipt export --sort-by-key --all-namespaces
```

See the [CLI reference](/cli/commands/export) for more information on the `export` command.

0 comments on commit 1a3fd34

Please sign in to comment.