Files

28 lines
972 B
Go

// Copyright (C) 2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package nodecmd
import (
"github.com/luxfi/cli/v2/pkg/cobrautils"
"github.com/spf13/cobra"
)
func NewValidateCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "validate",
Short: "(ALPHA Warning) Join Primary Network or Subnet as validator",
Long: `(ALPHA Warning) This command is currently in experimental mode.
The node validate command suite provides a collection of commands for nodes to join
the Primary Network and Subnets as validators.
If any of the commands is run before the nodes are bootstrapped on the Primary Network, the command
will fail. You can check the bootstrap status by calling lux node status <clusterName>`,
RunE: cobrautils.CommandSuiteUsage,
}
// node validate primary cluster
cmd.AddCommand(newValidatePrimaryCmd())
// node validate subnet cluster subnetName
cmd.AddCommand(newValidateSubnetCmd())
return cmd
}