Enable Google login (and other login methods) for a Privy app
Login methods are app settings, so they all go through one command: privy apps config update.
Preview against your live app
Section titled “Preview against your live app”privy --app APP_ID apps config update --google-oauth true --diff--diff reads the current config and shows exactly what would change, without writing anything.
Apply it
Section titled “Apply it”privy --app APP_ID apps config update --google-oauth true --yesThe CLI reads the config back afterwards and confirms the field changed. You can check it yourself too:
privy --app APP_ID apps config get --field google_oauthOther login methods
Section titled “Other login methods”Change several at once in the same command:
privy --app APP_ID apps config update \ --email-auth true --passkey-auth true --apple-oauth true --diff| Login method | Flag |
|---|---|
--email-auth |
|
| Passkeys | --passkey-auth |
| Ethereum wallets (external) | --wallet-auth |
| Solana wallets (external) | --solana-wallet-auth |
--google-oauth |
|
| Apple | --apple-oauth |
| GitHub | --github-oauth |
| Discord | --discord-oauth |
| X (Twitter) | --twitter-oauth |
| LinkedIn, TikTok, Line, Twitch | --linkedin-oauth, --tiktok-oauth, --line-oauth, --twitch-oauth |
Run privy apps config update --help for the full list. Use false to turn a method off.
Do I need my own OAuth credentials?
Section titled “Do I need my own OAuth credentials?”Not always. Google and Apple work with Privy’s shared setup, and your own credentials are optional. Spotify, Instagram and Telegram need your own configuration first. See Login methods for which provider needs what, and privy providers to manage your own credentials.
Turning a method on doesn’t add it to your frontend or prove that sign-in works. Test the login in your app afterwards.
Privy CLI is an unofficial, community project by Samarth Saxena. Not affiliated with or endorsed by Privy. The Privy name and wordmark belong to Privy. It uses undocumented dashboard APIs that can change.