Sovite.Core.CLI (sovite v0.2.0)

Copy Markdown View Source

The sovitectl command line.

Releases ship a bin/sovitectl wrapper that runs main/1 with bin/sovite eval. The VM is not started as a server, so these commands work whether or not the MTA is running.

sovitectl config check [PATH]
sovitectl user list
sovitectl user add alice@example.com        # reads the password from stdin
sovitectl user sender add alice@example.com @example.org
sovitectl domain add example.com hosted
sovitectl mailbox add alice@example.com
sovitectl alias add sales@example.com alice@example.com bob@example.com
sovitectl hash-password                     # for auth.backend = "file"

Commands that use the database read the config file given with --config PATH, or the default one.

Summary

Functions

Runs the command in argv and halts the VM with its exit status.

Runs the command in argv and returns its exit status.

Functions

main(argv)

@spec main([String.t()]) :: no_return()

Runs the command in argv and halts the VM with its exit status.

run(argv)

@spec run([String.t()]) :: non_neg_integer()

Runs the command in argv and returns its exit status.