Replies: 9 comments 10 replies
-
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments. |
Beta Was this translation helpful? Give feedback.
-
This issue has been linked to a new work item: W-13204464 |
Beta Was this translation helpful? Give feedback.
-
I agree with Kai's overall sentiment. The new command structure is byzantine and tries to hide the underlying Salesforce APIs beneath a layer of abstraction that leaves some of the use cases that Kai raises particularly challenging to address. In particular, "project deploy start" is really "project deploy" .. using the keyword "start" implies something async by default and it's a synchronous command. And if all of these commands require a project directory, why bother with the "project" keyword? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback. Here's some insight on the design.
The current model is, "if you don't care about tracking (ex: you want to run apex tests in CI and then destroy the org), you can do We're working on better docs for the replacement commands that go through the intended use.
That's very intentional. When the CLI came out, the pattern was Users also didn't like having 3 ways to deploy stuff (and the inconsistencies... I hadn't heard the "zip file patch" use case before.
That is unintentional and should be fixed soon. You should be able to deploy the zip file without a project.
Don't read We had a lot of discussion about the naming of this command, and concluded that 80+% of the time, people would be doing deployments related to their project. The You're not the first person to not like |
Beta Was this translation helpful? Give feedback.
-
Interesting. The intent was to make it clear that it is an async operation on the server. You might be waiting for it (that's the default) but you have other options ( |
Beta Was this translation helpful? Give feedback.
-
I agree that there are a LOT of flags because mdapi is smashed in there, and that |
Beta Was this translation helpful? Give feedback.
-
have made this a discussion because they have threads |
Beta Was this translation helpful? Give feedback.
-
I'm trying to change over from sfdx to sf, but really can't figure out how to construct something that does this: |
Beta Was this translation helpful? Give feedback.
-
I think the functionality requests here are covered. you can get tracking-free deploy/retrieve for orgs that would normally support tracking by [create a scratch org with mdapi deploy/retrieve don't need projects and the "distribute patches via zip" work fine we got all the "needs project" stuff sorted thanks to all the feedback. the "too many flags" and "no short char for mdapi format options" and naming arguments remain. Having 3 commands that did the similar things but not quite was definitely a footgun and eliminating that was very intentional. Favoring source-format projects over mdapi is 100% intentional. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
The new
project deploy start
command has many issues and is a regression from the previous sfdx style commands. The new command is replacing three previously separate commandsforce:source:push
,force:source:deploy
, andforce:mdapi:deploy
. This causes a list of issues.force:source:deploy
isn't actually replaced because source tracking is always done if possible, this means this command is effectively abandoned/lost (loss of functionality)What are you trying to do
Trying to deploy both source and metadata code to orgs in a way that is comprehensible to the user.
Sometimes source tracking in a project is not the answer. Source tracking gets messed up (like the source clear command demonstrate) or I have a test org I don't need source tracking or I have a patch I need to ensure gets applied. There is no way to ignore source tracking and force re-deploy a source folder. Changing to metadata api format is an option but that needlessly requires a project and an extra step and longer, clunkier flags.
Describe the solution you'd like
I propose a couple of changes:
Describe alternatives you've considered
Staying with the abandoned SFDX commands that make much more sense.
Beta Was this translation helpful? Give feedback.
All reactions