# Fix usage.invalid

usage.invalid
Recorded exits: 2 (usage). [1]

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

## Steps

Cause: `db query`
Next action: `--connection` reads a connection’s production, so it goes with `--env prod`; a mirror reaches a Flight SQL endpoint only over the company VPN. / `--connection` needs the connection’s slug. | Run `agc db query --env prod --connection <slug> "<SQL>"`, with the slug `agc status` names. | commands/db.ts:140
[2]

## 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/usage.invalid — Reference](/docs/fix/usage.invalid.md#reference) (shipped; source at 4aca9a8; 4aca9a8)
[2] [reference/error-code-catalog — Reference](/docs/reference/error-code-catalog.md#reference) (shipped; agc >=0.3.0; 2026-11-24 @ 4aca9a8)

## Known issues

- [reference/error-code-catalog](/docs/reference/error-code-catalog/known-issues.md)

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