- Notifications
You must be signed in to change notification settings - Fork1.1k
feat(cli): add --no-wait and --no-prompt flags to create command#21246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
Add two new flags to the `coder create` command:1. `--no-wait`: Returns immediately after triggering workspace creation, without waiting for the build to complete. The workspace build will continue in the background.2. `--no-prompt`: Disables all interactive prompts. Parameters with default values will use those defaults. Required parameters without defaults, missing workspace name, or missing template name will cause the command to fail with an appropriate error message.These flags enable non-interactive automation scenarios where the CLIshould fail fast if any required input is missing, rather than hangingwhile waiting for user input.🤖 Generated with [Claude Code](https://claude.com/claude-code)Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
I have read the CLA Document and I hereby sign the CLA Jason Barnett seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, pleaseadd the email address used for this commit to your account. |
Summary
Closes#21245
Add two new flags to the
coder createcommand to support non-interactive automation scenarios like GitHub Actions.Changes
--no-waitflagReturns immediately after triggering workspace creation. The workspace build continues in the background. This is consistent with the existing
--no-waitflag oncoder start.--no-promptflagDisables all interactive prompts. The command will:
Usage Examples
Test plan
--no-waitflag--no-promptflag with missing workspace name--no-promptflag with missing template name--no-promptflag success case🤖 Generated withClaude Code