In my dev org I have a custom action on an object. I want to use the Salesforce CLI get pull the custom action to my local machine. The action type is Lightning Component if that makes any difference.

I figured it would be something like:

sfdx force:source:retrieve -m ?????:My_Custom_Action
  • Can you try LightningComponentBundle? Commented Jun 15, 2022 at 19:41
  • @JefersonChaves that is one of the things I tried before posting my question. I get an error "Entity of type 'LightningComponentBundle' named 'My_Custom_Action' cannot be found". Sorry, should have mentioned that I tried that.
    – James
    Commented Jun 15, 2022 at 20:03
  • Fair enough James, I think Alex has probably answered your question. Commented Jun 16, 2022 at 9:11

1 Answer 1


You need to specify object API Name, e.g.:

sfdx force:source:retrieve -m QuickAction:Account.My_Custom_Action

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .