一次性使用(uvx)
若想在不永久安裝的情況下試用 Spec Kit,可使用 uvx 在隔離環境中執行。uv 會快取這個可棄式環境以便重複使用;它不會在你的 PATH 上安裝永久的 specify 指令。
執行 Specify CLI
# Create a new project (latest from main)
uvx --from git+https://github.com/github/spec-kit.git specify init <PROJECT_NAME>
# Or target a specific release (replace vX.Y.Z with a tag from Releases;
# keep the leading v, e.g. v0.12.11 not 0.12.11)
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init <PROJECT_NAME>
# Initialize in the current directory
uvx --from git+https://github.com/github/spec-kit.git specify init . --integration copilot
# Or use the --here flag
uvx --from git+https://github.com/github/spec-kit.git specify init --here --integration copilot
何時改用永久安裝
若你打算經常使用 Spec Kit,建議採用永久安裝:
- 工具會保持安裝狀態,且在 PATH 中隨時可用
- 擁有與 uv 可棄式快取分離的永久工具環境
- 以
uv tool list、uv tool upgrade、uv tool uninstall進行更完善的工具管理
永久安裝的說明請參閱主要的安裝指南。