lfx-cli

module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT

README

LFX CLI

lfx is a developer-facing command-line tool for authenticating with the Linux Foundation's LFX platform and making authenticated API calls, following the same interaction model as the gh CLI (lfx auth loginlfx auth token).

Installation

go install github.com/linuxfoundation/lfx-cli/cmd/lfx@latest

Prebuilt binaries for Linux, macOS, and Windows are also published on the Releases page.

Usage

# Log in via the Auth0 Device Code flow.
lfx auth login

# Show the current authentication status.
lfx auth status

# Print a valid access token (e.g. for use in scripts or other tools).
lfx auth token

# Log out and remove stored credentials.
lfx auth logout

# Make an authenticated call to an LFX platform API endpoint.
lfx api <method> <path>

Run lfx --help or lfx <command> --help for full details on any command.

Note: This project is under active development. Authentication and API commands are currently stubs; see the LFXV2-2509 epic for status.

Development

make build   # Build ./bin/lfx
make check   # Format, vet, and lint
make test    # Run tests

See AGENTS.md for detailed development workflows and architecture notes.

Directories

Path Synopsis
cmd
lfx command
Package main provides the lfx CLI binary entry point.
Package main provides the lfx CLI binary entry point.
internal
commands
Package commands implements the lfx CLI subcommands.
Package commands implements the lfx CLI subcommands.

Jump to

Keyboard shortcuts

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