Skip to content

[Bug] cli not using TEMPORAL_CONFIG_FILE #1058

@kubiani

Description

@kubiani

What are you really trying to do?

Would like to change the config file location next to the rest of my dot files. Using MacOS but would like to store them at the default Linux location (i.e. $HOME/.config/temporalio)

Describe the bug

Temporal CLI does not appear to be respecting having env vars CONFIG_PATH or TEMPORAL_CONFIG_FILE set per the documentation and/or CLI help info. It is still using the default MacOS location.

Documentation: https://docs.temporal.io/develop/environment-configuration#configuration-methods

Minimal Reproduction

❮ echo $CONFIG_PATH
/Users/nick/.config
❮ echo $TEMPORAL_CONFIG_FILE 
/Users/nick/.config/temporalio/temporal.toml
❮ bat ~/.config/temporalio/temporal.toml
─────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
     │ File: /Users/nick/.config/temporalio/temporal.toml
─────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1 │ [profile]
   2 │   [profile.default]
   3 │     address = "test:7233"
─────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❮ bat $HOME/Library/Application\ Support/temporalio/temporal.toml 
─────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
     │ File: /Users/nick/Library/Application Support/temporalio/temporal.toml
─────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1 │ [profile]
   2 │   [profile.default]
   3 │     address = "test:1234"
─────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❮ temporal config get --prop address
  Property    Value  
  address   test:1234

Environment/Versions

Mac Silicon
Temporal Version: 1.7.0 (brew)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions