Files
spaceflow/docs/guide/commands/ci-shell.md
2026-02-15 22:02:21 +08:00

650 B

ci-shell — Shell 执行

ci-shell 命令用于在 CI 环境中执行自定义 Shell 命令。

安装

spaceflow install @spaceflow/ci-shell

基本用法

# 执行 Shell 命令
spaceflow ci-shell --command "npm test"

# CI 模式
spaceflow ci-shell --command "npm run build" --ci

使用场景

  • 在 CI 中执行任意 Shell 命令
  • 通过 GitHub Actions 触发自定义命令
  • 配合飞书机器人远程执行命令

命令行选项

选项 说明
--command <cmd> 要执行的 Shell 命令
--ci CI 模式
--dry-run 试运行
--verbose 详细日志