kamihi⚓︎
Kamihi CLI utility.
This utility provides commands to manage and interact with the Kamihi framework.
Usage⚓︎
kamihi [OPTIONS] COMMAND [ARGS]...
Arguments⚓︎
No arguments available
Options⚓︎
| Name | Description | Required | Default |
|---|---|---|---|
--settings-path FILE |
Path to the Kamihi settings file [default: (kamihi.yaml)] | No | - |
--help |
Show this message and exit. | No | - |
Commands⚓︎
| Name | Description |
|---|---|
version |
Print the version and exit. |
init |
Initialize a new Kamihi project. |
action |
|
run |
Run a project with the Kamihi framework. |
user |
|
db |
Database management commands for Kamihi CLI. |
permission |
|
role |
Sub Commands⚓︎
kamihi version⚓︎
Print the version and exit.
Usage⚓︎
kamihi version [OPTIONS]
Arguments⚓︎
No arguments available
Options⚓︎
| Name | Description | Required | Default |
|---|---|---|---|
--help |
Show this message and exit. | No | - |
kamihi init⚓︎
Initialize a new Kamihi project.
Usage⚓︎
kamihi init [OPTIONS] NAME
Arguments⚓︎
| Name | Description | Required |
|---|---|---|
NAME |
Name of the project. | Yes |
Options⚓︎
| Name | Description | Required | Default |
|---|---|---|---|
--path DIRECTORY |
Path to the project directory. | No | - |
--description TEXT |
Description of the project. [default: Kamihi project] | No | - |
--help |
Show this message and exit. | No | - |
kamihi action⚓︎
No description available
Usage⚓︎
kamihi action new [OPTIONS] NAME
Arguments⚓︎
| Name | Description | Required |
|---|---|---|
NAME |
Name of the new action. | Yes |
Options⚓︎
| Name | Description | Required | Default |
|---|---|---|---|
--help |
Show this message and exit. | No | - |
--description TEXT |
Description of the new action. | No | - |
--help |
Show this message and exit. | No | - |
kamihi run⚓︎
Run a project with the Kamihi framework.
Usage⚓︎
kamihi run [OPTIONS]
Arguments⚓︎
No arguments available
Options⚓︎
| Name | Description | Required | Default |
|---|---|---|---|
-l, --log-level [TRACE|DEBUG|INFO|SUCCESS|WARNING|ERROR|CRITICAL] |
Set the logging level for console loggers. [default: (INFO)] | No | - |
-h, --host TEXT |
Host of the admin web panel [default: (localhost)] | No | - |
-p, --port INTEGER RANGE |
Port of the admin web panel [default: (4242); 1024<=x<=65535] | No | - |
--help |
Show this message and exit. | No | - |
kamihi user⚓︎
No description available
Usage⚓︎
kamihi user add [OPTIONS] TELEGRAM_ID
Arguments⚓︎
| Name | Description | Required |
|---|---|---|
TELEGRAM_ID |
Telegram ID of the user | Yes |
Options⚓︎
| Name | Description | Required | Default |
|---|---|---|---|
--help |
Show this message and exit. | No | - |
-a, --admin |
Is the user an admin? | No | - |
-d, --data TEXT |
Additional data for the user in JSON format. For use with custom user classes. | No | - |
--help |
Show this message and exit. | No | - |
kamihi db⚓︎
Database management commands for Kamihi CLI.
Usage⚓︎
kamihi db downgrade [OPTIONS]
Arguments⚓︎
No arguments available
Options⚓︎
| Name | Description | Required | Default |
|---|---|---|---|
--help |
Show this message and exit. | No | - |
--help |
Show this message and exit. | No | - |
-r, --revision TEXT |
The revision to upgrade to. [default: (head)] | No | - |
--help |
Show this message and exit. | No | - |
-r, --revision TEXT |
The revision to downgrade to. [default: (-1)] | No | - |
--help |
Show this message and exit. | No | - |
kamihi permission⚓︎
No description available
Usage⚓︎
kamihi permission add [OPTIONS] ACTION
Arguments⚓︎
| Name | Description | Required |
|---|---|---|
ACTION |
Name of the action to assign permission for (without the leading slash). | Yes |
Options⚓︎
| Name | Description | Required | Default |
|---|---|---|---|
--help |
Show this message and exit. | No | - |
-u, --user INTEGER |
Telegram ID of the user(s) to assign the permission to. Can be used multiple times. | No | - |
-r, --role TEXT |
Role name(s) to assign the permission to. Can be used multiple times. | No | - |
--help |
Show this message and exit. | No | - |
kamihi role⚓︎
No description available
Usage⚓︎
kamihi role assign [OPTIONS] ROLE USERS...
Arguments⚓︎
| Name | Description | Required |
|---|---|---|
NAME |
Name of the role to add. | Yes |
ROLE |
Name of the role to assign to users. | Yes |
USERS... |
Telegram ID of the user(s) to assign the role to. | Yes |
Options⚓︎
| Name | Description | Required | Default |
|---|---|---|---|
--help |
Show this message and exit. | No | - |
--help |
Show this message and exit. | No | - |
--help |
Show this message and exit. | No | - |