title: How to pass argument from npm script to lerna command
body: <p>I am looking to pass <code>stage</code> argument from <code>npm</code> script to <code>lerna</code> which will call <code>npm</code> script in each of the packages.</p>
  <p>Here's what it looks like:</p>
  <p>In deploy.sh, I run:</p>
  <pre><code>npm run deploy:cicd  -- --stage dev
  </code></pre>
  <p>In package.json, I have:</p>
  <pre><code>&quot;deploy:cicd&quot;: &quot; lerna run deploy --stream&quot;,
  </code></pre>
  <p>In each of the packages, the deploy script looks like this:</p>
  <pre><code>&quot;deploy&quot;: &quot;sls deploy -v&quot;,
  </code></pre>
  <p>I need to be able to pass the <code>stage</code> name from <code>deploy.sh</code>  so that the deploy command executed in each of the packages will be :</p>
  <pre><code>&quot;sls deploy -v --stage dev &quot;,
  </code></pre>
  <p>Currently, I get an error:</p>
  <pre><code>&gt; lerna run deploy --stream &quot;-stage&quot; &quot;dev&quot;
  
  ERR! lerna Unknown arguments: p, r, o, f, i, l, e
  npm ERR! code 1
  npm ERR! path /codebuild/output/src202136904/src
  npm ERR! command failed
  npm ERR! command sh -c  lerna run deploy --stream &quot;-stage&quot; &quot;dev&quot;
  </code></pre>
  <p>In deploy.sh, I tried passing</p>
  <pre><code>npm run deploy:cicd  -- -- -stage dev
  </code></pre>
  <p>and</p>
  <pre><code>npm run deploy:cicd  -- -stage dev
  </code></pre>
  <p>and</p>
  <pre><code>npm run deploy:cicd  -- stage dev
  </code></pre>
  <p>Neither of these has worked for me.</p>