An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: Command Line Interface https://github.com/siyuan-note/siyuan/issues/17674
Daniel9b9d660de5fa
diff --git a/README.md b/README.mdindex e97f8af50a..f5a33376f4 100644--- a/README.md+++ b/README.md@@ -397,11 +397,16 @@ Run `siyuan --help` for the full command tree. Use `-f json` for script-friendly### Setup-The binary is at `<install>/resources/kernel/SiYuan-Kernel` (alias: `siyuan`).-Windows installer adds it to PATH automatically. On macOS/Linux, create a symlink manually, e.g. on macOS:+The CLI binary is `SiYuan-Kernel` under `<install>/resources/kernel`.+Windows installer adds it to PATH automatically.+On macOS/Linux, create a symlink manually:```bash-ln -s /Applications/SiYuan.app/Contents/Resources/kernel/siyuan /usr/local/bin/siyuan+# macOS+ln -s /Applications/SiYuan.app/Contents/Resources/kernel/SiYuan-Kernel /usr/local/bin/siyuan++# Linux+ln -s /path/to/SiYuan/resources/kernel/SiYuan-Kernel /usr/local/bin/siyuan```## 🏘️ Communitydiff --git a/README_ja_JP.md b/README_ja_JP.mdindex 5534ea17ba..c7e31df9ee 100644--- a/README_ja_JP.md+++ b/README_ja_JP.md@@ -396,11 +396,16 @@ siyuan export md --id <block-id> -w ~/SiYuan### セットアップ-```-<インストール先>/resources/kernel/SiYuan-Kernel (エイリアス: siyuan)-Windows: インストーラーが自動で PATH に追加します-macOS/Linux: 手動でシンボリックリンクを作成してください。例 macOS:-ln -s /Applications/SiYuan.app/Contents/Resources/kernel/siyuan /usr/local/bin/siyuan+CLI バイナリは `<インストール先>/resources/kernel/SiYuan-Kernel` です。+Windows インストーラーが自動で PATH に追加します。+macOS/Linux では手動でシンボリックリンクを作成してください。++```bash+# macOS+ln -s /Applications/SiYuan.app/Contents/Resources/kernel/SiYuan-Kernel /usr/local/bin/siyuan++# Linux+ln -s /インストール先/SiYuan/resources/kernel/SiYuan-Kernel /usr/local/bin/siyuan```## 🏘️ コミュニティdiff --git a/README_tr_TR.md b/README_tr_TR.mdindex 3cdecc16c3..01f44ccd9c 100644--- a/README_tr_TR.md+++ b/README_tr_TR.md@@ -397,6 +397,16 @@ Ayrıntılar için `siyuan --help` komutunu çalıştırın. Betik dostu çıkt### Kurulum+CLI ikili dosyası `<kurulum>/resources/kernel/SiYuan-Kernel` konumundadır.+Windows yükleyici otomatik olarak PATH\'e ekler.+macOS/Linux\'ta manuel olarak sembolik bağlantı oluşturun.++```bash+# macOS+ln -s /Applications/SiYuan.app/Contents/Resources/kernel/SiYuan-Kernel /usr/local/bin/siyuan++# Linux+ln -s /kurulum/SiYuan/resources/kernel/SiYuan-Kernel /usr/local/bin/siyuan```<kurulum>/resources/kernel/SiYuan-Kernel (takma ad: siyuan)Windows: yükleyici otomatik olarak PATH'e eklerdiff --git a/README_zh_CN.md b/README_zh_CN.mdindex d8fe5a07d1..1443ebbc96 100644--- a/README_zh_CN.md+++ b/README_zh_CN.md@@ -498,11 +498,16 @@ siyuan export md --id <block-id> -w ~/SiYuan### 设置-二进制文件位于 `<安装目录>/resources/kernel/SiYuan-Kernel`(别名 `siyuan`)。-Windows 安装程序自动将内核目录添加到 PATH。macOS/Linux 下需要手动创建软链接,比如 macOS 上:+CLI 二进制为 `<安装目录>/resources/kernel/SiYuan-Kernel`。+Windows 安装程序自动将内核目录添加到 PATH。+macOS/Linux 下需要手动创建软链接:```bash-ln -s /Applications/SiYuan.app/Contents/Resources/kernel/siyuan /usr/local/bin/siyuan+# macOS+ln -s /Applications/SiYuan.app/Contents/Resources/kernel/SiYuan-Kernel /usr/local/bin/siyuan++# Linux+ln -s /安装路径/SiYuan/resources/kernel/SiYuan-Kernel /usr/local/bin/siyuan```## 🏘️ 社区diff --git a/scripts/darwin-build.sh b/scripts/darwin-build.shindex 17dd90c7bc..4577a4920e 100755--- a/scripts/darwin-build.sh+++ b/scripts/darwin-build.sh@@ -71,14 +71,12 @@ if [[ "$TARGET" == 'amd64' || "$TARGET" == 'all' ]]; thenecho 'Building Kernel amd64'export GOARCH=amd64go build -tags fts5 -o "../app/kernel-darwin/SiYuan-Kernel" -ldflags "-s -w" .- ln -f "../app/kernel-darwin/SiYuan-Kernel" "../app/kernel-darwin/siyuan"fiif [[ "$TARGET" == 'arm64' || "$TARGET" == 'all' ]]; thenechoecho 'Building Kernel arm64'export GOARCH=arm64go build -tags fts5 -o "../app/kernel-darwin-arm64/SiYuan-Kernel" -ldflags "-s -w" .- ln -f "../app/kernel-darwin-arm64/SiYuan-Kernel" "../app/kernel-darwin-arm64/siyuan"fiechodiff --git a/scripts/linux-build.sh b/scripts/linux-build.shindex d939317bed..94327f08e9 100755--- a/scripts/linux-build.sh+++ b/scripts/linux-build.sh@@ -106,7 +106,6 @@ if [[ "$TARGET" == 'amd64' || "$TARGET" == 'all' ]]; thenexport GOARCH=amd64setup_cc amd64go build -buildmode=pie -tags fts5 -o "../app/kernel-linux/SiYuan-Kernel" -ldflags "-s -w -extldflags -static-pie" .- ln -f "../app/kernel-linux/SiYuan-Kernel" "../app/kernel-linux/siyuan"fiif [[ "$TARGET" == 'arm64' || "$TARGET" == 'all' ]]; thenecho@@ -114,7 +113,6 @@ if [[ "$TARGET" == 'arm64' || "$TARGET" == 'all' ]]; thenexport GOARCH=arm64setup_cc arm64go build -buildmode=pie -tags fts5 -o "../app/kernel-linux-arm64/SiYuan-Kernel" -ldflags "-s -w -extldflags -static-pie" .- ln -f "../app/kernel-linux-arm64/SiYuan-Kernel" "../app/kernel-linux-arm64/siyuan"fiecho