Closed madmaxlax closed 11 months ago
Hi!
Have you tried --project
?
There's also an example from README.
package.json:
{
"scripts": {
"hasura": "hasura --project <your-preferred-path> --skip-update-check",
}
}
Hi!
Have you tried
--project
?There's also an example from README.
package.json:
{ "scripts": { "hasura": "hasura --project <your-preferred-path> --skip-update-check", } }
Ah perfect! Thank you that should do it
Hi I am trying to use the hasura-cli from the package install, rather than installing it globally. in my project repo, I want to keep my hasura details in a directory ./hasura within the repo (so my config file is at hasura/config.yaml) (I think this is the problem)
when I try to run hasura commands, it can't find the hasura command, or it can't find the config file
I think this is because it runs from the hasura binary location in node modules
or if I use yarn's --cwd to the directory with the config file I get an error that yarn can't find a package.json:
is there any way to make this work with a subdirectory being where the hasura config lives?
putting the hasura details and config at the repo (alongside package.json) works . but I just wanted to try and keep the repo a bit more organized, and also not need to install the hasura cli globally