ray env create
Create a new environment via the Ray Console
Create a new environment via the Ray Console
Synopsis
ray env create [options]Flags & Options
| Flag / Option | Type | Description |
|---|---|---|
-w, --workspace <id_or_name> | string | Target workspace ID or slug to link or query, bypassing interactive selection |
-p, --project <id_or_name> | string | Target project ID or slug to link or query, bypassing interactive selection |
Common Examples
1. Interactive environment creation
Opens the Ray Console to interactively create and configure a new environment.
ray env create2. Create environment for a specific project
Targets a specific project ID when creating a new environment.
ray env create --project my-projectExit Codes
| Code | Meaning | Recommended Action |
|---|---|---|
| 0 | Success. The command completed with no errors. | None required. |
| 1 | Runtime or execution failure. A child process returned non-zero status or a general error occurred. | Inspect process output or run with --verbose. |
| 2 | Authentication failed. Token is missing, expired, or invalid. | Run `ray login` or update `RAY_TOKEN`. |
| 3 | Configuration or binding error. Project or environment context was not found. | Run `ray init` or specify `--project` and `--env`. |
| 4 | Network or API failure. Failed to reach the Ray Secrets vault. | Check internet connection or run `ray doctor`. |
Ready to eliminate plaintext secrets?
Create a workspace to organize environments, invite your team, and generate scoped Service Tokens for CI/CD.