Create and manage service account keys - Google Cloud Sep 19, 2022 · Linux. Run the following command: echo 'ENCODED_PRIVATE_KEY' | base64 --decode > PATH Replace PATH with the path of the file that you want to save the key to. Use the .json file extension.