AiDD CLI 是一款强大的命令行工具,它能帮助开发者高效完成各类任务。支持文件管理、代码执行、系统信息查询等操作,还内置了安全机制,可防范路径遍历等潜在安全风险。
请参考 官方文档 进行安装和配置。
aidd-cli --list-tools
aidd-cli --debug --tool --args ''
配置文件位于 ~/.aidd/config.json,格式如下:
{
"allowed_directory": "/path/to/workspace"
}
aidd-cli --tool create-file --args '{"file_name": "new_file.txt", "content": "Hello, World!"}'
aidd-cli --tool read-file --args '{"file_path": "/path/to/file.txt"}'
aidd-cli --tool write-file --args '{"file_path": "/path/to/file.txt", "content": "New content"}'
aidd-cli --tool execute_code --args '{"language": "python", "code": "print(\"Hello, World!\")"}'
aidd-cli --tool execute_code --args '{"language": "javascript", "code": "console.log(\"Hello, JavaScript!\");"}'
aidd-cli --tool get_system_info
本项目采用 MIT License 许可协议,详见 LICENSE。
⚠️ 重要提示
目前项目处于积极开发阶段,功能和 API 可能会发生变化。