AIX 26.0.0.11
dotnet tool install --global AIX --version 26.0.0.11
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local AIX --version 26.0.0.11
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=AIX&version=26.0.0.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package AIX --version 26.0.0.11
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AIX CLI
AI-powered development assistant for interactive chat.
安装
# 安装为全局 .NET 工具
dotnet tool install --global AIX
# 或从源码构建
dotnet pack
dotnet tool install --global --add-source ./nupkg AIX
使用方法
# 显示帮助
aix --help
# 显示版本
aix --version
# 启动交互式聊天会话
aix chat
# 根据规范生成代码
aix generate --spec "Create a REST API for user management"
# 管理配置
aix config
aix config agui-url
aix config agui-url https://your-server.com/api
命令
chat
启动与 AI 助手的交互式聊天会话。
选项:
--project, -p: 项目目录路径--model, -m: 使用的 AI 模型--stream, -s: 启用流式输出
选项:
--path, -p: 要分析的目录 (必需)--output, -o: 分析结果的输出文件路径
generate
根据规范生成代码。
选项:
--spec, -s: 规范文件或描述 (必需)--output, -o: 输出目录路径--language, -l: 编程语言
config
管理配置设置。
用法:
# 列出所有配置项
aix config
# 获取指定配置项
aix config <键名>
# 设置配置项
aix config <键名> <值>
支持的配置项:
agui-url: AGUI 服务器地址agui-timeout: AGUI 超时时间(小时)openai-key: OpenAI API Keyopenai-model: OpenAI 模型openai-endpoint: OpenAI 端点
示例:
aix config
aix config agui-url
aix config agui-url https://172.26.100.144:8800/api/code
aix config openai-key sk-xxxxxxxxxxxxxxxx
全局选项
--help, -h: 显示帮助信息--version, -v: 显示版本信息
配置
在当前工作目录创建 appsettings.json 文件:
{
"AGUIClient": {
"ServerUrl": "http://172.26.100.144:8800/api/code",
"TimeoutHours": 1
},
"OpenAI": {
"ApiKey": "",
"Model": "",
"Endpoint": ""
}
}
开发
# 构建
dotnet build
# 运行测试
dotnet test
# 打包
dotnet pack
# 本地安装
dotnet tool install --global --add-source ./nupkg AIX
Development
# Build
dotnet build
# Run tests
dotnet test
# Package
dotnet pack
# Install locally
dotnet tool install --global --add-source ./nupkg AGUIClient
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.