<#352 Add support for `--image` to deploy> Pull re...
# flyte-github
a
#352 Add support for `--image` to deploy Pull request opened by kumare3 This pull request introduces improvements to the Flyte CLI, focusing on enhanced support for specifying container images during deployment and execution, as well as clearer documentation and argument handling. The changes provide users with more flexibility in configuring image URIs via CLI flags, improve help text for the
deploy
and
run
commands, and refine argument passing for better consistency. ### Image specification and argument handling: • Added support for the
--image
flag in
DeployArguments
to allow specifying multiple image URIs directly from the CLI, enabling users to map image names to URIs at deploy time without code changes. (
src/flyte/cli/_deploy.py
) • Updated initialization logic for both
deploy
and
run
commands to consistently pass image mappings and other arguments using keyword parameters, improving clarity and maintainability. (
src/flyte/cli/_deploy.py
,
src/flyte/cli/_run.py
) [1] [2] ### Documentation and help text improvements: • Significantly expanded the help text for the
deploy
command, including detailed usage instructions, flag explanations, and example commands for common scenarios such as recursive deployment, image overrides, versioning, and error handling. (
src/flyte/cli/_deploy.py
) • Improved the help text for the
run
command, clarifying argument order, image flag usage, and providing more accurate example commands for local and remote task execution. (
src/flyte/cli/_run.py
) [1] [2] • Added documentation for overriding project and domain via CLI flags in both
deploy
and
run
commands. (
src/flyte/cli/_run.py
) ### Minor codebase cleanup: • Fixed import and version reporting in CLI main entrypoint to use
flyte.version()
for consistent SDK version output. (
src/flyte/cli/main.py
) [1] [2] flyteorg/flyte-sdk