create-environment
Add a new environment, such as QA, to an Infisical project; it starts empty, so copy secrets into it with create-secret.
Instructions
Add an environment, such as QA, to a project. It starts empty; copy secrets into it with create-secret.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"name": "<name>",
"slug": "<slug>"
},
"name": "create-environment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The display name of the environment, such as QA | |
| slug | Yes | The slug the other tools use for the environment, such as qa. Lowercase letters, numbers and hyphens | |
| position | No | Where the environment appears in the project's list. Defaults to last | |
| projectId | Yes | The ID of the project, from list-projects. A project slug or exact project name also works. |