Gf cli
GoFrame Command Line Interface, which is your helpmate for building GoFrame application with convenience.
> 👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣 > > This repo. is archived and moved to https://github.com/gogf/gf/tree/master/cmd/gf for better maintenance. > > 👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣 The project is written primarily in Go, distributed under the MIT License license, first published in 2019. Key topics include: autobuild, cli, crossbuild, generator, gf.
👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣
This repo. is archived and moved to https://github.com/gogf/gf/tree/master/cmd/gf for better maintenance.
👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣👣
GoFrame CLI TOOL
gf is a powerful CLI tool for building GoFrame application with convenience.
1. Install
1). Manually Install
You might need setting the goproxy to make through building.
Please make sure your Golang version > v1.15.
-
Latest version
go install github.com/gogf/gf-cli/v2/gf@master -
Specified version
go install github.com/gogf/gf-cli/v2/gf@v2.0.0-beta -
Check installation
gf -v
2). PreBuilt Binary
You can also install gf tool using pre-built binaries: https://github.com/gogf/gf-cli/releases
After downloads, please use gf_xxx_xxx install command to install gf binary to system binary path.
-
Macshellwget -O gf https://github.com/gogf/gf-cli/releases/download/v2.0.0-rc/gf_darwin_amd64 && chmod +x gf && ./gf installIf you're using
zsh, you might need rename your alias by commandalias gf=gfto resolve the conflicts betweengfandgit fetch. -
Linuxshellwget -O gf https://github.com/gogf/gf-cli/releases/download/v2.0.0-rc/gf_linux_amd64 && chmod +x gf && ./gf install -
WindowsManually download, execute it and then follow the instruction.
-
Database
sqliteandoracleare not support ingf gencommand in default as it needscgoandgcc, you can manually make some changes to the source codes and do the building.
2. Commands
html$ gf USAGE gf COMMAND [OPTION] COMMAND env show current Golang environment variables run running go codes with hot-compiled-like feature gen automatically generate go files for dao/do/entity/pb/pbentity tpl template parsing and building commands init create and initialize an empty GoFrame project pack packing any file/directory to a resource file, or a go file build cross-building go project for lots of platforms docker build docker image for current GoFrame project install install gf binary to system (might need root/admin permission) version show version information of current binary OPTION -y, --yes all yes for all command without prompt ask -v, --version show version information of current binary -d, --debug show internal detailed debugging information -h, --help more information about this command ADDITIONAL Use "gf COMMAND -h" for details about a command.
3. FAQ
1). Command gf run returns pipe: too many open files
Please use ulimit -n 65535 to enlarge your system configuration for max open files for current terminal shell session, and then gf run.
Contributors
Showing top 12 contributors by commit count.
