Skip to content

Instantly share code, notes, and snippets.

@jj-meyer
Last active July 26, 2020 20:03
Show Gist options
  • Save jj-meyer/82a4b666719dbd1d2d36c07edd7a66a7 to your computer and use it in GitHub Desktop.
Save jj-meyer/82a4b666719dbd1d2d36c07edd7a66a7 to your computer and use it in GitHub Desktop.
Export and Import Auth0 Tenant Settings

npm i auth0-deploy-cli

./node_modules/.bin/a0deploy export --config_file warrant.json --format yaml --output_folder warrant
./node_modules/.bin/a0deploy import --config_file warrant.json --input_folder warrant/tenant.yml
./node_modules/.bin/a0deploy export --config_file cybercourt.json --format yaml --output_folder cybercourt
./node_modules/.bin/a0deploy import --config_file cybercourt.json --input_folder cybercourt/tenant.yml
curl --request POST --url https://warrant.eu.auth0.com/oauth/token --header 'content-type: application/json' --data '{"client_id":"","client_secret":"","audience":"https://warrant.eu.auth0.com/api/v2/","grant_type":"client_credentials"}'
curl --request POST --url https://cybercourt.eu.auth0.com/oauth/token --header 'content-type: application/json' --data '{"client_id":"","client_secret":"","audience":"https://cybercourt.eu.auth0.com/api/v2/","grant_type":"client_credentials"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment