diff --git a/cli/node_identity.go b/cli/node_identity.go index 70e36f4353..20e280344f 100644 --- a/cli/node_identity.go +++ b/cli/node_identity.go @@ -16,7 +16,7 @@ import ( func MakeNodeIdentityCommand() *cobra.Command { var cmd = &cobra.Command{ - Use: "node_identity", + Use: "node-identity", Short: "Get the information public about the node's identity", Long: `Get the information public about the node's identity. diff --git a/docs/website/references/cli/defradb_client.md b/docs/website/references/cli/defradb_client.md index 74007e88d0..d5d55391cb 100644 --- a/docs/website/references/cli/defradb_client.md +++ b/docs/website/references/cli/defradb_client.md @@ -43,7 +43,7 @@ Execute queries, add schema types, obtain node info, etc. * [defradb client collection](defradb_client_collection.md) - Interact with a collection. * [defradb client dump](defradb_client_dump.md) - Dump the contents of DefraDB node-side * [defradb client index](defradb_client_index.md) - Manage collections' indexes of a running DefraDB instance -* [defradb client node_identity](defradb_client_node_identity.md) - Get the information public about the node's identity +* [defradb client node-identity](defradb_client_node-identity.md) - Get the information public about the node's identity * [defradb client p2p](defradb_client_p2p.md) - Interact with the DefraDB P2P system * [defradb client purge](defradb_client_purge.md) - Delete all persisted data and restart * [defradb client query](defradb_client_query.md) - Send a DefraDB GraphQL query request diff --git a/docs/website/references/cli/defradb_client_node_identity.md b/docs/website/references/cli/defradb_client_node-identity.md similarity index 95% rename from docs/website/references/cli/defradb_client_node_identity.md rename to docs/website/references/cli/defradb_client_node-identity.md index e77c8ade99..e8d3c85626 100644 --- a/docs/website/references/cli/defradb_client_node_identity.md +++ b/docs/website/references/cli/defradb_client_node-identity.md @@ -1,4 +1,4 @@ -## defradb client node_identity +## defradb client node-identity Get the information public about the node's identity @@ -14,13 +14,13 @@ The identity contains: ``` -defradb client node_identity [flags] +defradb client node-identity [flags] ``` ### Options ``` - -h, --help help for node_identity + -h, --help help for node-identity ``` ### Options inherited from parent commands diff --git a/docs/website/references/http/openapi.json b/docs/website/references/http/openapi.json index 9c44b980ea..c23b2ebc51 100644 --- a/docs/website/references/http/openapi.json +++ b/docs/website/references/http/openapi.json @@ -1690,7 +1690,7 @@ }, "/node/identity": { "get": { - "description": "Get node's identity", + "description": "Get node's public identity", "operationId": "node_identity", "responses": { "200": { diff --git a/http/handler_store.go b/http/handler_store.go index dab6fa7b61..d5d3645a0e 100644 --- a/http/handler_store.go +++ b/http/handler_store.go @@ -649,7 +649,7 @@ func (h *storeHandler) bindRoutes(router *Router) { nodeIdentity := openapi3.NewOperation() nodeIdentity.OperationID = "node_identity" - nodeIdentity.Description = "Get node's identity" + nodeIdentity.Description = "Get node's public identity" nodeIdentity.Tags = []string{"node", "identity"} nodeIdentity.AddResponse(200, identityResponse) nodeIdentity.Responses.Set("400", errorResponse) diff --git a/tests/clients/cli/wrapper.go b/tests/clients/cli/wrapper.go index aafb4e1a72..cebff16597 100644 --- a/tests/clients/cli/wrapper.go +++ b/tests/clients/cli/wrapper.go @@ -566,7 +566,7 @@ func (w *Wrapper) Host() string { } func (w *Wrapper) GetNodeIdentity(ctx context.Context) (immutable.Option[identity.PublicRawIdentity], error) { - args := []string{"node", "identity"} + args := []string{"client", "node-identity"} data, err := w.cmd.execute(ctx, args) if err != nil {