GF v1.9版本开始提供了gf命令行开发辅助工具,将会随着框架发展不断完善,作为未来框架发展的一个重要组成部分,工具开源项目地址:https://github.com/gogf/gf-cli

    我们推荐通过下载安装预编译的二进制使用。工具安装成功后,可以通过gf或者gf -h查看所有支持的命令。复杂的命令可以通过gf help COMMAND或者gf COMMAND -h查看更详细的使用帮助信息,例如:gf help gengf gen -h

    工具运行初始化时将会自动打开Go Modules特性并设置反向代理地址为 [https://goproxy.cn](https://goproxy.cn)

    当前帮助文档以gf cli v0.7.5版本为例进行简单的介绍,详细的介绍信息请查看命令行帮助信息。本章内容信息可能会有滞后,最新的具体详细介绍请查看工具帮助信息。

    1. $ gf
    2. USAGE
    3. gf COMMAND [ARGUMENT] [OPTION]
    4. COMMAND
    5. env show current Golang environment variables
    6. get install or update GF to system in default...
    7. gen automatically generate go files for ORM models...
    8. mod extra features for go modules...
    9. run running go codes with hot-compiled-like feature...
    10. init initialize an empty GF project at current working directory...
    11. help show more information about a specified command
    12. pack packing any file/directory to a resource file, or a go file...
    13. build cross-building go project for lots of platforms...
    14. docker create a docker image for current GF project...
    15. swagger swagger feature for current project...
    16. update update current gf binary to latest one (might need root/admin permission)
    17. install install gf binary to system (might need root/admin permission)
    18. version show current binary version info
    19. OPTION
    20. -y all yes for all command without prompt ask
    21. -?,-h show this help or detail for specified command
    22. -v,-i show version information
    23. ADDITIONAL
    24. Use 'gf help COMMAND' or 'gf COMMAND -h' for detail about a command, which has '...'
    25. in the tail of their comments.