title: How to use azure-cli node package in Node js application
body: <p>I am developing a Node js application. I want to use the azure-cli package in my application to create HDI cluster and VM.</p>
  
  <pre><code>npm install azure-cli -g --save
  </code></pre>
  
  <p>Above command install the azure-cli v1.0 only.</p>
  
  <p>How and where should I use the azure commands in my application.</p>
  
  <p>Should I need write azure cli commands in shell script file and call that script file from node js application or any other way like calling azure cli commands in the node js application without a script file?</p>
  
  <p>Note: Why <a href="https://www.npmjs.com/package/azure-cli" rel="nofollow noreferrer">azure-cli</a> doesn't install azure cli V2.0</p>
  
  <p>Update 1:-</p>
  
  <p>If I install <a href="https://www.npmjs.com/package/winston" rel="nofollow noreferrer">winston</a> package application, I can use like the following</p>
  
  <pre><code> var winston = require('winston');
  
    winston.log('info', 'Hello distributed log files!');
    winston.info('Hello again distributed logs');
  </code></pre>
  
  <p>Like that, Is there a way to use if I install <a href="https://www.npmjs.com/package/azure-cli" rel="nofollow noreferrer">azure-cli</a>? (i.e inside my node js application)</p>