Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add npx edgedb binary command that forwards commands to EdgeDB CLI and installs the CLI if it's missing #916

Closed
scotttrinh opened this issue Mar 22, 2024 · 0 comments · Fixed by #931
Assignees

Comments

@scotttrinh
Copy link
Collaborator

The workflow for a brand new user who is just checking out EdgeDB for the first time is:

$ npx edgedb project init

Which will prompt that to download the latest version of edgedb, forward the project init command/subcommand to the driver/src/cli.ts module which will detect if the edgedb command exists in the PATH already, and if not, it will install using the curl | 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant