allow exec command after --workspace-folder flag

Open
#1,050 6 comments 1 reaction 2 assignees View on GitHub

@v-Kaniska244 is already working on this.

Since Jun 11, 2026.

Assessment

This issue has not been assessed yet.

Description

It seems that the 'exec' command is only allowed as the first parameter.

 devcontainer  --workspace-folder . exec  ls
OCI runtime exec failed: exec failed: unable to start container process: exec: "exec": executable file not found in $PATH: unknown

Like up etc., it expects options followed by exec to be allowed.

With this change, one can create an alias as alias devc="devcontainer --workspace-folder PATH".

Dominant language
TypeScript
Stars
3k
Forks
461
Avg merge
13h 17m
Merged PRs (30d)
6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from devcontainers/cli

All issues in devcontainers/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.