Add support for check/verification deployment for force:source:deploy #5737
Replies: 8 comments
-
@keirbowden were you thinking about enhancing the current deploy commands to be able to define these parameters when needed or having a new deploy & check only command be what you are looking for ? |
Beta Was this translation helpful? Give feedback.
-
@lcampos I was thinking of it being added to the current deploy commands, bringing them more in line with the mdapi deploy command. |
Beta Was this translation helpful? Give feedback.
-
Hey @keirbowden , we are in the process of reworking deploy and retrieve. Actually, wouldn't mind getting your feedback on the plans. Essentially, we are going to default to maintaining the source file folder layout for all commands. We will be adding a flag to override the default in the off chance that you would want to work with the older project file format.
|
Beta Was this translation helpful? Give feedback.
-
Great to hear about that @dcarroll. In particular, adding those selectivity options is important since it will allow teams to do things like pull down a package.xml relating to an unmanaged package and then convert just that subset of files out of metadata API format and into source format (or vice versa). One thing to consider would be a 'move/destructive' conversion as a flag so that if a team does a partial import/export it will actually remove the original metadata after creating the converted metadata. That will provide an easy way for teams to, say, extract a single field out of the Account object into source format, without having to manually remove a chunk of XML out of the mdapi format. |
Beta Was this translation helpful? Give feedback.
-
@dcarroll that sounds good - fewer, flexible commands gets my vote over a command per scenario. As long as I have a mechanism to switch to the project file format then that's fine - I have scripts that manage the low-level commands to build the artefacts and carry out the deployment, so my developers don't need to worry if things change at the CLI level. |
Beta Was this translation helpful? Give feedback.
-
@dcarroll I'd be interested to hear where you guys are with the CLI rework. Going back to Keir's original ask, we too require a At the moment, we are having to |
Beta Was this translation helpful? Give feedback.
-
It looks like |
Beta Was this translation helpful? Give feedback.
-
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming session. We prioritize feature requests with more upvotes and comments. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I'd like to be able to carry out a verification (checkonly) deployment using the force:source:deploy subcommand.
Describe the solution you'd like
After carrying out a bunch of work against a scratch org, I'd like to be able verify the changes against a sandbox without actually deploying them. Ideally I'd also like to be able to execute unit tests so that I can be fairly sure that my new code doesn't break anything.
Describe alternatives you've considered
I convert to metadata API format and deploy that, as it allows me to carry out a verification and execute unit tests.
Additional context
N/A
Beta Was this translation helpful? Give feedback.
All reactions