Skip to content

CLI unaware of project if you run it in a subdirectory instead of project root #329

Closed

Description

@ammmir

Bug report

Describe the bug

Supabase CLI is unaware of a project configuration unless it is run from the directory containing the supabase directory.

To Reproduce

  1. supabase init
  2. supabase link --project-ref foo
  3. supabase secrets list works
  4. mkdir x
  5. cd x
  6. supabase secrets list fails:
Error: Cannot find supabase/config.toml in the current directory. Have you set up the project with supabase init?

Expected behavior

Every subcommand of should work as expected regardless of the current working directory of the process.

Potential solution

If supabase/config.toml isn't found in the current directory, walk up the parent directory tree until it's found, maybe with a depth limit.

System information

  • OS: macOS
  • Supabase CLI: 0.32.2

Activity

  1. added
    bug
    on Aug 4, 2022
  2. added
    enhancement
    and removed
    bug
    on Aug 4, 2022
  3. github-actions commented on Oct 13, 2022

    @github-actions
    Contributor

    🎉 This issue has been resolved in version 1.8.2 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  4. added a commit that references this issue on Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions