commands

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Package commands implements the lfx CLI subcommands.

Package commands implements the lfx CLI subcommands.

Package commands implements the lfx CLI subcommands.

Package commands implements the lfx CLI subcommands.

Index

Constants

This section is empty.

Variables

View Source
var CredentialStoreFlags = []cli.Flag{
	&cli.BoolFlag{
		Name:  insecureStorageFlagName,
		Usage: "Store & retrieve credentials in a plain (unencrypted) file instead of the system backend",
	},
	&cli.StringFlag{
		Name:  backendFlagName,
		Usage: "Pin credential storage to a specific system backend (see `lfx auth backends`); mutually exclusive with --insecure-storage",
	},
}

CredentialStoreFlags are the --insecure-storage and --backend flags used by credStoreFromCommand. They are registered on the root `lfx` command in cmd/lfx/main.go (rather than per-subcommand) so they're inherited via cmd.Bool/cmd.String without redeclaration wherever they're needed -- both the auth-specific commands and API/method calls.

Functions

func NewAPICommand

func NewAPICommand() *cli.Command

NewAPICommand builds the `lfx api` command for making raw authenticated calls against LFX platform APIs.

func NewAuthCommand

func NewAuthCommand() *cli.Command

NewAuthCommand builds the `lfx auth` command group with its subcommands.

--insecure-storage and --backend (registered on the root `lfx` command; see CredentialStoreFlags) control credential storage for all subcommands here. --insecure-storage controls whether credentials bypass the system backend in favor of credstore's plain (unencrypted) file fallback, e.g. for headless/CI use. --backend pins credential storage to a single system backend rather than letting keyring.Open silently pick whichever one currently opens; see credstore.DeviceState.Backend for why that matters once a login has pinned one.

func NewDocsCommand

func NewDocsCommand() *cli.Command

NewDocsCommand builds the hidden `lfx docs` command used to generate LLM/agent-friendly Markdown reference documentation for all commands.

Types

This section is empty.

Jump to

Keyboard shortcuts

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