# shell: Connect an Erlang shell to the running node

Source: https://zotonic.com/docs/3031/shell-connect-an-erlang-shell-to-the-running-node

URI: https://zotonic.com/id/3031

Language: en

Connect an Erlang shell to the running node.

Syntax
------

```text
bin/zotonic shell 
```

Requirements and effects
------------------------

Requires a reachable running node and matching connection configuration.

Choose a site context explicitly with `C = z:c(garden).` before using site models. This is a trusted administrative shell, not a visitor context. Exit the remote shell with Ctrl-C twice. Do not call `q().` to disconnect, because it stops the connected Zotonic node.

Example
-------

```sh
bin/zotonic shell
```

Run commands from the Zotonic workspace root. Replace `garden` with your site name where applicable.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/3031?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/3031?language=en>)
