Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(export): added info about the flag sort-by-key for export command #279

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading