Hasura CLI: hasura platform:conf generate-route

Generate a route for accessing a microservice

Synopsis

Generate a HTTP route that has to be added to routes.yaml configuration to access a microservice from outside the cluster

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

Examples

# To add routes for a microservice on a cluster:
$ hasura conf generate-route mymicroservice
# Add the output of this command to conf/routes.yaml, git commit and push

Options

-c, --cluster string      name of the cluster to be contacted
-h, --help                help for generate-route
-d, --sub-domain string   Sub-domain at which the microservice has to be available, default is microservice name. Use @ for root domain

Options inherited from parent commands

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

SEE ALSO

Auto generated by spf13/cobra