3 ms·
I love CLIs, i try to find inspiration in the one simon willison makes. His CLIs extremely good on the DX side. Llm, sqlite-utils and datasette are all very th
by hhthrowaway1230 3y ago
I love CLIs, i try to find inspiration in the one simon willison makes. His CLIs extremely good on the DX side.
Llm, sqlite-utils and datasette are all very thoughfully thought of tools/clis.
So good that I have been thinking to mail him to see if he wanted to write a blog post about his way of thinking about it. Its top notch from naming the subcommands the plugin systems.
I always try to think along the lines of: I've i'm going to use this CLI a 1000 times each day. How do i want to use it. And if i want to automate it, how can i script it.
Also CLI commands are basically contracts, since people will program against it.
Good CLIs are very interesting puzzles bringing human ux and scriptability together. Aws cli's also have an interesting approach to it.
- simonw 3y agoThanks for saying that! I did write a post with a few of the things I've learned about CLI design here: https://simonwillison.net/2023/Sep/30/cli-tools-python/ https://simonwillison.net/2023/Sep/30/cli-tools-python/
- indymike 3y agoThat's going into the required reading folder for new devs at my company. Thanks for writing that!
- hhthrowaway1230 3y agoThank you! Weird that I missed it haha! Will do some reading and will start applying the lessons learned! And ill reach out if im missing anything!