Skip to content

dagger shell: default shell #14281

Closed

Description

@shykes

dagger shell should try selecting a default shell.

Option 1: heuristic

In this option, no new configuration is needed. dagger shell follows this heuristic:

  1. If there is exactly one artifact of type Container in the schema, select it as default
  2. If there is exactly one artifact of type Container in the entrypoint module, select it as default
  3. Otherwide, no default can be selected

Option 2: workspace configuration

In this option, dagger.toml must explicitly designate a default shell. Something like:

[commands.shell]
default = "playground"

Activity

  1. added this to the v1.0.0 milestone on Sep 22, 2026
  2. added theissue type on Sep 22, 2026
  3. added 3 commits that reference this issue on Sep 22, 2026
    0c114fb
    d6ef3d9
    f13acaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions