You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

该命令从框架v2.7.2版本开始提供。

使用场景

网络环境不能畅顺的访问goframe.orgpages.goframe.org的情况,通过该命令可以将pages.goframe.org文档下载到本地并运行起来。

使用方式

$ gf doc -h
USAGE
    gf doc [OPTION]

OPTION
    -p, --path     download docs directory path, default is "%temp%/goframe"
    -o, --port     http server port, default is 8080
    -u, --update   clean docs directory and update docs
    -c, --clean    clean docs directory
    -x, --proxy    proxy for download, such as https://hub.gitmirror.com/;https://ghproxy.com/;https://ghproxy.net/;
                   https://ghps.cc/
    -h, --help     more information about this command

如果你的网络不佳,可以使用-x参数。gf doc -x=https://hub.gitmirror.com/

  • No labels