graphql-engine/docs/graphql/manual/hasura-cli/hasura_init.rst
2018-09-11 16:41:24 +05:30

54 lines
1.1 KiB
ReStructuredText

.. _hasura_init:
Hasura CLI: hasura init
-----------------------
Initialize directory for Hasura GraphQL Engine
Synopsis
~~~~~~~~
Create directories and files required for Hasura GraphQL Engine
::
hasura init [flags]
Examples
~~~~~~~~
::
# Create a directory with installation manifests:
hasura init --directory <my-directory>
# Create a directory with an endpoint configured:
hasura --directory <my-directory> --endpoint <graphql-engine-endpoint>
# See https://docs.hasura.io/0.15/graphql/manual/getting-started for more details
Options
~~~~~~~
::
--access-key string access key for Hasura GraphQL Engine
--directory string name of directory where files will be created
--endpoint string http(s) endpoint for Hasura GraphQL Engine
-h, --help help for init
Options inherited from parent commands
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
--project string hasura project directory where the commands should be executed. (default: current directory)
SEE ALSO
~~~~~~~~
* :ref:`hasura <hasura>` - hasura controls the hasura project
*Auto generated by spf13/cobra*