Create Environment
create-environmentCreate a new Railway environment for your project, optionally duplicating an existing environment and setting service variables to manage configurations.
Instructions
Create a new Railway environment for the currently linked project. Optionally duplicate an existing environment and set service variables.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspacePath | Yes | The path to the workspace where the environment should be created | |
| environmentName | Yes | The name for the new environment | |
| duplicateEnvironment | No | The name of an existing environment to duplicate | |
| serviceVariables | No | Service variables to assign in the new environment (only works when duplicating) |