genkit-cli
v1.44.1
Published
CLI for interacting with the Google Genkit AI framework
Downloads
396,124
Readme
Genkit CLI
The package contains the CLI for Genkit, an open source framework with rich local tooling to help app developers build, test, deploy, and monitor AI-powered features for their apps with confidence. Genkit is built by Firebase, Google's app development platform that is trusted by millions of businesses around the world.
Building with a coding agent? Install the Genkit JS skill first.
npx skills add genkit-ai/skills --skill developing-genkit-jsIt teaches your agent the current Genkit JS APIs and common gotchas. Source, manual install and skills for other languages: genkit-ai/skills.
Review the documentation for details and samples.
To install the CLI:
npm install -g genkit-cliAvailable commands (run genkit help <command> for the options of each command):
start [options] [-- <command...>]run a command in Genkit dev mode and start the Developer UI
start:flutter [options]run a Flutter app in Genkit dev mode
flow:run [options] <flowName> [data] [-- <command...>]run a flow using provided data as input
flow:batch-run [options] <flowName> <inputFileName> [-- <command...>]batch run a flow using provided set of data from a file as input
eval:extract-data [options] <flowName>extract evaluation data for a given flow from the trace store
eval:run [options] <dataset> [-- <command...>]evaluate provided dataset against configured evaluators
eval:flow [options] <flowName> [data] [-- <command...>]evaluate a flow against configured evaluators using provided data as input
trace:list [options]list traces
trace:get [options] <traceId>get a trace by id
log:list [options]list logs, in reverse chronological order
docs:list [language],docs:search <query> [language],docs:read <filePath>list, search, and read Genkit documentation
init:ai-tools [options]initialize AI tools in a workspace with context about Genkit (experimental)
mcp [options]run the Genkit MCP stdio server (experimental)
dev:test-model [options] [modelOrCmd] [args...]test a model against the Genkit model specification
configset development environment configuration
help [command]
