# `TiDB Lightning` Command Line
+ Pass in configuration file to `TiDB Lightning` by option **`-config`** 
+ Command line options take precedance over parameters in the configuration file 

```
$ tiup tidb-lightning --help
tiup is checking updates for component tidb-lightning ...
Usage:
  -L value
        log level: info, debug, warn, error, fatal (default info)
  -V    print version of lightning
  -analyze value
        analyze table after importing
  -backend value
        delivery backend: local, tidb
  ...
  -check-requirements
        check cluster version before starting (default true)
  -checksum value
        compare checksum after importing.
  -config string
        tidb-lightning configuration file
  -d string
        Directory of the dump to import
  -enable-checkpoint
        whether to enable checkpoints (default true)
  -f value
        select tables to import
  ...
```
-------------------------------------------------------------
```
$ tiup tidb-lightning --help
tiup is checking updates for component tidb-lightning ...
Starting component `tidb-lightning` ...
Usage:
  -L value
        log level: info, debug, warn, error, fatal (default info)
  -V    print version of lightning
  -analyze value
        analyze table after importing
  -backend value
        delivery backend: local, tidb
  -c string
        (deprecated alias of -config)
  -ca string
        CA certificate path for TLS connection
  -cert string
        certificate path for TLS connection
  -check-requirements
        check cluster version before starting (default true)
  -checksum value
        compare checksum after importing.
  -config string
        tidb-lightning configuration file
  -d string
        Directory of the dump to import
  -enable-checkpoint
        whether to enable checkpoints (default true)
  -f value
        select tables to import
  -key string
        private key path for TLS connection
  -log-file string
        log file path
  -no-schema
        ignore schema files, get schema directly from TiDB instead
  -pd-urls string
        PD endpoint address
  -redact-info-log
        whether to redact sensitive info in log
  -server-mode
        start Lightning in server mode, wait for multiple tasks instead of starting immediately
  -sorted-kv-dir string
        path for KV pairs when local backend enabled
  -status-addr string
        the Lightning server address
  -tidb-host string
        TiDB server host
  -tidb-password string
        TiDB password to connect
  -tidb-port int
        TiDB server port (default 4000)
  -tidb-status int
        TiDB server status port (default 10080)
  -tidb-user string
        TiDB user name to connect
```