in cmd/swctl/main.go [133:195]
func flags() []cli.Flag {
return []cli.Flag{
altsrc.NewStringFlag(&cli.StringFlag{
Name: "config",
Value: "~/.skywalking.yml",
Usage: "file `path` of the default configurations.",
}),
altsrc.NewStringFlag(&cli.StringFlag{
Name: "base-url",
Required: false,
Usage: "base `url` of the OAP backend graphql service",
Value: "http://127.0.0.1:12800/graphql",
}),
altsrc.NewStringFlag(&cli.StringFlag{
Name: "grpc-addr",
Usage: "backend gRPC service address `<host:port>`",
Value: "127.0.0.1:11800",
Required: false,
}),
altsrc.NewStringFlag(&cli.StringFlag{
Name: "username",
Required: false,
Usage: "`username` of basic authorization",
Value: "",
}),
altsrc.NewStringFlag(&cli.StringFlag{
Name: "password",
Required: false,
Usage: "`password` of basic authorization",
Value: "",
}),
altsrc.NewStringFlag(&cli.StringFlag{
Name: "authorization",
Required: false,
Usage: "`authorization` header, can be something like `Basic base64(username:password)` or `Bearer jwt-token`, " +
"if `authorization` is set, `--username` and `--password` are ignored",
Value: "",
}),
altsrc.NewStringFlag(&cli.StringFlag{
Name: "timezone",
Required: false,
Usage: "specifies the `timezone` where `--start` and `--end` are based, in the form of `+0800`. " +
"If `--timezone` is given in the command line option, then it's used directly. " +
"If the backend support the timezone API (since 6.5.0), CLI will try to get the timezone from backend, " +
"and use it. " +
"Otherwise, the CLI will use the current timezone in the current machine.",
}),
altsrc.NewBoolFlag(&cli.BoolFlag{
Name: "debug",
Required: false,
Usage: "enable debug mode, will print more detailed information at runtime",
}),
altsrc.NewStringFlag(&cli.StringFlag{
Name: "display",
Required: false,
Usage: "display `style` of the result, supported styles are: `json`, `yaml`, `table`, `graph`. " +
"(Not all display styles are supported in all commands due to data formats incompatibilities " +
"and the limits of Ascii Graph, like coloring in terminal, " +
"so in that cases please use `json` or `yaml` instead.)",
Value: "",
}),
}
}