This message was deleted.
# ask-for-help
s
This message was deleted.
b
I guess there are better options, but this might works:
Copy code
from bentoml_cli.cli import cli

serve = cli.commands.get('serve')
serve(['./bento_service.py:svc',  '--reload', '--port', ' 8081', '--production'])
if you try with build command.
e
@Bela Bur Yes there is, I found the answer that's why I deleted the question 😄 The SDK allows this https://docs.bentoml.org/en/latest/reference/core.html#bentoml-build
😅 1
👍 2
a
The Python API is
bentoml.bentos.build
and
bentoml.bentos.build_bentofile