# Supabase CLI v2: Config as Code

DevFeed: [Supabase CLI v2: Config as Code](<https://devfeed.tech/articles/supabase-cli-v2-config-as-code-341.md>)

Original publisher: [Read original article](<https://supabase.com/blog/cli-v2-config-as-code>)

Author: Qiao Han

Published: 2024-12-04T07:00:00Z

Content type: article

Language: en

Sources: [Supabase Blog](<https://devfeed.tech/sources/supabase-blog.md>)

Topics: [Supabase](<https://devfeed.tech/topics/supabase.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Git](<https://devfeed.tech/topics/git.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>)

Tags: [cli](<https://devfeed.tech/tags/cli.md>), [config](<https://devfeed.tech/tags/config.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [env-file-security](<https://devfeed.tech/tags/env-file-security.md>), [git](<https://devfeed.tech/tags/git.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>)

## AI overview

Supabase CLI v2 introduces Configuration as Code, allowing teams to commit project and branch configuration to version control for reproducible environments. The article explains using the CLI in CI/CD workflows to deploy functions, migrate databases, run tests, detect configuration drift, manage authentication settings, and promote services across environments.

## Source excerpt

Commit the configuration for all of your Projects and Branches into version control.