This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
RFC - KV Commands / Queries #339
Labels
regression
Something is broken, but works in previous releases
Milestone
Overview
Providing a fully CLI-driven experience for KV requires that users interact with the KV API in order to perform operations on and query namespaces and key value pairs for their account outside the context of a Worker project. Using Wrangler it should be possible for a developer to fully automate deploying and maintaining a Workers/KV project, complete with provisioning namespaces, writing key/value pairs, and pushing code (if necessary). This means providing basic commands for interacting with all of the documented KV endpoints:
Interactions
Stretch goal: bulk upload/deletethese are required.Pre-work - not necessary before, will be post-work.
#63 would be a nice-to-have prior to this, but most of the work is in the http module right now so a big refactor is not necessary. Perhaps wrapping that and providing a
kv_client
with methods for each action would be appropriate. If that pattern is appreciated we can extend it to the existing workers calls with aworkers_client
and apreview_client
.Security
One security consideration: we should empower users to protect sensitive data. Leaving values as plain text arguments in the command will leak data into shell history wherever the data is written; we need to take this into consideration either in documentation, or in the design of the command.
The text was updated successfully, but these errors were encountered: