ray completion
Automated setup for shell autocompletion
Automated setup for shell autocompletion
Synopsis
ray completion [options]Flags & Options
| Flag / Option | Type | Description |
|---|---|---|
--install | boolean | Automatically detect shell profile and install shell autocompletion script |
Common Examples
1. Interactive shell setup wizard
Launches interactive prompts to select and configure shell autocompletion for Bash, Zsh, Fish, or PowerShell.
ray completion2. Automatically install completion script to active shell profile
Detects current shell environment and appends the completion initialization hook to your shell profile (.zshrc, .bashrc, or $PROFILE).
ray completion --installExit 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.