Registering a command that isn't visible to the user

Is there an existing way to register a command using CommandRegistry and not show it to the user? i.e. when I open the “command palette” and search for the command, it shouldn’t show up.
I want to use the command from within my code only.

@akhileshraju thanks for the discussion, if you don’t give it a label it will not appear in the command palette.

Oh awesome! Thanks for getting back to me so quickly :slight_smile: @vince-fugnitto

Btw, would you be willing to accept a PR that extends this comment to make things clearer in the code?

@akhileshraju yes :slight_smile: I had thought it was already the case but it’s not there and I believe it definitely helps to understand.