The biggest problem with CLI is discoverability as the article points out. Looking at Docker CLI, there are like a bazillion commands and it takes forever to read through the docs to find out what exactly to use. Furthermore, there are some commands that depend on the others being there - that breaks the composability. Back to discoverability, is there a way to make CLI "more discoverable"? Reading the man page doesn…
is there a way to make CLI "more discoverable" I've thought about this a lot. The answer, I think, is to have a "reverse index" of tasks that you can do with the tool and their corresponding commands or recipes. For example, man pages are typically organized alphabetically by option or subcommand. I'm envisioning a section of documentation - maybe a separate man page or just something on a website - that looks like t…
You can
Get-Help Update-ItemProperty -Example
to get some samples.It is introspectable, so command line completion of argument parameters just work.
I even saw web based and windows based gui that can probe any powershell command and provide a rudimentary UI with field level help.
You can even find the relevant commands e.g.
Get-Command -Noun PSDrive
gets you all the commands that can act on a PSDrive object.