# Executing the Deployment Command

```
~!@// Syntax@!~
$ tiup dm deploy {cluser_name} {version} ./dm-topology.yaml \
  --user {user_name} [-p] [-i /home/root/.ssh/rsa_key]
```
```
~!@// Example@!~
$ tiup dm deploy dm-test v6.5.1 ./topology.yaml
...
Please confirm your topology:
Cluster type:    dm
Cluster name:    dm-test
Cluster version: v6.5.1
Role          Host        Ports      OS/Arch       Directories
----          ----        -----      -------       -----------
dm-master     10.0.0.138  8261/8291  linux/x86_64  /home/tidb/dm/deploy/dm-master-8261,/home/tidb/dm/data/dm-master-8261
...
dm-worker     10.0.0.147  8262       linux/x86_64  /home/tidb/dm/deploy/dm-worker-8262,/home/tidb/dm/data/dm-worker-8262
...
Do you want to continue? [y/N]: (default=N) ~!@y@!~
...
Cluster `dm-test` deployed successfully, you can start it with command: `tiup dm start dm-test`
```
-------------------------------------------------------------
`{cluser_name}:` The name of the `DM` cluster, eg: `dm-test`.

`{version}:`The version of the `DM` cluster. You can see other supported versions by running `tiup list dm-master`.

`./dm-topology.yaml:`	The path of the topology configuration file.

`-u or --user:`	Log in to the target machine as the root user or other user account with ssh and sudo privileges to complete the cluster deployment.

`-p or --password:`	The password of target hosts. If specified, password authentication is used.

`-i or --identity_file:` The path of the `SSH` identity file. If specified, public key authentication is used (default `"/root/.ssh/id_rsa"`).
