# rpc: Call an exported Erlang function on the node

Source: https://zotonic.com/docs/3028/rpc-call-an-exported-erlang-function-on-the-node

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

Language: en

Call an exported Erlang function on the node.

Syntax
------

```text
bin/zotonic rpc <module> <function> [argument ...]
```

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

Requires a running node; effects depend entirely on the called function.

Each argument is passed as a string, not parsed as an Erlang term. A value such as `garden` is therefore not automatically an atom. Use the shell for typed Erlang expressions and context-aware model calls. The no-argument ping example is read-only.

Example
-------

```sh
bin/zotonic rpc zotonic ping
```

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/3028?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/3028?language=en>)
