Netlify-sdk V0.8.5 - createEnvironmentVariable

This codemod changes createEnvironmentVariable to pass an object instead of the separate arguments as required in Netlify SDK v0.8.5.

Netlify SDK
jscodeshift
Estimated time saving
~3 minutes/occurrence
Change mode
Autonomous
Applicability criteria

Netlify SDK v0.8.5 or higher.

Made by
Codemod.com
Codemod.com

Usage →

Codemod CLI:

intalling vs code extension tooltip icon
codemod netlify/0.8.5/createEnvironmentVariable
copy CLI command icon

Codemod VS Code extension:

intalling vs code extension tooltip icon
vs code logo
Run in VS Code

Description

This codemod changes createEnvironmentVariable to pass an object instead of the separate arguments as required in Netlify SDK v0.8.5.

Before

createEnvironmentVariable(accountId, siteId, key, values);

After

createEnvironmentVariable({
	accountId: accountId,
	siteId: siteId,
	key: key,
	values: values,
});