Add npx edgedb
binary command that forwards commands to EdgeDB CLI and installs the CLI if it's missing
#916
Labels
npx edgedb
binary command that forwards commands to EdgeDB CLI and installs the CLI if it's missing
#916
The workflow for a brand new user who is just checking out EdgeDB for the first time is:
Which will prompt that to download the latest version of
edgedb
, forward theproject init
command/subcommand to thedriver/src/cli.ts
module which will detect if theedgedb
command exists in the PATH already, and if not, it will install using thecurl | sh
command. Once it has installed the CLI, it will then invoke the command/subcommand directly on the installed CLI. If the CLI is already installed, it will simply forward the command directly to the CLI.That means users can use
npx edgedb
any time they need to run the CLI and it will just always work.The text was updated successfully, but these errors were encountered: