diff --git a/llama_stack/cli/stack/run.py b/llama_stack/cli/stack/run.py index 387d913e9..2f768957d 100644 --- a/llama_stack/cli/stack/run.py +++ b/llama_stack/cli/stack/run.py @@ -35,7 +35,8 @@ class StackRun(Subcommand): "config", type=str, nargs="?", # Make it optional - help="Path to config file to use for the run. Required for venv and conda environments.", + metavar="config | template", + help="Path to config file to use for the run or name of known template (`llama stack list` for a list).", ) self.parser.add_argument( "--port", @@ -154,7 +155,10 @@ class StackRun(Subcommand): # func=> if callable(getattr(args, arg)): continue - setattr(server_args, arg, getattr(args, arg)) + if arg == "config" and template_name: + server_args.config = str(config_file) + else: + setattr(server_args, arg, getattr(args, arg)) # Run the server server_main(server_args)