use --env-file on localhost supabase start / stop / reset · Issue #1518 · supabase/cli · GitHub
Skip to content

use --env-file on localhost supabase start / stop / reset #1518

Description

@jdgamble555

Describe the bug
I'm not sure if this is a bug or a needed feature, but I would like to be able to load a different .env file name besides just .env. Apparently this is possible for local edge functions per Managing Secrets and Environment Variables, but not possible for the whole supabase? This doesn't make sense to me why it would only be available for local function testing and not the whole config.toml, so perhaps I am missing something?

To Reproduce
Steps to reproduce the behavior:
Run localhost with supabase start --env-file ./.env.development

Expected behavior
It would load the .env.development (or whatever name), instead of throwing an error:

unknown flag: --env-file

Desktop (please complete the following information):

  • OS: Windows 11
  • Version of CLI 1.99.5
  • Version of Node.js 18

Thanks,

J

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions