Loading repository data…
Loading repository data…
erinoggz / repository
Hasura Commander is a CLI tool that automates Hasura metadata setup from YAML files—tracking tables, relationships, and permissions—so you can manage Hasura with code instead of the console.
A developer utility for automating Hasura metadata configuration. This tool drops and resets sources, tracks tables and relationships, sets permissions, and configures webhooks — all via code.
Hasura Commander is designed to simplify and standardize the setup of Hasura GraphQL instances across environments. Rather than manually configuring metadata in the Hasura Console, this tool enables you to manage your metadata using version-controlled YAML and run it through a simple script.
metadata.yml file present in the root directoryutils/ foldergit clone https://github.com/erinoggz/Hasura_Commander.git
cd Hasura_Commander
npx ts-node app.ts -e <HASURA_URL> -s <HASURA_ADMIN_SECRET> -f utils/metadata.yml
Pull the latest image from Docker Hub:
docker pull erindeji/hasura_command:latest
Then run the container, mounting your local metadata.yml into the container:
docker run --name hasura-commander \
-v $(pwd)/SetPermissions/metadata.yml:/app/SetPermissions/metadata.yml \
erindeji/hasura_command:latest \
-e <HASURA_URL>/ \
-s <HASURA_ADMIN_SECRET> \
-f /app/SetPermissions/metadata.yml
Pull requests, issues, and discussions are welcome.
If you have ideas for improving Hasura metadata automation or CI-friendly enhancements, feel free to contribute!
This project is licensed under the MIT License.