Hasura CLI: hasura platform:conf generate-remote

Generate remote configuration for a microservice


Generate remote configuration for a microservice so that you can execute git push hasura master and deploy code

hasura platform:conf generate-remote [service-name] [flags]


# To generate the configuration for a remote for a microservice:
$ hasura conf generate-remote mymicroservice
# Add the configuration generated by this command to conf/ci.yaml under cluster name:


-c, --cluster string      name of the cluster to be contacted
    --container string    name of the container for this remote, defaults to the name of 1st container in the deployment spec
    --dockerfile string   relative path to dockerfile w.r.t to git repo
-h, --help                help for generate-remote
    --name string         name of the git remote, (default cluster-microservice)
-p, --path string         relative path to the microservice source directory w.r.t to the git repo, (default microservices/microservice)

Options inherited from parent commands

--project string   hasura project directory where the commands should be executed. (default: current directory)


Auto generated by spf13/cobra