cli icon indicating copy to clipboard operation
cli copied to clipboard

Add Custom Config File Support

Open StoneTapeStudios opened this issue 1 year ago • 2 comments

Add Custom Config File Support

Introduces a new --config-file flag to the Supabase CLI, enabling users to specify alternative configuration files. This enhancement allows running multiple parallel local development environments with different configurations (https://github.com/supabase/cli/issues/2139).

Example Usage

supabase start --config-file=supabase/config.test.toml

Benefits

  • Supports multiple local database instances with different configurations
  • Simplifies management of different environment setups (e.g., testing, staging)
  • Maintains backwards compatibility with default config path

StoneTapeStudios avatar Jan 31 '25 16:01 StoneTapeStudios

Pull Request Test Coverage Report for Build 13083225214

Details

  • 0 of 6 (0.0%) changed or added relevant lines in 1 file are covered.
  • 7 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.05%) to 58.128%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/utils/flags/config_path.go 0 6 0.0%
<!-- Total: 0 6
Files with Coverage Reduction New Missed Lines %
internal/storage/rm/rm.go 2 89.53%
internal/gen/keys/keys.go 5 12.9%
<!-- Total: 7
Totals Coverage Status
Change from base Build 13077628442: -0.05%
Covered Lines: 7609
Relevant Lines: 13090

💛 - Coveralls

coveralls avatar Jan 31 '25 16:01 coveralls

Generally agree to add this functionality. However, the current implementation doesn't handle changing workdir based on the given config path.

Thanks for the feedback! I think I have addressed the issues with my latest changes.

StoneTapeStudios avatar Feb 10 '25 18:02 StoneTapeStudios