Install the Contentful CLI with:
pnpm add -g contentful-cli
Then login in with:
contentful login
Now you you can use the scripts to import or export the content-types into Contentful
pnpm export:schema
or
pnpm import:schema // did NOT test this one yet