Skip to content

Developer tools

Genkit provides two key developer tools:

  • A CLI for command-line operations
  • A local web app, called the Developer UI, that interfaces with your Genkit app for interactive testing and development
Terminal window
npm install -g genkit-cli

The CLI supports various commands to facilitate working with Genkit projects:

  • genkit start -- <command to run your code>: Start the developer UI and connect it to a running code process.
  • genkit flow:run <flowName>: Run a specified flow.
  • genkit eval:flow <flowName>: Evaluate a specific flow.
  • genkit trace:list: List traces.
  • genkit trace:get <traceId>: Get a trace by ID.

For a full list of commands, use:

Terminal window
genkit --help

The Genkit Developer UI is a local web app that lets you interactively work with models, flows, prompts, and other elements in your Genkit project.

The Developer UI is able to identify what Genkit components you have defined in your code by attaching to a running code process.

To start the UI, run the following command:

Terminal window
genkit start -- <command to run your code>

The <command to run your code> will vary based on your project’s setup and the file you want to execute. Here are some examples:

Terminal window