cmd

package
v0.48.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.1.0"

Version is set at build time via ldflags.

Functions

func AddCLISubcommands added in v0.40.3

func AddCLISubcommands(parent *cobra.Command)

AddCLISubcommands registers the core Base CLI subcommands (collection, record, login, whoami, crons, daemon) directly onto the given parent command. Use this instead of NewCLICommand when you want the commands at root level (e.g. `ats collection list` instead of `ats cli collection list`).

Does NOT add network flags (--mainnet, --testnet, --devnet, --dev) or infrastructure commands (cluster, operator, config, status, self, rpc) because the parent's root typically already has a --dev flag from Base.

func NewCLICommand added in v0.40.3

func NewCLICommand() *cobra.Command

NewCLICommand returns the top-level Cobra command tree for the Base CLI client. These subcommands hit the running server's HTTP API, so they work against any Base-backed daemon (base, atsd, brokerd, etc.) by URL.

Usage from a downstream daemon:

rootCmd.AddCommand(cmd.NewCLICommand())

func NewServeCommand

func NewServeCommand(app core.App, showStartBanner bool) *cobra.Command

NewServeCommand creates and returns new command responsible for starting the default Base web server.

func NewSuperuserCommand

func NewSuperuserCommand(app core.App) *cobra.Command

NewSuperuserCommand creates and returns new command for managing superuser accounts (create, update, upsert, delete).

Types

This section is empty.

Directories

Path Synopsis
Command typegen generates TypeScript type definitions from a running Hanzo Base instance.
Command typegen generates TypeScript type definitions from a running Hanzo Base instance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL