登录 注册
开发者工具教育与学习 bashcheatsheetsclicommand-linerustshell
17,853
Stars
584
Forks
113
Watchers
130
Open Issues
Apache-2.0
许可证
Rust
语言
2019-09-20
创建时间
2026-10-16
最近更新

项目能做什么

一款面向命令行的交互式备忘清单(cheatsheet)工具。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# navi <img src="https://raw.githubusercontent.com/denisidoro/navi/master/assets/icon.png" alt="icon" height="28px"/> ![GitHub release](https://img.shields.io/github/v/release/denisidoro/navi?include_prereleases)

An interactive cheatsheet tool for the command-line.

> [!NOTE]
> **Maintenance mode.** navi still gets bug fixes, but no new features are planned. For a more modern alternative, check out [ezlo](https://github.com/denisidoro/ezlo).

[![Demo](docs/examples/demo.svg)](https://asciinema.org/a/406461)

**navi** allows you to browse through cheatsheets (that you may write yourself or download from maintainers) and execute commands. Suggested values for arguments are dynamically displayed in a list.

## Pros

- it will spare you from knowing CLIs by heart
- it will spare you from copy-pasting output from intermediate commands
- it will make you type less
- it will teach you new one-liners

It uses [fzf](https://github.com/junegunn/fzf) or [skim](https://github.com/lotabout/skim) under the hood and it can be either used as a command or as a shell widget (_à la_ Ctrl-R).

## Table of contents

- [Installation](#installation)
- [Usage](#usage)
- [Cheatsheet repositories](#cheatsheet-repositories)
- [Cheatsheet syntax](#cheatsheet-syntax)
- [Customization](#customization)
- [More info](#more-info)

## Installation

The recommended way to install **navi** is by running:

```sh
brew install navi
```

> [!NOTE]
> For more details on how to install Navi, see [docs/installation](docs/installation/README.md)

**navi** can be installed with the following package managers:

[![Packaging status](https://repology.org/badge/vertical-allrepos/navi.svg)](https://repology.org/project/navi/versions)

## Usage

There are multiple ways to use **navi**:

- by typing `navi` in the terminal
  - pros: you have access to all possible subcommands and flags
- as a [shell widget](docs/widgets/README.md#installing-the-shell-widget) for the terminal
  - pros: the shell history is correctly populated (i.e. with the actual command you ran instead of `navi`) and you can edit the command as you wish before executing it
- as a [Tmux widget](docs/widgets/howto/TMUX.md)
  - pros: you can use your cheatsheets in any command-line app even in SSH sessions
- as [aliases](docs/cheatsheet/syntax/README.md#aliases)
- as a [shell scripting tool](docs/usage/shell-scripting/README.md)

In particular, check [these instructions](https://github.com/denisidoro/navi/issues/491) if you want to replicate what's shown in the demo above.

## Cheatsheet repositories

Running **navi** for the first time will help you download and manage cheatsheets. By default, they are stored at `~/.local/share/navi/cheats/`.

You can also:

- [browse through featured cheatsheets](docs/usage/commands/repo/README.md#browsing-through-cheatsheet-repositories)
- [import cheatsheets from git repositories](docs/cheatsheet/repositories/README.md#importing-cheatsheet-repositories)
- [write your own cheatsheets](#cheatsheet
阅读完整原文

商业机会分析 AI 生成

团队级私有 Cheatsheet 集中托管与合规同步平台 (SaaS)

产品构想兼容 navi 语法(.cheat),为工程与 SRE 团队提供私有命令集中分发、版本控制、敏感凭据脱敏以及终端执行审计的轻量协作平台。
核心功能私有 Git/SaaS 仓库多端秒级同步、基于角色(RBAC)的命令分发、敏感参数掩码防护、合规执行日志上报、Web 端可视化编辑与审核流。
目标用户DevOps 团队 Leader、企业运维团队、技术支持与售后交付团队。
难度/周期中等 · 2 - 3 个月 · 成本:极低(主要为基础云服务与身份认证设施成本)
收费模式按团队席位订阅(如 $5-15/人/月),针对企业级提供私有化部署和 SSO 授权版本。
竞争风险仓库官方声明处于 Maintenance mode(维护模式),需承担客户端分支维护或向兼容客户端转化的成本;传统团队可能倾向于自建内部公共 Git 仓自行拉取。
依据 尚需验证的假设

AI 增强型终端智能补全与动态 Cheatsheet 扩展插件

产品构想在 navi 原生交互体验之上,通过 AI 代理实时将自然语言需求转化为符合当前环境上下文的参数化 .cheat 模板,减少手动维护 cheatsheet 的成本。
核心功能自然语言实时生成带动态提取规则($ 指令)的命令模板、自动捕获前置命令输出注入参数变量、一键保存至本地 cheats 目录、云端多设备同步。
目标用户追求生产力的高级开发者、初中级 DevOps/运维人员。
难度/周期较低 · 1 - 2 个月 · 成本:低(LLM API 成本可通过 BYOK 或按用量转嫁)
收费模式Freemium 增值服务(基础功能免费+BYOK;高级托管模型调用与跨平台同步按月订阅)。
竞争风险面临现代 AI 终端(如 Warp、Fig 等)及通用 Copilot CLI 的功能挤压。
依据 数据支持的判断

垂直领域生产级 Cheatsheet 知识资产包(数字产品)

产品构想针对高门槛技术场景(Kubernetes 故障排查、AWS/GCP 云运维、渗透测试与红蓝对抗),制作高质量、深度集成动态参数逻辑的专业级 .cheat 库与配套脚手架。
核心功能覆盖排障/取证/部署场景的百套参数化命令流、自动化前置依赖检查、终身版本更新与专属答疑社区。
目标用户CKA/云认证考生、安全工程师、云原生运维工程师。
难度/周期低 · 2 - 4 周 · 成本:极低(仅内容制作与 Gumroad 等平台手续费)
收费模式一次性买断制数字商品销售($19 - $99),或配套技术专栏打包售卖。
竞争风险开源社区开源 cheatsheet 数量较多,纯内容壁垒较低,容易遭遇盗版翻录。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
jlevy/the-art-of-command-line 中文介绍暂未生成
Master the command line, in one page
162,738 -
nvm-sh/nvm 中文介绍暂未生成
Node Version Manager - POSIX-compliant bash script to manage
95,867 Shell
junegunn/fzf 中文介绍暂未生成
:cherry_blossom: A command-line fuzzy finder
84,161 Go
shareAI-lab/learn-claude-code 中文介绍暂未生成
Bash is all you need - A nano claude code–like 「agent harne
80,277 Python
warpdotdev/warp 中文介绍暂未生成
Warp is an agentic development environment, born out of the
65,984 Rust
starship/starship 中文介绍暂未生成
☄🌌️ The minimal, blazing-fast, and infinitely customizable
60,703 Rust
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2019-09-20,近 30 天仍在推送,发布过 69 个 Release
社区活跃Star 17,853 / Fork 584 / Issue 130(数据支持,可自行核实)
许可证Apache-2.0
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/denisidoro/navi.git
cd navi
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。