--- layout: docs page_title: hosts update - Command description: |- The "hosts update" command lets you update a host. --- # hosts update Command: `hosts update` The `hosts update` command lets you update an existing host. ## Example This example updates a host with the ID `hst_1234567890` to add the name `devops` and the description `For DevOps usage`: ```shell-session $ boundary hosts update -id hst_1234567890 -name devops -description "For DevOps usage" ``` ## Usage ```shell-session $ boundary hosts update [type] [options] [args] Please see the typed subcommand help for detailed usage information. Subcommands: static Update a static type host. ``` ### Usages by type The `boundary hosts update static` command lets you update a static type host. #### Example This example updates a static type host with the ID `hst_1234567890` to add the name `devops`, the description `Static host for DevOps`, and the address `10.20.30.40`. ```shell-session $ boundary hosts update static -id hst_1234567890 -name "devops" -description "Static host for DevOps" -address "10.20.30.40" ``` #### Usage ```shell-session $ boundary hosts update static [options] [args] ``` #### Command options - `-description=` - The description to set on the host. - `-id=` - The ID of the host you want to update. - `-name=` - The name to set on the host. - `-version=` - The version of the host to update. If you do not specify a version, the command performs a check-and-set automatically. #### Static host options - `-address=` - The address of the static host. @include 'cmd-option-note.mdx'