
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
contentful-migration-helper
Advanced tools
[](https://github.com/pnarielwala/contentful_scripts/actions/workflows/main.workflow.yml)[ {
const testType = migration.createContentType('testType').name('Test Type');
testType.createField('title').type('Symbol').name('Title').required(true);
testType.displayField('title');
};
When the configuration and migration directory is all setup, then run the following to clone the environment and apply the migrations:
$ yarn contentful-migration-helper migrate -e your-sandbox-env
This will create a clone of your master environment in Contentful and apply the migration files to the newly created your-sandbox-env environment.
If the project uses Typescript for the migration files, ts-node can be utilized to run the command
$ yarn ts-node ./node_modules/.bin/contentful-migration-helper migrate -e your-sandbox-env
See the examples folder for a better reference
Usage: yarn contentful [command] [options]
Options:
-h, --help display help for command
Commands:
migrate Runs migration scripts against an environment cloned from main
delete [options] Deletes environments from the specified workspace (will NOT delete the master environment)
update-alias [options] Updates the main alias to point to the input environment
help [command] display help for command
Runs migration scripts against an environment cloned from main.
$ yarn contentful migrate
? Enter the environment id: demo
? Do you want to skip migration confirmation prompts? Yes
$ yarn contentful migrate -e demo --skip
$ yarn contentful migrate --help
Usage: yarn contentful migrate [options]
Runs migration scripts against an environment cloned from master
Options:
-e --environment-id <id> environment id
--skip skips confirmation prompts before executing the migration scripts
(default: false)
-h, --help display help for command
Deletes any environments (except for master) from the specified workspace
$ yarn contentful delete
? Select the environment to delete: demo
? Are you sure you want to delete the environment demo? Yes
$ yarn contentful delete -e demo --skip
Usage: yarn contentful delete [options]
Deletes environments from the specified workspace (will NOT delete the main environment)
Options:
-e --environment-id <id> environment id
--skip skips confirmation prompts before deleting the environment (default: false)
-h, --help display help for command
Usage: yarn contentful update-alias [options]
Updates the main alias to point to the input environment
Options:
-e --environment-id <id> environment id
-mt --management-token <TOKEN> contentful management token
-s --space-id <SPACE_ID> contentful space id
-rm --remove-unchanged remove input environment if it is identical to main (alias will remain unchanged)
-h, --help display help for command
FAQs
[](https://github.com/pnarielwala/contentful_scripts/actions/workflows/main.workflow.yml)[
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.