cli_usage.md
April 1, 2025 ยท View on GitHub
Cli Usage
Configure a model
For Configure a model, you just need to call **TreinAI ** passing configure_model as first argument:
TreinAI configure_model --model grok-2-latest --url https://api.x.ai/v1/chat/completions --key "your key"
Start the application
For start the application, you just need to call **TreinAI ** passing start as first argument:
TreinAI start
Start the application with a model
For start the application with a model, you just need to call **TreinAI ** passing start as first argument and the model as second argument:
TreinAI start --model grok-2-latest
List Models
to list the models, you just need to call **TreinAI ** passing list_models as first argument:
TreinAI list_models
Remove Model
For remove a model, you just need to call **TreinAI ** passing remove_model as first argument:
TreinAI remove_model --model grok-2-latest
Set model as Default
For set a model as default, you just need to call **TreinAI ** passing set_model_as_default as first argument:
TreinAI set_model_as_default --model grok-2-latest
Resset Configuration
For resset the configuration, you just need to call **TreinAI ** passing resset as first argument:
TreinAI resset
Get Help
For get help, you just need to call **TreinAI ** passing help as first argument:
TreinAI help