# Fix cli.environment_mismatch

cli.environment_mismatch
Recorded exits: 1 (failed). [1]

docs_rev: 6fd264d5335b1cda
applies_to: source at 4aca9a8; agc >=0.3.0
verified: 4aca9a8
Generated from: fix/cli.environment_mismatch, reference/cli-reference, reference/agc-environment-variables, reference/error-code-catalog

## Steps

Cause: The folder's app belongs to another Agent Cloud than this agc talks to.
Next action: Run the executable for that environment (for staging, `agc-staging`).
[2]

Cause: The folder's `[app] control` names a different Agent Cloud than this executable talks to.
Next action: Run the named executable in this folder (`agc-staging` for staging, `agc` for production); don't `agc init` over it.
[3]

Cause: `any`
Next action: This folder's app belongs to ‹mismatch›; agc-root talks only to ‹rootControl›. / This folder's app belongs to ‹mismatch›; this agc talks to ‹loadConfig›. | Use ‹mismatch›'s own agc for this folder. To ask on root-agent.cloud, run `agc work ask`, here or anywhere: `agc work` uses the root's declared app, or --app <name>, and leaves this folder alone. Don't run agc init to get past this. / Run ‹…› in this folder. … | main.ts:466, main.ts:470
[4]

## Errors

See the cited canonical pages for errors.

## Not available yet

Availability follows the cited sources; this answer does not establish additional capabilities.

## Sources

[1] [fix/cli.environment_mismatch — Reference](/docs/fix/cli.environment_mismatch.md#reference) (shipped; source at 4aca9a8; 4aca9a8)
[2] [reference/cli-reference — Errors](/docs/reference/cli-reference.md#errors) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[3] [reference/agc-environment-variables — Errors](/docs/reference/agc-environment-variables.md#errors) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[4] [reference/error-code-catalog — Reference](/docs/reference/error-code-catalog.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[5] [reference/agc-environment-variables — Reference](/docs/reference/agc-environment-variables.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)
[6] [reference/agc-environment-variables — Environments: production and staging](/docs/reference/agc-environment-variables.md#environments-production-and-staging) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)

## Known issues

- [reference/cli-reference](/docs/reference/cli-reference/known-issues.md)
- [reference/agc-environment-variables](/docs/reference/agc-environment-variables/known-issues.md)
- [reference/error-code-catalog](/docs/reference/error-code-catalog/known-issues.md)
- [reference/agc-environment-variables](/docs/reference/agc-environment-variables/known-issues.md)
- [reference/agc-environment-variables](/docs/reference/agc-environment-variables/known-issues.md)

<!-- feedback:start -->
---
Wrong, outdated or unclear? Run `agc feedback docs "fix/cli.environment_mismatch: <what is wrong>; error cli.environment_mismatch" --body <file>` with the sentence quoted in the file. No code or app data is sent.
<!-- feedback:end -->
