DDN CLI: ddn project set-api-access-mode
Set the API access mode for a Project on Hasura DDN.
Synopsis
Hosted projects are set to private by default. This protects your data before configuring any kind of authentication mode aside from the default (NoAuth) mode. Switching a project to public — while NoAuth mode is configured — will allow any client to access the API.
To learn more about setting an auth mode, see the docs: https://hasura.io/docs/3.0/auth/overview
ddn project set-api-access-mode <public|private> [flags]
Examples
# Set the API access mode for the DDN project set in the context as private
ddn project set-api-access-mode private
# Set the API access mode for the DDN project set in the context as public
ddn project set-api-access-mode public
# Set the API access mode for the DDN project 'my-project-123' as private
ddn project set-api-access-mode private --project my-project-123
# Set the API access mode for the DDN project 'my-project-123' as public
ddn project set-api-access-mode public --project my-project-123
Options
--ci Disables the use of context
-c, --context string Name of the context to use. (default <current_context>)
-h, --help help for set-api-access-mode
-p, --project string DDN Project name
Options inherited from parent operations
--log-level string Log level. Can be DEBUG, WARN, INFO, ERROR, or FATAL. (default "INFO")
--no-prompt Do not prompt for required but missing flags
--out string Output format. Can be table, json or yaml. (default "table")
--timeout int Request timeout in seconds [env: HASURA_DDN_TIMEOUT] (default 100)
Parent operation
- ddn project - Manage Hasura DDN Project