Skip to content

Commit

Permalink
Add missing options for export/import to CLI ref.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwizla authored Jan 15, 2025
1 parent b63d1d3 commit d76f119
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docusaurus/docs/dev-docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,13 @@ The exported file is automatically named using the format `export_YYYYMMDDHHMMSS
| ------------------- | :----: | -------------------------------------------------------------------------------------------------------------------------- |
| `‑‑no‑encrypt` | - | Disables file encryption and disables the `key` option. |
| `‑‑no‑compress` | - | Disables file compression. |
| `-f, --file <file>` | Name to use for the exported file (without extensions). |
| `-k`, <br/>`--key` | string | Passes the encryption key as part of the `export` command. <br/> The `--key` option can't be combined with `--no-encrypt`. |
| `-f`, <br/>`--file` | string | Specifies the export filename. Do not include a file extension. |
| `--exclude` | string | Exclude data using comma-separated data types. The available types are: `content`, `files`, and `config`. |
| `--only` | string | Include only these data. The available types are: `content`, `files`, and `config`. |
| `-h`, <br/>`--help` | - | Displays help for the `strapi export` command. |
| `--verbose` | Enable verbose logs. |

**Examples**

Expand Down Expand Up @@ -298,6 +300,11 @@ npm run strapi import
| `-k,` `--key` | string | Provide the encryption key in the command instead of a subsequent prompt. |
| `-f`, `--file` | string | Path and filename with extension for the data to be imported. |
| `-h`, `--help` | - | Display the `strapi import` help commands. |
| `--force` | Automatically answer "yes" to all prompts, including potentially destructive requests, and run non-interactively. |
| `--exclude` | Exclude data using comma-separated data types. The available types are: `content`, `files`, and `config`. |
| `--only` | Include only these data. The available types are: `content`, `files`, and `config`. |
| `--throttle` | Time in milliseconds to inject an artificial delay between the "chunks" during a transfer. |
| `--verbose` | Enable verbose logs. |

**Examples**

Expand Down

0 comments on commit d76f119

Please sign in to comment.