# API Reference

Saffron exports two functions: `command` and `init`. The `command` function is almost identical to Yargs' `command()` function (object form) with several additional options. The `init` function is analogous to "calling" `yargs.argv` to initialize the argument parser.

When building CLIs with Saffron, `command` **must** be called once for each command the application needs to register. Then, `init` **must** be called to initialize the application.

{% content-ref url="api-reference/command" %}
[command](api-reference/command)
{% endcontent-ref %}

{% content-ref url="api-reference/init" %}
[init](api-reference/init)
{% endcontent-ref %}
