nocobase-install-start
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGoal
目标
Install NocoBase with clear branching and minimal questioning.
以清晰的分支流程且尽可能少提问的方式安装NocoBase。
Workflow
工作流程
- Ask quick mode first.
- Quick mode ():
Docker + install together + PostgreSQL
- Ask only release channel and installation directory.
- Execute install and startup.
- Non-quick mode:
- Ask installation method (,
docker,create-nocobase-app), release channel, and installation directory.git - If method is Docker, ask database mode (or
install together).connect existing - If Docker + , ask database type (
install together,PostgreSQL,MySQL).MariaDB - If (Docker/non-Docker), confirm connection info readiness and require config/env edits before startup.
connect existing - Execute install only; provide startup commands and verification steps (do not execute startup).
- Always read and include the chosen method doc link before running commands.
references/install-methods.md
- 首先询问是否使用快速模式。
- 快速模式():
Docker + 一键安装 + PostgreSQL
- 仅询问发布渠道和安装目录。
- 执行安装和启动操作。
- 非快速模式:
- 询问安装方式(、
docker、create-nocobase-app)、发布渠道和安装目录。git - 若选择Docker方式,询问数据库模式(或
一键安装)。连接现有数据库 - 若为Docker + ,询问数据库类型(
一键安装、PostgreSQL、MySQL)。MariaDB - 若选择(Docker/非Docker方式),确认连接信息已准备就绪,并要求在启动前编辑配置/环境变量。
连接现有数据库 - 仅执行安装操作;提供启动命令和验证步骤(不执行启动)。
- 在运行命令前,务必查阅并附上所选安装方式的文档链接。
references/install-methods.md
Method Rule
方式规则
- Docker is the default recommended method.
- Use when user wants the fastest local bootstrap.
create-nocobase-app - Use Git installation only when user needs source-level customization.
- Docker是默认推荐的安装方式。
- 当用户希望最快完成本地启动时,使用。
create-nocobase-app - 仅当用户需要源码级定制时,才使用Git安装方式。
Mandatory Clarification Gate
强制确认环节
- Do not run install/start commands before all required confirmations are collected.
- Quick mode: release channel + installation directory.
- Non-quick mode: installation method + release channel + installation directory.
- Docker extra: database mode; and database type if .
install together - Existing DB: connection info readiness confirmation.
- If user says "you decide" in non-quick mode, choose Docker.
- 在收集到所有必要的确认信息前,不得运行安装/启动命令。
- 快速模式:需确认发布渠道 + 安装目录。
- 非快速模式:需确认安装方式 + 发布渠道 + 安装目录。
- Docker额外要求:数据库模式;若为则还需确认数据库类型。
一键安装 - 连接现有数据库:需确认连接信息已准备就绪。
- 若用户在非快速模式下表示“你决定”,则选择Docker方式。
Mandatory Doc-Read Gate
强制文档查阅环节
- Do not run install/start commands before reading .
references/install-methods.md - Do not run install/start commands unless the chosen method matches one method in , or quick mode preset is selected.
references/install-methods.md - Include the exact method doc link from before running commands.
references/install-methods.md - If method mapping is unclear, stop and ask a clarification question.
- 在查阅前,不得运行安装/启动命令。
references/install-methods.md - 除非所选方式与中的某一种匹配,或选择了快速模式预设,否则不得运行安装/启动命令。
references/install-methods.md - 在运行命令前,附上中对应方式的准确文档链接。
references/install-methods.md - 若方式对应关系不明确,停止操作并询问澄清问题。
Question Template
提问模板
- Quick mode question: "Do you want quick mode () so I execute install and startup directly?"
Docker + PostgreSQL + install together - Method question: "Which NocoBase installation method do you want: Docker (recommended), create-nocobase-app, or Git?"
- Version question: "Which release channel do you want to install: latest (stable), beta, or alpha?"
- Directory question: "Please provide the target installation directory (for example or
./my-nocobase)."/opt/nocobase - Docker database mode question: "For Docker installation, do you want to install database together in Docker, or connect to an existing database?"
- Docker bundled DB type question: "For Docker + install together, which database type do you want to install: PostgreSQL, MySQL, or MariaDB?"
- Existing DB readiness question: "Please confirm your existing database connection info is ready (host, port, database, username, password), and you can edit NocoBase config/env before startup."
- 快速模式提问:“是否使用快速模式(),我将直接执行安装和启动操作?”
Docker + PostgreSQL + 一键安装 - 安装方式提问:“你想要哪种NocoBase安装方式:Docker(推荐)、create-nocobase-app,还是Git?”
- 版本提问:“你想要安装哪个发布渠道的版本:latest(稳定版)、beta,还是alpha?”
- 目录提问:“请提供目标安装目录(例如或
./my-nocobase)。”/opt/nocobase - Docker数据库模式提问:“对于Docker安装,你想要在Docker中一键安装数据库,还是连接到现有数据库?”
- Docker捆绑数据库类型提问:“对于Docker + 一键安装,你想要安装哪种数据库类型:PostgreSQL、MySQL,还是MariaDB?”
- 现有数据库就绪提问:“请确认你已准备好现有数据库的连接信息(主机、端口、数据库名、用户名、密码),并且可以在启动前编辑NocoBase的配置/环境变量。”
Resources
资源
- Must read before generating commands.
references/install-methods.md
- 在生成命令前,必须查阅。
references/install-methods.md