<commit_before>---
post_title: Updating the CLI
nav_title: Updating
menu_order: 3
---

You can update the DC/OS CLI to the latest version or downgrade to an older version.

# <a name="upgrade"></a>Upgrade the CLI

**Important:** If you downloaded the CLI from PYPI or from the DC/OS UI version 1.7 or earlier, you must completely [uninstall](/docs/1.8/usage/cli/uninstall/) the CLI. You cannot upgrade. 

You can upgrade an existing DC/OS CLI installation to the latest build.

1.  Remove the current CLI binary. For example, if you installed to `/usr/local/bin/`:
                                   
    ```bash
    $ rm -rf /usr/local/bin/dcos
    ```

1.  Download the DC/OS CLI binary (`dcos`) to your local directory (for example, `/usr/local/bin/`). Update the command with the desired upgrade version (`<version>`):
    
    ```bash
    $ curl https://downloads.dcos.io/binaries/cli/darwin/x86-64/<version>/dcos
    ```
    
    **Important:** The CLI must be installed on a system that is external to your DC/OS cluster.
    
1.  **Mac OS X and Linux:** Make the CLI binary executable. 
    
    ```bash
    chmod +x dcos
    ```
   
    **Tip:** If your system is unable to find the executable, you may need to re-open the command prompt or add the installation directory to your PATH environment variable manually.

1.  Point the CLI to your DC/OS master node. In this example, `http://example.com` is the master node IP address.<commit_msg>little clarification of cli upgrade instrux<commit_after>---
post_title: Updating the CLI
nav_title: Updating
menu_order: 3
---

You can update the DC/OS CLI to the latest version or downgrade to an older version.

# <a name="upgrade"></a>Upgrade the CLI

**Important:** If you downloaded the CLI from PYPI or from the DC/OS UI version 1.7 or earlier, you must completely [uninstall](/docs/1.8/usage/cli/uninstall/) the CLI. You cannot upgrade. 

You can upgrade an existing DC/OS CLI installation to the latest build.

1.  Remove the current CLI binary. For example, if you installed to `/usr/local/bin/`:
                                   
    ```bash
    $ rm -rf /usr/local/bin/dcos
    ```

1.  Download the DC/OS CLI binary (`dcos`) to your local directory (for example, `/usr/local/bin/`). Update the command with the desired upgrade version (`<version>`):
    
    ```bash
    $ curl https://downloads.dcos.io/binaries/cli/darwin/x86-64//dcos-<dcos-version>/dcos
    ```
    
    **Important:** The CLI must be installed on a system that is external to your DC/OS cluster.
    
1.  **Mac OS X and Linux:** Make the CLI binary executable. 
    
    ```bash
    chmod +x dcos
    ```
   
    **Tip:** If your system is unable to find the executable, you may need to re-open the command prompt or add the installation directory to your PATH environment variable manually.

1.  Point the CLI to your DC/OS master node. In this example, `http://example.com` is the master node IP address.
{'fraction_non_alphanumeric': 0.10431532449881074, 'fraction_numerical': 0.008834522595990485, 'mean_word_length': 2.868593955321945, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2450154', 'n_tokens_mistral': 914, 'n_tokens_neox': 851, 'n_words': 384}