title: Grails environments
body: <p>I couldn't find an answer in the documentation so I'm asking here.</p>
  
  <p>In Grails when you create an app you get the Production, Development etc environments by default.</p>
  
  <p>If you want to build a WAR for Production you can run either of these commands:</p>
  
  <pre><code>grails war
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>grails -Dgrails.env=prod war
  </code></pre>
  
  <p>If you want to create a WAR for the development environment you use the command:</p>
  
  <pre><code>grails -Dgrails.env=dev war
  </code></pre>
  
  <p>My questions;</p>
  
  <p>1) Can I use the word 'production' instead of 'prod' and use 'development' instead of 'dev'? I assume that 'prod' and 'dev' are just shorthand for 'production' and 'development', so I should be able to use either?</p>
  
  <p>2) If so, if I introduce my own environment called 'Stage' can I create a shorthand for use in setting -Dgrails.env? Something like 'stg' for example.</p>
  
  <p>Thanks.</p>