Skip to content

Commit 272a575

Browse files
hasura-botdliubrobertjdominguez
authored
Chore: Update CLI docs (#876)
Co-authored-by: hasura-bot <build@hasura.io> Co-authored-by: Rob Dominguez <rob.dominguez@hasura.io>
1 parent 51012f1 commit 272a575

File tree

97 files changed

+167
-106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+167
-106
lines changed

docs/reference/cli/commands/ddn_auth.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ Manage Hasura DDN CLI Auth
2020

2121
## Available operations
2222

23+
- [ddn auth generate-promptql-secret-key](/reference/cli/commands/ddn_auth_generate-promptql-secret-key) - Generates the
24+
project's PromptQL secret key and saves to global config
2325
- [ddn auth login](/reference/cli/commands/ddn_auth_login) - Login to DDN
2426
- [ddn auth logout](/reference/cli/commands/ddn_auth_logout) - Logout from DDN
2527
- [ddn auth print-pat](/reference/cli/commands/ddn_auth_print-pat) - Prints the PAT to STDOUT
26-
- [ddn auth print-promptql-secret-key](/reference/cli/commands/ddn_auth_print-promptql-secret-key) - Prints the PromptQL
27-
secret key to STDOUT
28+
- [ddn auth print-promptql-secret-key](/reference/cli/commands/ddn_auth_print-promptql-secret-key) - Prints the
29+
project's PromptQL secret key to STDOUT
2830

2931
## Options
3032

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
sidebar_label: ddn auth generate-promptql-secret-key
3+
sidebar_position: 3
4+
description: Generates the project's PromptQL secret key and saves to global config using the DDN CLI
5+
keywords:
6+
- hasura
7+
- DDN
8+
- docs
9+
- CLI
10+
- ddn auth generate-promptql-secret-key
11+
---
12+
13+
# DDN CLI: ddn auth generate-promptql-secret-key
14+
15+
Generates the project's PromptQL secret key and saves to global config.
16+
17+
## Synopsis
18+
19+
Generates the project's PromptQL secret key and saves to global config
20+
21+
```bash
22+
ddn auth generate-promptql-secret-key [flags]
23+
```
24+
25+
## Examples
26+
27+
```bash
28+
# Generates a PromptQL secret key for the project set in the context and saves to global config
29+
ddn auth generate-promptql-secret-key
30+
```
31+
32+
## Options
33+
34+
```sass
35+
--ci Disables the use of context
36+
-c, --context string Name of the context to use. (default <current_context>)
37+
-h, --help help for generate-promptql-secret-key
38+
-p, --project string DDN Project name
39+
```
40+
41+
## Options inherited from parent operations
42+
43+
```sass
44+
--log-level string Log level. Can be DEBUG, WARN, INFO, ERROR, or FATAL. (default "INFO")
45+
--no-prompt Do not prompt for required but missing flags
46+
--out string Output format. Can be table, json or yaml. (default "table")
47+
--timeout int Request timeout in seconds [env: HASURA_DDN_TIMEOUT] (default 100)
48+
```
49+
50+
## Parent operation
51+
52+
- [ddn auth](/reference/cli/commands/ddn_auth) - Manage Hasura DDN CLI Auth

docs/reference/cli/commands/ddn_auth_login.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn auth login
3-
sidebar_position: 3
3+
sidebar_position: 4
44
description: Login to DDN using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_auth_logout.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn auth logout
3-
sidebar_position: 4
3+
sidebar_position: 5
44
description: Logout from DDN using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_auth_print-pat.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn auth print-pat
3-
sidebar_position: 5
3+
sidebar_position: 6
44
description: Prints the PAT to STDOUT using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_auth_print-promptql-secret-key.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
sidebar_label: ddn auth print-promptql-secret-key
3-
sidebar_position: 6
4-
description: Prints the PromptQL secret key to STDOUT using the DDN CLI
3+
sidebar_position: 7
4+
description: Prints the project's PromptQL secret key to STDOUT using the DDN CLI
55
keywords:
66
- hasura
77
- DDN
@@ -12,11 +12,11 @@ keywords:
1212

1313
# DDN CLI: ddn auth print-promptql-secret-key
1414

15-
Prints the PromptQL secret key to STDOUT.
15+
Prints the project's PromptQL secret key to STDOUT.
1616

1717
## Synopsis
1818

19-
Prints the PromptQL secret key to STDOUT
19+
Prints the project's PromptQL secret key to STDOUT
2020

2121
```bash
2222
ddn auth print-promptql-secret-key [flags]
@@ -27,7 +27,7 @@ ddn auth print-promptql-secret-key [flags]
2727
## Examples
2828

2929
```bash
30-
# Print the PromptQL secret key
30+
# Print the PromptQL secret key of the project set in the context
3131
ddn auth print-promptql-secret-key
3232

3333
# Print PromptQL secret key as JSON

docs/reference/cli/commands/ddn_codemod.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn codemod
3-
sidebar_position: 7
3+
sidebar_position: 8
44
description: Perform transformations on your Hasura project directory using the DDN CLI
55
keywords:
66
- hasura
@@ -20,6 +20,8 @@ Perform transformations on your Hasura project directory
2020

2121
## Available operations
2222

23+
- [ddn codemod configure-header-forwarding](/reference/cli/commands/ddn_codemod_configure-header-forwarding) - Configure
24+
headers to be forwarded to your connector
2325
- [ddn codemod fix-traces-env-var](/reference/cli/commands/ddn_codemod_fix-traces-env-var) - Fix env var used for
2426
configuring traces for connectors
2527
- [ddn codemod rename-graphql-prefixes](/reference/cli/commands/ddn_codemod_rename-graphql-prefixes) - Rename GraphQL
@@ -30,6 +32,8 @@ Perform transformations on your Hasura project directory
3032
Upgrade GraphqlConfig to support aggregates
3133
- [ddn codemod upgrade-graphqlconfig-subscriptions](/reference/cli/commands/ddn_codemod_upgrade-graphqlconfig-subscriptions) -
3234
Upgrade GraphqlConfig to support subscriptions
35+
- [ddn codemod upgrade-model-v1-to-v2](/reference/cli/commands/ddn_codemod_upgrade-model-v1-to-v2) - Upgrade model from
36+
"version" "v1" to "v2" in metadata
3337
- [ddn codemod upgrade-object-boolean-expression-types](/reference/cli/commands/ddn_codemod_upgrade-object-boolean-expression-types) -
3438
Upgrade object boolean expression types metadata
3539
- [ddn codemod upgrade-project-config-v2-to-v3](/reference/cli/commands/ddn_codemod_upgrade-project-config-v2-to-v3) -

docs/reference/cli/commands/ddn_codemod_configure-header-forwarding.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn codemod configure-header-forwarding
3-
sidebar_position: 8
3+
sidebar_position: 9
44
description: Configure headers to be forwarded to your connector using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_codemod_fix-traces-env-var.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn codemod fix-traces-env-var
3-
sidebar_position: 9
3+
sidebar_position: 11
44
description: Fix env var used for configuring traces for connectors using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_codemod_rename-graphql-prefixes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn codemod rename-graphql-prefixes
3-
sidebar_position: 10
3+
sidebar_position: 12
44
description: Rename GraphQL root field and type name prefixes in metadata using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_codemod_upgrade-context-v2-to-v3.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn codemod upgrade-context-v2-to-v3
3-
sidebar_position: 11
3+
sidebar_position: 13
44
description: Upgrade project's context config from v2 to v3 using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_codemod_upgrade-graphqlconfig-aggregate.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn codemod upgrade-graphqlconfig-aggregate
3-
sidebar_position: 12
3+
sidebar_position: 14
44
description: Upgrade GraphqlConfig to support aggregates using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_codemod_upgrade-graphqlconfig-subscriptions.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn codemod upgrade-graphqlconfig-subscriptions
3-
sidebar_position: 13
3+
sidebar_position: 15
44
description: Upgrade GraphqlConfig to support subscriptions using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_codemod_upgrade-model-v1-to-v2.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn codemod upgrade-model-v1-to-v2
3-
sidebar_position: 15
3+
sidebar_position: 16
44
description: Upgrade model from "version" "v1" to "v2" in metadata using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_codemod_upgrade-object-boolean-expression-types.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn codemod upgrade-object-boolean-expression-types
3-
sidebar_position: 14
3+
sidebar_position: 17
44
description: Upgrade object boolean expression types metadata using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_codemod_upgrade-project-config-v2-to-v3.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn codemod upgrade-project-config-v2-to-v3
3-
sidebar_position: 15
3+
sidebar_position: 18
44
description: Upgrade project directory from version v2 to v3 using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_codemod_upgrade-supergraph-config-v1-to-v2.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn codemod upgrade-supergraph-config-v1-to-v2
3-
sidebar_position: 16
3+
sidebar_position: 19
44
description: Upgrade all Supergraph config files at the root of the project directory from v1 to v2 using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_command.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn command
3-
sidebar_position: 17
3+
sidebar_position: 20
44
description: Perform Command related operations using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_command_add.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn command add
3-
sidebar_position: 18
3+
sidebar_position: 21
44
description: Add new Commands to the local metadata using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_command_list.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn command list
3-
sidebar_position: 19
3+
sidebar_position: 22
44
description:
55
Lists details about the functions/procedures of DataConnectorLink, and their corresponding Commands using the DDN CLI
66
keywords:

docs/reference/cli/commands/ddn_command_remove.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn command remove
3-
sidebar_position: 20
3+
sidebar_position: 23
44
description: Removes Commands (and related metadata) in the local metadata using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_command_show.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn command show
3-
sidebar_position: 21
3+
sidebar_position: 24
44
description: Show diff between the command and its corresponding ndc function/procedure using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_command_update.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn command update
3-
sidebar_position: 22
3+
sidebar_position: 25
44
description: Update Commands in the local metadata using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_connector-link.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn connector-link
3-
sidebar_position: 35
3+
sidebar_position: 41
44
description: Perform DataConnectorLink related operations using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_connector-link_add-resources.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn connector-link add-resources
3-
sidebar_position: 37
3+
sidebar_position: 43
44
description: Add all models, commands and relationships from a DataConnectorLink's schema using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_connector-link_add.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn connector-link add
3-
sidebar_position: 36
3+
sidebar_position: 42
44
description: Add a new DataConnectorLink to a Subgraph using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_connector-link_remove.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn connector-link remove
3-
sidebar_position: 38
3+
sidebar_position: 44
44
description: Remove a DataConnectorLink from a Subgraph using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_connector-link_show.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn connector-link show
3-
sidebar_position: 39
3+
sidebar_position: 45
44
description: Show DataConnectorLink details using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_connector-link_update.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn connector-link update
3-
sidebar_position: 40
3+
sidebar_position: 46
44
description: Fetch NDC details from the Connector and update the DataConnectorLink using the DDN CLI
55
keywords:
66
- hasura
@@ -28,14 +28,14 @@ ddn connector-link update <connector-link-name> [flags]
2828
# Update the schema of a DataConnectorLink 'mydb' for Subgraph config 'app'
2929
ddn connector-link update mydb --subgraph ./app/subgraph.yaml
3030

31-
# Update the schema of a DataConnectorLink 'mydb' and add all Models and Commands to the metadata for Subgraph config 'app'
31+
# Update the schema of a DataConnectorLink 'mydb' and add all Models, Commands and Relationships to the metadata for Subgraph config 'app'
3232
ddn connector-link update mydb --add-all-resources --subgraph ./app/subgraph.yaml
3333
```
3434

3535
## Options
3636

3737
```sass
38-
--add-all-resources Add all Models and Commands from the updated DataConnectorLink to the local metadata
38+
--add-all-resources Add all Models, Commands and Relationships from the updated DataConnectorLink to the local metadata
3939
--ci Disables the use of context
4040
-c, --context string Name of the context to use. (default <current_context>)
4141
-e, --env stringArray Environment variable, e.g. key=val. Can be repeated to provide multiple env vars

docs/reference/cli/commands/ddn_connector.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn connector
3-
sidebar_position: 23
3+
sidebar_position: 26
44
description: Perform Connector related operations using the DDN CLI
55
keywords:
66
- hasura
@@ -23,6 +23,7 @@ Perform Connector related operations
2323
## Available operations
2424

2525
- [ddn connector build](/reference/cli/commands/ddn_connector_build) - Perform ConnectorBuild related operations
26+
- [ddn connector env](/reference/cli/commands/ddn_connector_env) - Manage environment variables for Connectors
2627
- [ddn connector init](/reference/cli/commands/ddn_connector_init) - Add a new Connector
2728
- [ddn connector introspect](/reference/cli/commands/ddn_connector_introspect) - Introspect the Connector data source to
2829
update the Connector configuration

docs/reference/cli/commands/ddn_connector_build.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn connector build
3-
sidebar_position: 24
3+
sidebar_position: 27
44
description: Perform ConnectorBuild related operations using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_connector_build_create.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn connector build create
3-
sidebar_position: 25
3+
sidebar_position: 28
44
description: Create a ConnectorBuild on Hasura DDN using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_connector_build_delete.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn connector build delete
3-
sidebar_position: 26
3+
sidebar_position: 29
44
description: Delete a ConnectorBuild from a Project using the DDN CLI
55
keywords:
66
- hasura

docs/reference/cli/commands/ddn_connector_build_get.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
sidebar_label: ddn connector build get
3-
sidebar_position: 27
3+
sidebar_position: 30
44
description: List ConnectorBuilds or get details of a specific one from Hasura DDN using the DDN CLI
55
keywords:
66
- hasura

0 commit comments

Comments
 (0)