You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for opening this issue, @ptpaterson. I ran into the same problem when trying to commit a schema using a database key. Your workaround of specifying --dir . worked perfectly for me:
bash
Copiar código
fauna schema commit --secret=xxxxxx --dir .
I appreciate the detailed explanation and the quick fix. This was a great help, and it saved me from having to create a dummy project just for this task. Hopefully, this requirement can be adjusted in a future release to make the CLI even more user-friendly.
The
--secret
option effectively escapes out of most project configuration options, but schema command initialization always requires a project.fauna-shell/src/lib/schema-command.ts
Lines 33 to 57 in 1c5153c
When
--secret
is used withschema commit
, andschema abandon
commands, we should not require a project configuration.Workarounds in the meantime
You can, of course, create a dummy project, but that's a lot of work.
you can add a dummy directory `--dir .' for example:
fauna schema abandon --secret xxxxxxxx --dir .
The text was updated successfully, but these errors were encountered: