---
title: tb logout
meta:
    description: Log out of Tinybird
---

# tb logout

Logs you out of your Tinybird session in the project directory you're in.

```shell
tb logout

» Logging out from <workspace>...
✓ Logged out!
```

Logging out erases all the credentials stored in the `.tinyb` file. See [.tinyb](/forward/dev-reference/datafiles/tinyb-file).

To log back in, run `tb login`.

## Environment support

{% table %}
  * Environment
  * Supported
  * Description
  ---
  * `--local`
  * ✗ No
  * Logout is global and erases all credentials.
  ---
  * `--cloud`
  * ✗ No
  * Logout is global and erases all credentials.
  ---
  * `--branch=BRANCH_NAME`
  * ✗ No
  * Logout is global and erases all credentials.
{% /table %}
