genkit icon indicating copy to clipboard operation
genkit copied to clipboard

[Tooling] [email protected] cannot be used as a CLI

Open ipfans opened this issue 2 years ago • 8 comments

Describe the bug

By initializing the project with npx genkit, it can be successful executed in version 0.5.x, but it shows "could not determine executable to run" in the latest 0.9.0 version.

To Reproduce Steps to reproduce the behavior:

npx genkit@latest init

But it works with:

npx [email protected] init

Expected behavior

Show select a runtime initalize instruction.

Screenshots Screenshot 2024-11-14 at 09 55 32

Desktop (please complete the following information):

  • OS: macOS

Additional context

None.

ipfans avatar Nov 14 '24 01:11 ipfans

Thanks for reporting this!

Two things here:

  1. There's no more genkit init.
  2. The CLI package is now called genkit-cli so the only way to make this work is to do npx genkit-cli <command>.

We'll update the docs.

apascal07 avatar Nov 14 '24 02:11 apascal07

@apascal07 Thank you for the update, but I found that the behavior of the cli has also changed, for example, the project no longer compiles automatically (I haven't tested the behavior of node, but it's like this for Go projects). This part of the operation also needs to be updated.

ipfans avatar Nov 14 '24 03:11 ipfans

Hi @apascal07! I tried using the npx genkit-cli init command and the genkit init and the list of commands appears but the project does not start.

image

lperezp avatar Nov 18 '24 04:11 lperezp

@lperezp genkit-cli init is no longer available. The new CLI tool requires manual project initialization.

You can view the cli changes here: https://bit.ly/genkit-0-9

ipfans avatar Nov 18 '24 10:11 ipfans

Thanks you! I faced this problem too .

o-ga09 avatar Nov 25 '24 13:11 o-ga09

Hi, I'm confused. Could anybody give the steps to install and initialise genkit ui for the latest version?

Aqshra avatar Dec 29 '24 07:12 Aqshra

@Aqshra Unfortunately, the official tutorial for the Go has never been updated, and you can only refer to the tutorial for the JS.

ipfans avatar Dec 29 '24 15:12 ipfans

This is an instant dead end for the go tutorial:

from: https://firebase.google.com/docs/genkit-go/get-started-go#install

Image

dwalker-va avatar Feb 01 '25 06:02 dwalker-va