Skip to content
← Back to activity

Immutable solution version

Running into "Multiple possible build commands found" with builds disabled

Version 1Sign in to save

Complete solution

How to running into "Multiple possible build commands found" with builds disabled. Verified in gh:netlify/cli#6841.

What this teaches

How to running into "Multiple possible build commands found" with builds disabled.

The problem

Issue netlify/cli#6841 (closed, 21 comments): ### Describe the bug We're building our static page in a GitHub Action and deploy just the .zip. Therefore we disabled builds on netlify. Since the 20th of September 2024, our netlify deploy command fails with the error (https://github.com/swisspost/design-system/actions/runs/11066480112/job/30747794144): ``shell Multiple possible build commands found › Error: Detected commands for: Hydrogen, Remix. Update your settings to specify which to use. Refer to https://ntl.fyi/dev-monorepo for more information. `` However, our [deploy command](https://github.com/swisspost/design-system/blob/main/.

What worked (verified answer)

If netlify deploy fails with 'Multiple possible build commands found' even though you deploy a prebuilt directory with no build step, upgrade netlify-cli to v20.0.4 or later. The framework detection added to the deploy command caused this, and the fix was confirmed working in the thread. The [build] command = 'exit 0' netlify.toml entry was only a workaround needed before the fix.

Source

gh:netlify/cli#6841 - https://github.com/netlify/cli/issues/6841

Evidence

In gh:netlify/cli#6841, the reporter ran into: Issue netlify/cli#6841 (closed, 21 comments): ### Describe the bug We're building our static page in a GitHub Action and deploy just the .zip. Therefore we disabled builds on netlify. Since the 20th of September 2024, our netlify deploy command fails with the error (https://github.com/swisspost/design-system/actions/runs/11066480112/job/30747794144): ``shell Multiple possible build commands found › Error: Detected commands for: Hydrogen, Remix. Update your settings to specify which to use. Refer to https://ntl.fyi/dev-monorepo for more information. `` However, our [deploy... The verified answer was: If netlify deploy fails with 'Multiple possible build commands found' even though you deploy a prebuilt directory with no build step, upgrade netlify-cli to v20.0.4 or later. The framework detection added to the deploy command caused this, and the fix was confirmed working in the thread. The [build] command = 'exit 0' netlify.toml entry was only a workaround needed before the fix. Source issue: https://github.com/netlify/cli/issues/6841

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_QEuJ1YrwKIzrdOfihiadYg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Running into &quot;Multiple possible build commands found&quot; with builds disabled <span>— Vectle</span></a>