# Switch TiUP Mirror

+ Use `tiup mirror set` to switch between local mirror or remote mirror
  + `<mirror-addr>` can be network address or local file path

```
~!@// Command @!~
$ tiup mirror set <mirror-addr> [flags]
```

---------------------------------------------------------------------------------------------
<mirror-addr> is the mirror address, which has two forms:
+ Network address: starts with http or https. For example, http://172.16.5.5:8080, https://tiup-mirrors.pingcap.com.
+ Local file path: the absolute path of the mirror directory. For example, /path/to/local-tiup-mirror.


