Olares/docs/zh/developer/install/cli/install.md
2025-07-17 11:58:59 +08:00

18 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# `install`
## 命令说明
`install` 命令用于在系统上安装 Olares。通过各种选项可以自定义安装过程比如指定安装目录、Kubernetes 类型或 Minikube 配置文件等。
```bash
olares-cli install [选项]
```
## 选项
| 选项 | 简写 | 用途 | 是否必需 | 默认值 |
|-------------|------|------------------------------------------------------------------------------------------------------------------------------------------------------|----------|------------------------|
| `--base-dir`| `-b` | 设置 Olares 的基础目录。 | 否 | `$HOME/.olares` |
| `--help` | `-h` | 显示帮助信息。 | 否 | 无 |
| `--kube` | | 指定 Kubernetes 类型。<br>支持 `k3s``k8s`。 | 否 | `k3s` |
| `--profile` | `-p` | 设置 Minikube 配置文件名称,仅适用于 macOS。 | 否 | `olares-0` |
| `--version` | `-v` | 指定 Olares 版本。<br>版本号格式为 `x.y.z`(如 `1.10.0`)或包含构建日期(如 `1.10.0-20241109`)。<br> 可用版本请参考 [GitHub Releases](https://github.com/beclab/Olares/releases)。 | 否 | `prepare` 阶段安装的版本 |