Skip to content

Allow wildcards in force:source:retrieve/deploy #182

@catalandres

Description

@catalandres

Is your feature request related to a problem? Please describe.
I am trying to download only the classes related to a project in an org. We have named them consistently with a prefix and we would like to be able to retrieve and deploy only a subset of them. That way we will not risk overwriting another team's progress by deploying a past version of a file unrelated to our project.

What are you trying to do
See above.

Describe the solution you'd like
sfdx force:source:retrieve -m 'ApexClass:SomePrefix_*' should put in the classes folder only the classes that begin with SomePrefix_.

Describe alternatives you've considered
The one alternative that I can think for a wildcard retrieval would be to manually delete any files that are not in scope after the retrieval.
The alternative to a deployment with a wildcard (if it is not viable to delete files upon retrieval) is to list all the necessary classes one by one.

Additional context
Not applicable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureIssue or pull request for a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions