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
{{ message }}
Repository navigation
CLI should work properly when supabase is the working directory #517
The CLI command(s) should work properly when supabase is the working directory.
Issue
The behavior when running supbase <command> from within supabase directory varies between unexpected behavior to errors. I haven't tried all the commands but the following are two examples:
Example 1: supabase create functions
Run the following series of commands:
~ mkdir supabase_project
~cd supabase_project
~ supabase init
~ supabase functions new from_top_level
~cd supabase
~ supabase functions new from_supabase_dir
As you can see above, the when running supabase functions new from within supabase_project/supabase, it created a new supabase directory (i.e., supabase_project/supabase/supabase/functions).
Example 2: supabase start
supabase start works fine when the working directory is supabase_project, but it'll print the following error when running from within supabase_project/supabase directory:
Error: Cannot find supabase/config.toml in the current directory. Have you set up the project with supabase init?
Describe the solution you'd like
I would like the CLI to work properly within both supabase_project and supabase_project/supabase.
Alternatively, the CLI should detect that the working directory is invalid for all commands equally.
Activity
sweatybridge commentedon Oct 12, 2022
related #329
github-actions commentedon Oct 13, 2022
🎉 This issue has been resolved in version 1.8.2 🎉
The release is available on:
Your semantic-release bot 📦🚀