Skip to content

aiogram/cli

Repository files navigation

aiogram-cli (PoC)

Command line interface for developers

Works only with aiogram 3.0+

Here is only bootstrap for CLI interface with extensions based on pkg_resources

Installation

From PyPi

pip install aiogram-cli or pip install aiogram[cli]

Usage

Just run in terminal aiogram and see what you can do with it.

Example

asciicast

Writing extensions

Any aiogram-cli extension package should provide an entry point like this:

[aiogram_cli.plugins]
my_extension = my_package.module:my_command

Or with poetry like this:

[tool.poetry.plugins."aiogram_cli.plugins"]
"builtin-about" = "aiogram_cli.about:command_about"
"builtin-plugins" = "aiogram_cli.plugins:command_plugins"