Skip to content

Installation

GenAiScript is available as a command line or a Visual Studio Code Extension.

Visual Studio Code Extension

The Visual Studio Code Marketplace contains the latest stable release of the extension.

  1. Install Visual Studio Code.

    Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux.

  2. Install Node.JS LTS.

  3. Open your project folder in Visual Studio Code.

  4. Click on the Extensions view

    Icon representing the GenAIScript view in Visual Studio Code, 
located in the activity bar on the left side of the screen.
  5. Search genaiscript and click Install.

    Visual Studio Code Marketplace listing for 'GenAIScript' extension by Microsoft, featuring a logo with 'gen AI' in yellow on a black background, followed by the text 'GenAIScript Generative AI Scripting.' with a settings gear icon to the right.
  6. If successful, you will see the icon in the Extensions view.

    Icon for genAI script view in Visual Studio Code, featuring the text 'gen AI' in white on a dark background with a red outline.

Manual Installation

The latest development build of the extension is also available on through the GitHub releases. This allows access to bug fixes earlier than the marketplace release.

  1. Open the latest release on GitHub

  2. Download the genaiscript.vsix into your project root folder

    • Directory.genaiscript/ folder created by the extension to store supporting files
      • Directorycache/ various cache files
      • Directoryretrieval/ retrieval database caches
      • supporting files
    • genaiscript.vsix
  3. Open your project in Visual Studio Code

  4. Right click on the .vsix file and select Install Extension VSIX…

Command Line

The genaiscript command line tool lets you run your GenAIScript from any terminal.

Terminal window
npx genaiscript run my-script some/path/*.pdf

npx will automatically install and cache the CLI. You can also add it as a devDependency to your projec.

Terminal window
npm install -D genaiscript

Next steps

Let’s configure the LLM connection information