Skip to content

mw context get does not list all context values #1575

@LukasFritzeDev

Description

@LukasFritzeDev

Describe the bug
--stack-id is missing in output of mw context get

To Reproduce

~ ❯ mw context set --help                                         
Set context values for the current project, org or server

USAGE
  $ mw context set [--token <value>] [--project-id <value>] [--server-id <value>] [--org-id <value>] [--installation-id <value>] [--stack-id <value>]

FLAGS
  --installation-id=<value>  ID or short ID of an app installation
  --org-id=<value>           ID or short ID of an organization
  --project-id=<value>       ID or short ID of a project
  --server-id=<value>        ID or short ID of a server
  --stack-id=<value>         ID of a container stack

[ ... ]

~ ❯ mw context set --stack-id b6309e9c-8e66-4998-8e33-7ca9c9e9a113
Set stack ID to b6309e9c-8e66-4998-8e33-7ca9c9e9a113

~ ❯ mw context get                                                

Current CLI context

--project-id        not set
--server-id         not set
--org-id            not set
--installation-id   not set

╭──────────────────────────────────────────────────────────────────────────────╮
│  NOTE                                                                        │
│  Use the mw context set command to set one of the values listed above.       │
╰──────────────────────────────────────────────────────────────────────────────╯

~ ❯ 

The context seems to be set, subsequent commands use the set stack-id.

Expected behavior
mw context get should list all set or possible values

Environment (please complete the following information):

  • OS: macOS 26.2
  • Shell zsh
  • Terminal
  • Version (output of mw --version): @mittwald/cli/1.12.0 darwin-arm64 node-v20.19.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions