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.
Package commands implements the lfx CLI subcommands.
Package commands implements the lfx CLI subcommands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 ¶
NewAPICommand builds the `lfx api` command for making raw authenticated calls against LFX platform APIs.
func NewAuthCommand ¶
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 ¶
NewDocsCommand builds the hidden `lfx docs` command used to generate LLM/agent-friendly Markdown reference documentation for all commands.
func NewQueryServiceCommand ¶ added in v1.3.0
NewQueryServiceCommand builds the `lfx query-svc` command group.
Types ¶
This section is empty.