ray project list
List and inspect projects in a workspace
List and inspect projects in a workspace
Synopsis
ray project list [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 |
--search <query>(--query <query>) | string | Filter secret keys by case-insensitive substring match (e.g. --search DB_) |
--ci | boolean | Optimize execution for headless CI/CD runners (disables spinners, prompts, colors, and update checks) |
--json | boolean | Format command output as structured JSON for scripting, automation, and piping |
Common Examples
1. Canonical project listing
Subcommand invocation to inspect all projects within the resolved workspace.
ray project list2. Search projects matching keyword
Filters projects by matching name or slug.
ray project list --search api3. Machine-readable JSON project list
Emits raw JSON project metadata for shell pipelines and automation scripts.
ray project listExit 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.