# Consul's REST API returns values base64-encoded so we decode here.
This script uses Consul’s REST API and filters the results using jq1. It’s easily adapted to migrate key-value pairs between different namespaces.
I can never remember jq’s select syntax so this post is intended largely as a personal reference on how to do this.