Usage of the aktool utility
Description
aktool — is a command tool that gives administrators access to various platform management functions through the terminal. With aktool you can perform various operations such as migration, data cleansing, account management, user management, tariffs and other system entities.
To run aktool, start the terminal and, while in the root directory of the platform, execute the command:
./aktool --help
This command will display the available commands and flags.
In some cases, upgrading the platform may require you to perform a migration using aktool. This allows you to losslessly update your data to the new platform version. In the description of a release that requires such a migration, we describe in detail which commands can be used to perform it.
List of aktool commands
For more information about a specific command, type the following:
./aktool [command] --help
| Command | Description |
|---|---|
| accounts | Managing accounts |
| admins | Managing administrators |
| akmta | AKMTA management |
| cleanup | Cleaning up data for an instance |
| completion | Generate an autocomplete script for the specified shell |
| configs | Configuration management |
| field_migrator | Migrating one field to another |
| help | Get help on any command |
| history_storage | Actions with history storage tables |
| indexes | Creating indexes in the platform database |
| keys | Managing keys |
| migrate | Perform data migration |
| nodes | Managing nodes |
| printconf | Display current values of platform configs |
| profile_history | Manage profile history tables |
| rabbitmq | Manage RabbitMQ |
| resource_system_fields | Adding system fields to a resource |
| roles | Actions with roles in accounts |
| smid | [SMID] decoder(/en/admin-guide/extra/56257642) |
| stats | Manage statistics tables |
| tariffs | Manage tariffs |
| users | Manage account users |
| workflow | Scenarios management |
accounts
./aktool accounts
The accounts command allows you to interact with accounts
Usage:
aktool accounts [command]
Available Commands:
create Create account
delete Delete account
disable Disable account
enable Enable account
list Show list of accounts
update Update account
Flags:
-h, --help help for accounts
Global Flags:
--clickhouse_database_name string usage database for clickhouse
--config string config path (default "/opt/akd/config/main.json")
-o, --output string file path to output in the result of the command (default "stdout")
--truncate whether to truncate the file specified by --output
admins
./aktool admins
The accounts command allows you to interact with accounts
Usage:
aktool accounts [command]
Available Commands:
create Create account
delete Delete account
disable Disable account
enable Enable account
list Show list of accounts
update Update account
Flags:
-h, --help help for accounts
Global Flags:
--clickhouse_database_name string usage database for clickhouse
--config string config path (default "/opt/akd/config/main.json")
-o, --output string file path to output in the result of the command (default "stdout")
--truncate whether to truncate the file specified by --output
akmta
./aktool akmta
The accounts command allows you to interact with accounts
Usage:
aktool accounts [command]
Available Commands:
create Create account
delete Delete account
disable Disable account
enable Enable account
list Show list of accounts
update Update account
Flags:
-h, --help help for accounts
Global Flags:
--clickhouse_database_name string usage database for clickhouse
--config string config path (default "/opt/akd/config/main.json")
-o, --output string file path to output in the result of the command (default "stdout")
--truncate whether to truncate the file specified by --output