# CLI Commands

> Every command in one place — login, logout, sync, ls, upload, download and whoami — with the flags each takes and what it gives back.

## hyperfile login

Authenticate with your Hyperfile account via browser-based OAuth.

## hyperfile logout

Remove stored credentials.

## hyperfile sync

Sync a local directory with a remote filesystem. See [Sync](/docs/cli/sync.md) for details.

## hyperfile ls

List files in a remote filesystem:

```bash
hyperfile ls --fs <uid> [path]
```

## hyperfile upload

Upload a single file:

```bash
hyperfile upload ./file.pdf --fs <uid> --path /documents/
```

## hyperfile download

Download a file to your local machine:

```bash
hyperfile download --fs <uid> --path /documents/file.pdf -o ./file.pdf
```

## hyperfile whoami

Display the currently authenticated account.

## hyperfile --help

Show all available commands and global options.

---

Canonical HTML version: https://hyperfile.io/docs/cli/commands/
