What are you really trying to do?
When using the namespace flag --namespace, the format is inconsistent when creating or looking it up.
Describe the bug
Temporal associates a namespace with its account ID, as highlighted in the docs: <namespace>.<account> ref
This means that I use 1 string to create a namespace, but another to look it up.
Minimal Reproduction
Given a logged in user with account ID of f45a2
- Create a namespace:
tcld namespace create --namespace accounting-production --region us-east-1 --auth-method api_key
- Try to look it up:
tcld namespace get --namespace account-production (it fails)
- Observe the correct way to be:
tcld namespace get --namespace account-production.f45a2
Environment/Versions
All tcld versions do this
Additional context
Unless I'm mistaken, the tcld CLI doesn't allow you to switch between accounts (like gcloud config would). Thus the only option is for a user to see what account they are logged in with tcld account get - Asking for the account ID associated with the current session is thus both painful and unnecessary.
What are you really trying to do?
When using the namespace flag
--namespace, the format is inconsistent when creating or looking it up.Describe the bug
Temporal associates a namespace with its account ID, as highlighted in the docs:
<namespace>.<account>refThis means that I use 1 string to create a namespace, but another to look it up.
Minimal Reproduction
Given a logged in user with account ID of
f45a2tcld namespace create --namespace accounting-production --region us-east-1 --auth-method api_keytcld namespace get --namespace account-production(it fails)tcld namespace get --namespace account-production.f45a2Environment/Versions
All
tcldversions do thisAdditional context
Unless I'm mistaken, the
tcldCLI doesn't allow you to switch between accounts (likegcloud configwould). Thus the only option is for a user to see what account they are logged in withtcld account get- Asking for theaccountID associated with the current session is thus both painful and unnecessary.