CLI reference¶
--config / -c is required for commands that load configuration. The path
may be relative to the current working directory or absolute. What goes in that
file is documented in Configuration.
If you are just getting started, Run in CLI shows these commands in the order you will use them.
Commands¶
run¶
Run the bot in the foreground.
Config changes need a restart
The bot reads the config once at start. After you edit the file, restart
the process (for example systemctl restart telegram-commander).
validate¶
Validate config, functions, and button references offline.
Check the config offline or online
--online needs internet
With --online the check also asks Telegram whether the bot token works,
so the machine must be able to reach Telegram.
version¶
Print the program version.
fmt¶
Pretty-print a YAML config file.
Print or save formatted YAML
environ¶
Print process environment variables (useful for debugging service units).
list-functions¶
List built-in and loaded custom functions. Use it to confirm your custom function files were found. See Functions.
Show every available function
completion¶
Generate shell completion scripts:
Choose the shell you use
manpage¶
Write a man page to stdout.
Related pages¶
- Configuration — the file passed to
--config - Custom functions — what
list-functionsshows - Run as a service — run
rununder systemd