Skip to content

feat(cli): add deploy happy path#47

Merged
robertandreimoldoveanu merged 4 commits into
mainfrom
feat/cli_deploy
Feb 25, 2025
Merged

feat(cli): add deploy happy path#47
robertandreimoldoveanu merged 4 commits into
mainfrom
feat/cli_deploy

Conversation

@robertandreimoldoveanu

Copy link
Copy Markdown
Contributor

also added cli flag to pack & deploy commands to specify a semver increase

@robertandreimoldoveanu robertandreimoldoveanu force-pushed the feat/cli_deploy branch 2 times, most recently from 7ea8dc8 to 0ea819f Compare February 21, 2025 10:49
Comment thread sdk/core/uipath_sdk/_cli/cli_deploy.py Outdated
"--tenant-feed", "-tf", "personal_feed", type=bool, flag_value=False, default=True
)
@click.option("--personal-feed", "-pf", "personal_feed", type=bool, flag_value=True)
def deploy(root, version_increase, personal_feed):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I think we should keep it simple for now, no paramaters, don't overengineer the CLI. We need a reference system to built the foundation:
  • uipath.json - source of truth for entrypoints/input-output/binding
  • pyproject.toml - source of truth for all the package metadata (author, name, description, version) - if you want to change these, you need to change the source of truth, you don't need 100 params in the cli
  1. The current flow uses tenant published packages, switching to PW is another story for another time

  2. uipath deploy should actually call uipath pack & uipath publish and cleanup at the end (these commands can be overridden in extensions, eg you want to use the overridden pack command for deploying w/o overriding deploy as well - composable pattern). here's an example: https://github.com/UiPath/uipath-python/blob/main/sdk/core/uipath_sdk/_cli/cli_new.py#L69

This creates a better foundation that can be extended later when specific needs arise, rather than trying to anticipate all possible parameters upfront.

@anbalase anbalase self-requested a review February 24, 2025 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants