Skip to content

feat(new): add --container-runtime flag (parity with mxcli init)#740

Open
kaspergff wants to merge 1 commit into
mendixlabs:mainfrom
kaspergff:feature/739-new-container-runtime
Open

feat(new): add --container-runtime flag (parity with mxcli init)#740
kaspergff wants to merge 1 commit into
mendixlabs:mainfrom
kaspergff:feature/739-new-container-runtime

Conversation

@kaspergff

Copy link
Copy Markdown

Summary

  • mxcli new always generated a Docker-based devcontainer because it called initCmd.Run() without forwarding the container runtime preference
  • Adds --container-runtime docker|podman flag to mxcli new, matching the existing flag on mxcli init
  • Sets initContainerRuntime before the internal init call so the generated .devcontainer/ reflects the user's choice

Test plan

  • mxcli new --help shows --container-runtime flag
  • mxcli new MyApp --version 11.12.0 --container-runtime podman generates .devcontainer/devcontainer.json with MXCLI_CONTAINER_CLI=podman and runArgs
  • mxcli new MyApp --version 11.12.0 (default) generates Docker-based devcontainer as before
  • podman build on the generated Dockerfile succeeds

Closes #739

🤖 Generated with Claude Code

mxcli new always generated a Docker-based devcontainer because it called
initCmd.Run() without forwarding the container runtime preference. This
adds --container-runtime (docker|podman, default docker) to newCmd and
sets initContainerRuntime before the init call so the generated
.devcontainer/ reflects the user's choice.

Closes mendixlabs#739

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot mentioned this pull request Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mxcli new: add --container-runtime flag (parity with mxcli init)

1 participant