# 命令行里的设计艺术

DevFeed: [命令行里的设计艺术](<https://devfeed.tech/articles/article-41018.md>)

Original publisher: [Read original article](<https://blog.joway.io/posts/the-art-of-cli-design/>)

Author: Joway

Published: 2019-01-11T00:00:00Z

Content type: opinion

Language: zh

Sources: [Random Thoughts](<https://devfeed.tech/sources/random-thoughts.md>)

Topics: [Command-line interface](<https://devfeed.tech/topics/cli.md>), [interface](<https://devfeed.tech/topics/interface.md>), [Git](<https://devfeed.tech/topics/git.md>), [kubectl](<https://devfeed.tech/topics/kubectl.md>), [MySQL](<https://devfeed.tech/topics/mysql.md>), [Redis](<https://devfeed.tech/topics/redis.md>)

Tags: [cli](<https://devfeed.tech/tags/cli.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [git](<https://devfeed.tech/tags/git.md>), [interface](<https://devfeed.tech/tags/interface.md>), [kubectl](<https://devfeed.tech/tags/kubectl.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [redis](<https://devfeed.tech/tags/redis.md>), [tech](<https://devfeed.tech/tags/tech.md>)

## AI overview

This Chinese-language opinion article presents personal observations on command-line interface design. It argues that CLI tools should follow established conventions, use consistent command structures, prioritize user understanding over implementation details, prefer explicitness over ambiguous abbreviations, and put safety first for irreversible operations.

## Source excerpt

在谈论手机 App 或是网页时，我们总会谈到交互设计，但倘若涉及到面向专业用户的 CLI(Command-line interface)领域，很少有人会将它与用户交互相联系。甚至在很多人的大脑里，已经把 CLI 和「难用」画上了等号，更有甚者认为 CLI 的难用才体现了其 「专业性」。 与此同时，「RTFM」(Read The Fucking Manual) 作为一个梗在工程师群体广泛流传，也让许多作者对于其不好用的 CLI 有了一个天然的借口。