Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
jasonwbarnett wants to merge1 commit intocoder:main
base:main
Choose a base branch
Loading
fromjasonwbarnett:jwb/create-no-wait-no-prompt

Conversation

@jasonwbarnett
Copy link

Summary

Closes#21245

Add two new flags to thecoder create command to support non-interactive automation scenarios like GitHub Actions.

Changes

--no-wait flag

Returns immediately after triggering workspace creation. The workspace build continues in the background. This is consistent with the existing--no-wait flag oncoder start.

--no-prompt flag

Disables all interactive prompts. The command will:

  • Use default values for parameters that have defaults
  • Fail with a clear error message if:
    • Workspace name is not provided
    • Template name is not provided
    • Required parameters without defaults are missing
    • Preset selection is needed but no default preset exists

Usage Examples

# Create workspace without waiting for build to completecoder create my-workspace --template my-template -y --no-wait# Create workspace non-interactively (fails if any prompting would be needed)coder create my-workspace --template my-template --no-prompt -y# Combine both for fully non-interactive, async creation (ideal for CI/CD)coder create my-workspace --template my-template --no-prompt --no-wait -y

Test plan

  • Added unit tests for--no-wait flag
  • Added unit tests for--no-prompt flag with missing workspace name
  • Added unit tests for--no-prompt flag with missing template name
  • Added unit tests for--no-prompt flag success case
  • All existing tests pass

🤖 Generated withClaude Code

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>
@cdr-botcdr-botbot added the communityPull Requests and issues created by the community. labelDec 12, 2025
@github-actions
Copy link


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign ourContributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


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.
You can retrigger this bot by commentingrecheck in this Pull Request.Posted by theCLA Assistant Lite bot.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

@jasonwbarnettjasonwbarnett

Labels

communityPull Requests and issues created by the community.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

feat(cli): add --no-wait and --no-prompt flags to coder create command

1 participant

@jasonwbarnett

[8]ページ先頭

©2009-2025 Movatter.jp