Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.26 KB

tiup-command-env.md

File metadata and controls

29 lines (18 loc) · 1.26 KB
title summary
tiup env
TiUP provides flexible and customized interfaces using environment variables. The `tiup env` command queries user-defined environment variables and their values. Use `tiup env [name1...N]` to view specified variables, or all by default. No options. Output is a list of "{key}"="{value}" if not specified, or the "{value}" list in order if specified. Empty value means TiUP uses default.

tiup env

TiUP provides users with flexible and customized interfaces, some of which are implemented using environment variables. The tiup env command is used to query the user-defined environment variables that TiUP supports and their values.

Syntax

tiup env [name1...N]

[name1...N] is used to view the specified environment variables. If it is not specified, all supported environment variables are viewed by default.

Option

None

Output

  • If [name1...N] is not specified, a list of "{key}"="{value}" is output.
  • If [name1...N] is specified, the "{value}" list is output in order.

In the above output, if value is empty, it means that the value of the environment variable is not set. In this case, TiUP uses the default value.

<< Back to the previous page - TiUP Reference command list