The `terraform state replace-provider` command replaces the provider for resources in the Terraform state.