How We Design Features for Wrangler, the Cloudflare Workers CLI
The latest update of Wrangler, version 1.3.1, introduces new features for developers building Cloudflare Workers, including built-in deployment environments and first-class support for Workers KV. The development team faced design challenges while creating these features, emphasizing the importance of deep empathy for users across the entire team. They introduced a host of new features such as creating KV namespaces, bulk uploading key-value pairs, and more. The process involved multiple iterations to improve usability and ensure consistency in command structures. The final version offers explicit commands for both individual and bulk actions with Workers KV, making it easier for users to integrate into their daily operations. Lessons learned from this experience include the use of taxonomies for subcommands, drawing inspiration from other popular CLIs, and avoiding logic that requires passing in raw ID strings. The team is excited to continue using these design principles as they grow Wrangler.
Company
Cloudflare
Date published
Sept. 17, 2019
Author(s)
Ashley M Lewis, Gabbi Fisher
Word count
1648
Language
English
Hacker News points
None found.