github.com/webonyx/up@v0.7.4-0.20180808230834-91b94e551323/docs/01-installation.md (about)

     1  ---
     2  title: Installation
     3  ---
     4  
     5  Up is distributed in a binary form and can be installed manually via the [tarball releases](https://github.com/apex/up/releases) or one of the options below.
     6  
     7  The quickest way to get `up` is to run the following command, which installs to `/usr/local/bin` by default.
     8  
     9  ```
    10  $ curl -sf https://up.apex.sh/install | sh
    11  ```
    12  
    13  To install `up` to a specific directory, use `BINDIR`. Here's an example installing to the current directory:
    14  
    15  ```
    16  $ curl -sf https://up.apex.sh/install | BINDIR=. sh
    17  ```
    18  
    19  Verify installation with:
    20  
    21  ```
    22  $ up version
    23  ```
    24  
    25  Later when you want to update `up` to the latest version use the following command:
    26  
    27  ```
    28  $ up upgrade
    29  ```
    30  
    31  If you hit permission issues, you may need to run the following, as `up` is installed to `/usr/local/bin/up` by default.
    32  
    33  ```
    34  $ sudo chown -R $(whoami) /usr/local/bin/
    35  ```