Overview

I had the opportunity to deploy local environment data to a production environment in Strapi, so I tried using the following Data transfer feature.

https://docs.strapi.io/dev-docs/data-management/transfer

Steps

Production Environment Side

Issue a Transfer Token on the production environment side.

Local Environment

Let’s say the production site is https://strapi.example.org and the token is xxx.

With the following command, I was able to deploy the local environment data to the production environment.

strapi transfer --to https://strapi.example.org/admin --to-token xxx

Please note that existing data will be overwritten.

? The transfer will delete existing data from the remote Strapi! Are you sure you want to proceed? Yes
Starting transfer...
✔ entities: 71 transfered (size: 73.6 KB) (elapsed: 1680 ms)
✔ links: 54 transfered (size: 10.3 KB) (elapsed: 687 ms)
...

Summary

I hope this serves as a useful reference when using Strapi.