# Which Flux CLI command rewrites the Flux manifests in a Git checkout to the latest API versions before an upgrade?

Flux CD, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-flux-cli-command-rewrites-the-flux-manifests-in-a-git-checkout-to-the-latest-api-versions-before-an-upgrade

- A. flux upgrade -f .
- B. flux migrate -f .
- C. flux convert -f .
- D. flux install --export

**Answer:** flux migrate -f .

**Explanation:** With -f, flux migrate rewrites the Flux custom resources in the files under that path to the latest API versions and removes spec fields the new version no longer has. Without -f, it migrates the objects stored in the cluster instead. flux install --export only prints the controller manifests.
