← 返回命令列表

Linux command

mani 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Initialize a mani configuration

mani init

Sync (clone) all repositories

mani sync

Run a command across all projects

mani exec "[command]"

Run a command only on projects with a specific tag

mani exec --tags [frontend] "[command]"

Run a predefined task

mani run [task_name]

List all projects

mani list projects

List all available tasks

mani list tasks

说明

mani is a CLI tool for managing multiple repositories from a central workspace. You define repositories and commands in a mani.yaml configuration file and then run commands across all or a subset of projects. Features include flexible project selection by name, tags, or paths, multiple output formats (stream, table, markdown, HTML), parallel execution across projects, and predefined tasks with custom commands.

参数

init
Initialize a new mani configuration in the current directory.
sync
Clone and update all repositories defined in the configuration.
exec _command_
Execute a shell command across projects.
run _task_
Run a predefined task from the configuration.
list _resource_
List projects, tags, or tasks.
--tags _tags_
Filter projects by tags (comma-separated).
--projects _projects_
Filter by project names (comma-separated).
--all-projects
Target all projects including the root.
--parallel
Run commands in parallel across projects.
--output _format_
Output format: stream, table, markdown, or html.

FAQ

What is the mani command used for?

mani is a CLI tool for managing multiple repositories from a central workspace. You define repositories and commands in a mani.yaml configuration file and then run commands across all or a subset of projects. Features include flexible project selection by name, tags, or paths, multiple output formats (stream, table, markdown, HTML), parallel execution across projects, and predefined tasks with custom commands.

How do I run a basic mani example?

Run `mani init` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does init do in mani?

Initialize a new mani configuration in the current directory.