Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Support passing dictionary names instead of ids in dictionary-entry #1141

Open
gsson opened this issue Feb 29, 2024 · 0 comments

Comments

@gsson
Copy link

gsson commented Feb 29, 2024

We make extensive use of dictionaries in our Fastly services. We use different services for different environments, but we use the same consistent dictionary names across all environments.

One major pain point of using the CLI to manage entries is that the dictionary id varies across services, meaning we need to look up the dictionary id before being able to eg. list the items.

The workflow goes something like this:

$ FASTLY_API_TOKEN=...
$ fastly dictionary describe --version=active --service-name='our-service-name'  --name='our-dictionary-name'
...
ID: the-dictionary-id
...
$ fastly dictionary-entry list --service-name='out-service-name' --dictionary-id='the-dictionary-id'
...

It would simplify day-to-day usage to be able to just do:

$ FASTLY_API_TOKEN=...
$ fastly dictionary-entry list --version=active --service-name='out-service-name' --dictionary-name='our-dictionary-name'
...

Similar to #188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant