package cmd
import "github.com/valerius21/bip32-ssh-keygen/cmd"
Package cmd provides the command-line interface for bip32-ssh-keygen. It implements commands for generating BIP39 mnemonics and deriving Ed25519 SSH keys using SLIP-0010 hierarchical deterministic key derivation.
Index
Variables
var RootCmd = &cobra.Command{ Use: "bip32-ssh-keygen", Short: "Generate deterministic Ed25519 SSH keys from BIP39 seed phrases", Long: `bip32-ssh-keygen generates deterministic Ed25519 SSH keys from BIP39 mnemonics. It uses SLIP-0010 for hierarchical deterministic key derivation, which is specifically designed for Ed25519 and only supports hardened derivation paths. The default derivation path follows BIP44 conventions for SSH keys: m/44'/22'/0'/0' Commands: generate Create a new BIP39 mnemonic seed phrase derive Derive an Ed25519 SSH key from a mnemonic tui Launch an interactive terminal UI Examples: # Generate a 24-word mnemonic bip32-ssh-keygen generate # Derive an SSH key (prompts for mnemonic) bip32-ssh-keygen derive # Launch interactive TUI bip32-ssh-keygen tui`, Version: "v0.2.0", Run: func(cmd *cobra.Command, args []string) { cmd.Help() }, }
RootCmd is the root command for the bip32-ssh-keygen CLI. It serves as the entry point for all subcommands including generate, derive, and an interactive TUI mode.
Functions
func Execute
func Execute()
Execute runs the root command and handles any errors. It is the main entry point for the CLI application.
Directories
| derive | Package derive implements the derive command for generating SSH keys from BIP39 mnemonics. |
| generate | Package generate implements the generate command for creating BIP39 mnemonics. |
| tui | Package tui implements an interactive terminal UI for bip32-ssh-keygen. |