title: Custom command definition in magnolia
body: <p>I created a custom command in a magnolia custom module using:</p>
  
  <pre><code>public class ExportToGitCommand extends BaseRepositoryCommand 
  </code></pre>
  
  <p>and I configure it in JCR manually at the moment. </p>
  
  <p>What is the best practice regarding the definition of a custom command in a custom module?
  Where in the JCR structure should one define it? I am asking this so that I can use it later (eg. for the pages app).
  Also how can I get the definition from JCR programatically in the custom module?</p>