Skip to content

Commit 4bc8f99

Browse files
Soulterzz6zz666
andcommitted
docs: enhance AstrBot CLI documentation with instructions for pulling the latest stable release
Co-authored-by: zz6zz666 <1807651273@qq.com>
1 parent a212e6b commit 4bc8f99

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

en/deploy/astrbot/cli.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ If you have `git` installed on your computer, you can download the source code w
1212

1313
```bash
1414
git clone https://github.com/AstrBotDevs/AstrBot.git
15+
# The above code will pull the latest commit of the source code, if you need to pull the latest stable release version of the source code, you can use the following command:
16+
# git clone --depth=1 --branch $(git ls-remote --tags --sort='-v:refname' https://github.com/AstrBotDevs/AstrBot.git | head -n1 | awk -F/ '{print $3}') https://github.com/AstrBotDevs/AstrBot.git
1517
cd AstrBot
1618
```
1719

zh/deploy/astrbot/cli.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
```bash
1414
git clone https://github.com/AstrBotDevs/AstrBot.git
15+
# 上面的代码默认会拉取最新的提交的源码,如果你需要拉取最新稳定发行版本的源码,可以使用以下命令:
16+
# git clone --depth=1 --branch $(git ls-remote --tags --sort='-v:refname' https://github.com/AstrBotDevs/AstrBot.git | head -n1 | awk -F/ '{print $3}') https://github.com/AstrBotDevs/AstrBot.git
1517
cd AstrBot
1618
```
1719

0 commit comments

Comments
 (0)