Installation
Install Knowns through package managers or from source.
Installation
Install the knowns CLI first. Installation only makes the command available; you still need to run knowns init inside each repository where you want Knowns-managed project context.
Requirements
- a supported terminal environment on macOS, Linux, or Windows
- Git if you want repository-aware init/setup behavior
- optional local model downloads if you plan to use semantic search
Homebrew
brew install knowns-dev/tap/knowns
Recommended on macOS and Linux when you want a packaged install.
npm
npm install -g knowns
Useful when your environment already uses Node tooling.
Shell installer (macOS/Linux)
curl -fsSL https://knowns.sh/script/install | sh
PowerShell installer (Windows)
irm https://knowns.sh/script/install.ps1 | iex
Build from source
go build -o ./bin/knowns ./cmd/knowns
Best option when developing Knowns itself.
Verify
knowns --version
If the command prints a version, the CLI is installed. Next, move into the repository you want to manage and run the quick start.
No-global-install option
If you do not want a global install, you can still run Knowns through npm:
npx knowns init
Next step
Cài đặt
Cài knowns CLI trước. Việc cài đặt chỉ làm cho command khả dụng; bạn vẫn cần chạy knowns init trong từng repository muốn quản lý bằng Knowns.
Yêu cầu
- Terminal trên macOS, Linux, hoặc Windows
- Git (nếu muốn
knowns initnhận diện repo) - Tùy chọn: local model cho semantic search
Homebrew
brew install knowns-dev/tap/knowns
Cách nên dùng trên macOS/Linux.
npm
npm install -g knowns
Phù hợp nếu đã dùng Node tooling sẵn.
Shell installer (macOS/Linux)
curl -fsSL https://knowns.sh/script/install | sh
PowerShell installer (Windows)
irm https://knowns.sh/script/install.ps1 | iex
Build từ source
go build -o ./bin/knowns ./cmd/knowns
Dùng khi đang dev chính Knowns.
Kiểm tra
knowns --version
Nếu command in ra version, CLI đã cài xong. Tiếp theo, vào repository bạn muốn quản lý và chạy quick start.
Không muốn cài global?
Chạy qua npx:
npx knowns init