Files
zeekay 579f53c3cc chore: remove local replace directives and update dependencies
- Update github.com/luxfi/netrunner v1.15.3 → v1.15.4
- Update github.com/luxfi/node v1.22.77 → v1.22.80
- Remove local replace directive for netrunner
- Use published package versions for reproducible builds
2026-01-03 07:09:01 -08:00

55 lines
1.4 KiB
Go

// Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package l1cmd
import (
"fmt"
"github.com/luxfi/cli/pkg/application"
"github.com/spf13/cobra"
)
var app *application.Lux
// NewCmd creates the l1 command for managing sovereign L1 blockchains.
func NewCmd(injectedApp *application.Lux) *cobra.Command {
cmd := &cobra.Command{
Use: "l1",
Short: "Create and manage sovereign L1 blockchains",
Long: `The l1 command suite provides tools for creating and managing sovereign L1 blockchains.
L1s are independent blockchains that can be deployed on Lux infrastructure with their own
validator sets, tokenomics, and consensus mechanisms. They support both Proof of Authority (PoA)
and Proof of Stake (PoS) validator management.
To get started, use the l1 create command to configure your L1, then deploy it with l1 deploy.`,
Run: func(cmd *cobra.Command, _ []string) {
err := cmd.Help()
if err != nil {
fmt.Println(err)
}
},
}
app = injectedApp
// l1 create
cmd.AddCommand(newCreateCmd())
// l1 deploy
cmd.AddCommand(newDeployCmd())
// l1 list
cmd.AddCommand(newListCmd())
// l1 describe
cmd.AddCommand(newDescribeCmd())
// l1 validator
cmd.AddCommand(newValidatorCmd())
// l1 upgrade
cmd.AddCommand(newUpgradeCmd())
// l1 import
cmd.AddCommand(newImportCmd())
// l1 migrate
cmd.AddCommand(newMigrateCmd())
return cmd
}