Windows 运行 Specify CLI 教程

官方github文档介绍的不够全面,这里做个安装使用记录。

项目地址:https://github.com/github/spec-kit

安装uv

winget install uv

安装Specify CLI

此命令来自Specify CLI/README.md文件

uv tool install specify-cli --from git+https://github.com/github/spec-kit.git

安装成功参考

uv tool install specify-cli --from git+https://github.com/github/spec-kit.git Resolved 21 packages in 3.17s Updated https://github.com/github/spec-kit.git (3b000fce4de8ff8dbed8d2bff32d9eecabd8f908) Built specify-cli @ git+https://github.com/github/spec-kit.git@3b000fce4de8ff8dbed8d2bff32d9eecabd8f908 Prepared 21 packages in 6.73s Installed 21 packages in 82ms + anyio==4.11.0 + certifi==2025.10.5 + click==8.3.0 + colorama==0.4.6 + h11==0.16.0 + httpcore==1.0.9 + httpx==0.28.1 + idna==3.11 + markdown-it-py==4.0.0 + mdurl==0.1.2 + platformdirs==4.5.0 + pygments==2.19.2 + readchar==4.2.1 + rich==14.2.0 + shellingham==1.5.4 + sniffio==1.3.1 + socksio==1.0.0 + specify-cli==0.0.20 (from git+https://github.com/github/spec-kit.git@3b000fce4de8ff8dbed8d2bff32d9eecabd8f908) + truststore==0.10.4 + typer==0.19.2 + typing-extensions==4.15.0 Installed 1 executable: specify warning: `C:\Users\Administrator\.local\bin` is not on your PATH. To use installed tools, run `$env:PATH = "C:`\Users`\Administrator`\.local`\bin;$env:PATH"` or `uv tool update-shell`.

补上PATH

安装完会提示目前没有PATH环境变量,可以选其中一个命令设置环境变量

env:PATH = "C:`\Users`\Administrator`\.local`\bin;$env:PATH"
uv tool update-shell

运行Shell示例

C:\Users\Administrator> uv tool update-shell Updated PATH to include executable directory C:\Users\Administrator\.local\bin Restart your shell to apply changes

设置完需要重启终端开能生效。

运行Specify CLI

cd 到你要创建项目的目录

cd D:\Codes specify init <PROJECT_NAME> specify check

其他的使用细节可以自行看到项目README.md了,这里不做展开

标签:

评论:

Loading comments...

基于文章标签的相关内容推荐