> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cubby.pro/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Install the Cubby CLI

# Installation

The Cubby CLI is distributed via npm.

## Requirements

* Node.js 18 or later
* npm, yarn, or pnpm

## Install via npm

```bash theme={null}
npm install -g cubbypro
```

## Install via yarn

```bash theme={null}
yarn global add cubbypro
```

## Verify Installation

```bash theme={null}
cubby --version
```

You should see the version number printed.

## Authentication

Before deploying, authenticate with your Cubby account:

```bash theme={null}
cubby login
```

This opens your browser for authentication. Your session persists until you explicitly log out.

## Updating

To update to the latest version:

```bash theme={null}
npm update -g cubbypro
```

## Troubleshooting

<AccordionGroup>
  <Accordion title="Command not found">
    Ensure your npm global bin directory is in your PATH. Run `npm bin -g` to see the location.
  </Accordion>

  <Accordion title="Permission errors on macOS/Linux">
    Try using a Node version manager like nvm, or configure npm to use a user-writable directory.
  </Accordion>
</AccordionGroup>
