← All errors · Supabase

HostedMutationConsentRequiredError on Supabase CLI v3 (functions deploy / secrets / config push / db push in CI)

What you see

functions deploy, secrets set, config push, and db push fail in CI, unattended scripts, or AI-agent runs with HostedMutationConsentRequiredError. CLI v3.0.0 shipped 2026-11-02; npm, Scoop, the Linux packages, and supabase/setup-cli install v3 by default, and brew install supabase installs v3 from 2026-11-03.

What it means

Every command that changes a hosted project now asks for confirmation first, and the default answer is No. When the CLI cannot ask, as in CI, a pipe, a deploy script, or an AI coding agent, the command fails unless you pass --yes. Piping y into a command no longer confirms it. db push also needs --remote to reach a hosted project; without it the command targets the local stack.

Likely causes

How to fix it

  1. Add --yes to every hosted change that runs unattended:

    supabase functions deploy --yes
    supabase secrets set KEY=value --yes
    supabase config push --yes
    supabase db push --remote --yes
  2. For db push you also need --remote. Without it, v3 targets the local stack, so the hosted project is never migrated (see the related db push page).

  3. Stopgap: pin CLI v2. v2.122.1 adds the v2.stable channels. v2 still receives security fixes and fixes for broken behavior, but no new features.

    npm install supabase@v2.stable --save-dev
    brew install supabase/tap/supabase@2
    scoop install supabase-v2-stable
    
    # supabase/setup-cli@v3
    #   version: v2.stable

Still stuck after trying this? Get it fixed for $49, or you don't pay.

FAQ

What does "HostedMutationConsentRequiredError on Supabase CLI v3 (functions deploy / secrets / config push / db push in CI)" mean?

Every command that changes a hosted project now asks for confirmation first, and the default answer is No. When the CLI cannot ask, as in CI, a pipe, a deploy script, or an AI coding agent, the command fails unless you pass --yes. Piping y into a command no longer confirms it. db push also needs --remote to reach a hosted project; without it the command targets the local stack.

What usually causes it?

The CLI was upgraded to v3 and the command was not given --yes. The command runs in CI, a script, a pipe, or an AI agent, where an interactive confirmation is impossible. The script pipes y into the command, which no longer confirms it. For db push specifically, --remote is also missing, so the command never targets the hosted project.

How do I fix it?

1. Add --yes to every hosted change that runs unattended: 2. For db push you also need --remote. Without it, v3 targets the local stack, so the hosted project is never migrated (see the related db push page). 3. Stopgap: pin CLI v2. v2.122.1 adds the v2.stable channels. v2 still receives security fixes and fixes for broken behavior, but no new features.

Last checked against official docs on . Sources: Supabase changelog: Supabase CLI v3.

Related errors

More Supabase errors and fixes →

Tools that help

  • Railway: Deploy backends and databases; new users get $20 credit.

Some links on this page are affiliate links: if you sign up or buy through them, FixStack may earn a commission at no extra cost to you. Learn more.

Get new fixes weekly

No spam. Unsubscribe anytime. Privacy