Skip to content

dagger config polish #6606

Closed
Closed

Description

@sipsma

(Follow ups from #6533 related to dagger config)

dagger config currently only prints the configuration of a module, needs to be expanded with subcommands for actually setting the values not settable elsewhere. Currently those values are just:

  • include
  • exclude

But we should keep in mind that list may grow over time.

Quoting @shykes from the previous PR around some possibilities here:

  • git config style. I don't remember what it is, but it exists so worth using as a baseline :)
  • Specialized map keys to subcommands:
    • dagger config: print configuration
    • dagger config set KEY VALUE: set a configuration key. Note, making KEY a subcommand makes it enumerable.
    • dagger config get KEY: print the value of a key
  • Not allow generic config crud, and use specialized commands instead, for example dagger develop --sdk to change the SDK field; dagger install to change the Dependencies field, etc. Then just have dagger info to print information about the current Dagger configuration - including the contents of your config, but also engine version, etc.

Tentatively adding to v0.10 milestone since it would very nice to at least be able configure include/exclude via the CLI by then. The workaround in the mean time is to hand edit dagger.json.

Activity

  1. added this to the v0.10.0 milestone on Feb 7, 2024
  2. modified the milestones: v0.10.0, v0.10.x on Feb 23, 2024
  3. added
    area/cli
    on Apr 11, 2024
  4. levlaz commented on May 8, 2024

    @levlaz
    Contributor

    Based on #7324 I think we should also add some more docs to this page around what the possible key values are. https://docs.dagger.io/reference/979596/cli/#dagger-config

  5. added
    area/cli
    and removed
    area/cli
    on May 31, 2024
  6. added
    area/cli
    and removed
    area/cli
    on Jul 5, 2024
  7. locked and limited conversation to collaborators on Mar 24, 2026
  8. converted this issue into a discussion #12440 on Mar 24, 2026
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

    area/clikind/external-help

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions