# Create a network

> Log in with your Minecraft account and create a Minekube network, the name players join and the group of servers that belong to it.

> **Preview: Connect in the Minekube plugin:**
> This page describes networks in the Minekube plugin, the next generation of Connect. Today's Connect plugin and its `<endpoint>.play.minekube.net` addresses are described in the [Connect docs](https://minekube.com/guide/) and keep working. [Networks in the Minekube plugin](https://minekube.com/guide/networks/) compares the two.

A network is a name players join, such as `my-network.g.minekube.net`, and the servers that belong to it, wherever they run. You create it once from the CLI. Your Minecraft account is your Minekube account.

> **Staging:**
> Minekube runs the Minekube API and relay on staging while in preview. Pass `--api https://api.staging.minekube.com`, or set `MINEKUBE_API`. The hub is `play.staging.minekube.net`, and players join `<network>.staging.minekube.net`. Production at `<network>.g.minekube.net` comes next, with the same commands.

## Log in

1. Join the Minekube hub with Minecraft: `play.staging.minekube.net` during the preview.

2. In the hub, click **[Log in]** in the chat. The hub shows a one-time code.

3. Run `mk login` and enter the code.

4. Check who you are:

   ```sh
   mk whoami
   ```

`mk` keeps the session in `~/.minekube` and refreshes it by itself. `mk logout` ends it.

## Create the network

```sh
mk network create my-network
mk network list
```

The name must be free. The account that creates a network is its owner.

## Next steps

- [Let servers in](https://minekube.com/guide/networks/let-servers-in): add your first server to the network.
- [Network model](https://minekube.com/guide/networks/network-model): what a network is and who controls what.
