You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `strapi transfer` command streams your data from one Strapi instance to another Strapi instance. The `transfer` command uses strict schema matching, meaning your two Strapi instances need to be exact copies of each other except for the contained data. The default `transfer` command transfers your content (entities and relations), files (assets), project configuration, and schemas. The command allows you to transfer data:
@@ -38,6 +39,25 @@ Either `--to` or `--from` is required.
38
39
Data transfers are authorized by transfer tokens, which are [managed from the admin panel](/user-docs/settings/managing-global-settings#managing-transfer-tokens). From the admin panel, you can manage role-based permissions to tokens including `view`, `create`, `read`, `regenerate` and `delete`.
39
40
:::
40
41
42
+
:::warning
43
+
When using nginx and a server that proxies requests into a localhost, issues might occur. To prevent them, ensure all the headers are forwarded correctly by changing the configuration file in `/etc/nginx/sites-available/yourdomain` as follows:
npm run strapi transfer -- --to https://example.com/admin --to-token my-transfer-token --force
161
+
npm run strapi transfer -- --to https://example.com/admin --to-token my-transfer-token --force
142
162
```
143
163
144
164
</TabItem>
@@ -147,7 +167,7 @@ npm run strapi transfer -- --to https://example.com/admin --to-token my-transfer
147
167
148
168
## Include only specified data types during transfer
149
169
150
-
The default `strapi transfer`command transfers your content (entities and relations), files (assets), project configuration, and schemas. The `--only` option allows you to transfer only the listed items by passing a comma-separated string with no spaces between the types. The available values are `content`, `files`, and `config`. Schemas are always transferred, as schema matching is used for`strapi transfer`.
170
+
The default `strapi transfer`command transfers your content (entities and relations), files (assets), project configuration, and schemas. The `--only` option allows you to transfer only the listed items by passing a comma-separated string with no spaces between the types. The available values are `content`, `files`, and `config`. Schemas are always transferred, as schema matching is used for`strapi transfer`.
151
171
152
172
### Example: only transfer files
153
173
@@ -219,30 +239,30 @@ The `transfer` command is not intended for transferring data between two local i
219
239
220
240
1. Create a new Strapi project using the installation command:
2. Create at least 1 content type in the project. See the [Quick Start Guide](/dev-docs/quick-start) if you need instructions on creating your first content type.
227
247
228
-
:::caution
229
-
Do not add any data to your project at this step.
230
-
:::
248
+
:::caution
249
+
Do not add any data to your project at this step.
250
+
:::
231
251
232
252
3. Commit the project to a git repository:
233
253
234
-
```bash
235
-
git init
236
-
git add .
237
-
git commit -m "first commit"
238
-
```
254
+
```bash
255
+
git init
256
+
git add .
257
+
git commit -m "first commit"
258
+
```
239
259
240
260
4. Clone the project repository:
241
261
242
-
```bash
243
-
cd .. # move to the parent directory
244
-
git clone <path to created git repository>.git/ <new-instance-name>
245
-
```
262
+
```bash
263
+
cd .. # move to the parent directory
264
+
git clone <path to created git repository>.git/ <new-instance-name>
0 commit comments