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...
相关文章
基于文章标签的相关内容推荐
- 阅读文章:只用免费的AI工具生成这个博客网站,拥有极强的可维护性和极低的部署成本2025/10/16
只用免费的AI工具生成这个博客网站,拥有极强的可维护性和极低的部署成本
简单的AI网站生成基本就是简单的html,css,js。只适合单页网站。想要拥有可维护性就要配合很多框架,比如cms,全栈框架。这个网站就是通过在各种开源框架中配合免费的AI生成而来。