---
title: "ezgh sso identity-providers refresh-metadata"
description: "Fetch an identity provider's metadata again now."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh sso identity-providers refresh-metadata

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh sso identity-providers refresh-metadata <identity-provider>
```

Ask for an identity provider's metadata (OIDC discovery and keys, or SAML metadata from its URL) to be fetched again within seconds, after rotating keys or certificates there. A failed fetch keeps the last good metadata and shows the error. SAML metadata given as a file isn't fetched: update it with `--metadata-file`.

Part of [`ezgh sso identity-providers`](/cli/reference/sso-identity-providers).

## Flags

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/sso-identity-providers-refresh-metadata/index.mdx
