title: jboss-cli : How do I read one specific system property using jboss-cli?
body: <p>I'm new to jboss-cli and working through the 'jboss-cli recipes'.</p>
  
  <p><strong>Question</strong></p>
  
  <p>How do I read <em>one specific property</em> using jboss-cli? E.g. </p>
  
  <ul>
  <li>jboss.home.dir (e.g. "-Djboss.home.dir=/path/to/my/jboss")</li>
  <li>Xmx ("-Xmx=4G")</li>
  </ul>
  
  <p><strong>Context</strong></p>
  
  <p>The "CLI Recipes" documentation has this helpful example to get <em>all</em> system properties. However its 'too much infomration'. I want to script reading one specific property.</p>
  
  <p><a href="https://docs.jboss.org/author/display/WFLY10/CLI+Recipes#CLIRecipes-" rel="nofollow noreferrer">https://docs.jboss.org/author/display/WFLY10/CLI+Recipes#CLIRecipes-</a></p>
  
  <blockquote>
    <p>Overview of all system properties in JBoss AS7+ including OS system
    properties and properties specified on command line using -D, -P or
    --properties arguments.</p>
  </blockquote>
  
  <pre><code>Standalone
  [standalone@IP_ADDRESS:9999 /] /core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)
  </code></pre>
  
  <p>Thanks in advance</p>