Copy content from one environment to another

What is the easiest way to copy all content models and content from one environment to another? Ideally using a github action.

you can do this using Contentful CLI.

Export command → Contentful space --space-id $spaceId$ --environment-id $environment$ export
Import command → Contentful space --space-id $spaceId$ --environment-id $environment$ import

More options during import/export can be found in the image attached


Besides CLI exporting option where you can export desired content models and content itself, even easier is to clone environment if you don’t want to keep existing content on target environment.
If target environment already exists, but you want there only full content and models from another one, you can delete that environment e.g. ‘acceptance’ and recreate it again cloning source environment ‘master/main’.