title: How do I install and run Pyright from the CLI instead of using VS Code?
body: <p>I would like to begin using <a href="https://github.com/Microsoft/pyright" rel="nofollow noreferrer">Pyright</a> with my team's projects. I have installed <a href="https://marketplace.visualstudio.com/items?itemName=ms-pyright.pyright" rel="nofollow noreferrer">the Visual Studio Code plugin</a>, and can see the type errors in my editor as I work. But I would like to be able to run it automatically as part of our test suite, including on our CI server, and a VS Code plugin can't do that. I need to install and use it as a standalone command-line tool.</p>
  
  <p>Pyright's documentation said that it has a command-line interface, but the only installation and build instructions were for the Visual Studio Code extension, and installing that didn't add a <code>pyright</code> executable:</p>
  
  <pre class="lang-none prettyprint-override"><code>$ pyright
  -bash: pyright: command not found
  </code></pre>
  
  <p>How can I install and run Pyright on my Python project from the command-line?</p>