silent-cli

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Silent and Unattended CLI Execution Skill

静默与无人值守CLI执行Skill

Overview

概述

This skill provides a comprehensive reference for running command line programs in unattended/non-interactive environments. It documents environment variables, command-line flags, and configuration options to:
  • Disable interactive prompts - Ensure programs run without user input
  • Suppress progress indicators - Disable spinners, progress bars, and real-time updates
  • Disable colored output - Remove ANSI color codes and terminal formatting
  • Reduce output verbosity - Limit output to essential information only
  • Force non-TTY mode - Prevent programs from detecting terminal capabilities
本Skill为在无人值守/非交互式环境中运行命令行程序提供了全面参考。它记录了环境变量、命令行标志和配置选项,以实现:
  • 禁用交互式提示 - 确保程序无需用户输入即可运行
  • 抑制进度指示器 - 禁用加载动画、进度条和实时更新
  • 禁用彩色输出 - 移除ANSI颜色代码和终端格式
  • 精简输出冗余 - 仅保留必要的输出信息
  • 强制非TTY模式 - 阻止程序检测终端功能

Coverage

覆盖范围

  • 155 programs across Linux, macOS, and Windows
  • Cloud platforms, containers, version control, build tools, databases, security, monitoring, CI/CD, IaC, and more
  • 覆盖Linux、macOS和Windows平台的155款程序
  • 包含云平台、容器、版本控制、构建工具、数据库、安全、监控、CI/CD、基础设施即代码(IaC)等多个领域

Structure

结构

/
├── SKILL.md              # This file - skill overview
├── INDEX_BY_NAME.md      # Program index alphabetically
├── INDEX_BY_CATEGORY.md  # Program index by category
├── PLATFORM_COVERAGE.md  # Platform coverage statistics
├── UNIX.md               # Unix/Linux usage examples
├── WINDOWS.md            # Windows-specific notes
├── programs/             # Individual program documentation (155 files)
│   ├── git.md
│   ├── curl.md
│   ├── aws.md
│   ├── docker.md
│   └── ...
└── scripts/              # Helper scripts (if needed)
/
├── SKILL.md              # 本文件 - Skill概述
├── INDEX_BY_NAME.md      # 按字母顺序排列的程序索引
├── INDEX_BY_CATEGORY.md  # 按分类排列的程序索引
├── PLATFORM_COVERAGE.md  # 平台覆盖统计
├── UNIX.md               # Unix/Linux使用示例
├── WINDOWS.md            # Windows专属说明
├── programs/             # 各程序的独立文档(共155个文件)
│   ├── git.md
│   ├── curl.md
│   ├── aws.md
│   ├── docker.md
│   └── ...
└── scripts/              # 辅助脚本(如有需要)

Quick Reference

快速参考

  • INDEX_BY_NAME.md - Alphabetical listing of all programs
  • INDEX_BY_CATEGORY.md - Programs organized by category
  • PLATFORM_COVERAGE.md - Platform coverage statistics
  • UNIX.md - Unix/Linux usage examples
  • WINDOWS.md - Windows-specific notes (reserved filenames, etc.)
  • CONTRIBUTING.md - How to contribute, program documentation format
  • INDEX_BY_NAME.md - 所有程序的字母顺序列表
  • INDEX_BY_CATEGORY.md - 按分类组织的程序列表
  • PLATFORM_COVERAGE.md - 平台覆盖统计
  • UNIX.md - Unix/Linux使用示例
  • WINDOWS.md - Windows专属说明(如保留文件名等)
  • CONTRIBUTING.md - 贡献指南与程序文档格式规范

Universal Environment Variables

通用环境变量

These environment variables affect many programs:
VariableValueEffect
CI
true
Indicates continuous integration environment, triggers non-interactive mode for many tools
DEBIAN_FRONTEND
noninteractive
Prevents apt/dpkg from prompting (Debian/Ubuntu)
FORCE_COLOR
0
Disables colored output (Node.js, some JS tools)
NO_COLOR
1
Disables colored output (growing standard)
TERM
dumb
Minimal terminal capabilities
TZ
UTC
Sets timezone, prevents timezone prompts
PYTHONUNBUFFERED
1
Unbuffered Python output
NODE_NO_WARNINGS
1
Suppress Node.js warnings
以下环境变量会影响多款程序:
变量作用
CI
true
表示持续集成环境,触发多款工具的非交互式模式
DEBIAN_FRONTEND
noninteractive
阻止apt/dpkg弹出提示(Debian/Ubuntu系统)
FORCE_COLOR
0
禁用彩色输出(Node.js及部分JS工具)
NO_COLOR
1
禁用彩色输出(通用标准,应用范围逐渐扩大)
TERM
dumb
启用极简终端功能模式
TZ
UTC
设置时区,避免时区相关提示
PYTHONUNBUFFERED
1
启用Python无缓冲输出
NODE_NO_WARNINGS
1
抑制Node.js警告信息