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

# registry

> Authenticate with and publish to the NanoForge registry

## Overview

These commands manage your relationship with the NanoForge registry: authenticating, then publishing
or removing packages. Authentication can be **global** (default, stored for your user) or **local**
(scoped to the current project) with `-l, --local`.

## login

Log in to the NanoForge registry.

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

| Option                        | Description                                            |
| ----------------------------- | ------------------------------------------------------ |
| `-d, --directory <directory>` | Working directory of the command.                      |
| `-l, --local`                 | Log in only for the current project. Default: `false`. |
| `-k, --api-key <key>`         | API key for the NanoForge registry.                    |

```bash theme={null}
nf login --api-key <your-api-key>
```

## logout

Log out from the NanoForge registry.

```bash theme={null}
nf logout
```

| Option                        | Description                           |
| ----------------------------- | ------------------------------------- |
| `-d, --directory <directory>` | Working directory of the command.     |
| `-l, --local`                 | Log out only for the current project. |

## publish

Publish a package to the NanoForge registry.

```bash theme={null}
nf publish
```

| Option                        | Description                       |
| ----------------------------- | --------------------------------- |
| `-d, --directory <directory>` | Working directory of the command. |

## unpublish

Unpublish a package from the NanoForge registry.

```bash theme={null}
nf unpublish
```

| Option                        | Description                       |
| ----------------------------- | --------------------------------- |
| `-d, --directory <directory>` | Working directory of the command. |
