The commands for the cli:
- List all of the enabled language models:
yarn admin-cli limit-models --list
or:
npm run dist-admin-cli -- limit-models --list=true
- Enables the language pair. Can be a single pair or many.
Language pairs must be entered in all lowercase
-
npm run dist-admin-cli -- limit-models --enable ar-en
npm run dist-admin-cli -- limit-models --enable ar-en de-en zt-en
A successful command will log something like this to the terminal:
info: 2024-04-12T21:50:50.375Z Enabled model: ar-en meta: {}
-
Disable the language pair listed. Can be a single pair or many.
npm run dist-admin-cli -- limit-models --disable ar-en
npm run dist-admin-cli -- limit-models --disable ar-en de-en zt-en
A successfull command will log something like this to the terminal:
info: 2024-04-12T21:51:40.029Z Disabled model: ar-en meta: {}
-
Additionally, options can be combined in one command
npm run dist-admin-cli -- limit-models --enable ar-en --disable de-en zt-en
-
After completing the above, restart pods for
front
,redis
, andtm-core
.