galaxio-cli

module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: GPL-2.0

README

galaxio-cli

CI Coverage Latest Release Go Report Card License

galaxio is the command-line interface for Galaxio workflows.

This is the initial version of the CLI. It includes help, version output, shell completion, and stable exit codes for scripts and CI.

Install

Install the latest version with Go:

go install github.com/galax-io/galaxio-cli/cmd/galaxio@latest

Or download a prebuilt binary from the GitHub Releases page.

Usage

Show available commands and flags:

galaxio --help

Print build information:

galaxio version
galaxio --version

Control diagnostic output:

galaxio --verbose version
galaxio --quiet version
galaxio --no-color version

Generate shell completion:

galaxio completion bash
galaxio completion zsh
galaxio completion fish
galaxio completion powershell

Update galaxio from GitHub Releases:

galaxio update
galaxio update --dry-run
galaxio update --version 0.1.1

Exit Codes

galaxio keeps exit codes stable for scripts and CI:

Code Meaning
0 Command completed successfully.
1 Runtime failure while executing a valid command.
2 Usage error such as invalid flags, arguments, or commands.

Build From Source

Clone the repository and build the binary:

git clone https://github.com/galax-io/galaxio-cli.git
cd galaxio-cli
go build -o bin/galaxio ./cmd/galaxio

Run the test suite:

go test ./...

License

This project is distributed under the terms described in LICENSE.

Directories

Path Synopsis
cmd
galaxio command
Package main contains the galaxio command-line application.
Package main contains the galaxio command-line application.
internal
buildinfo
Package buildinfo exposes metadata embedded into the galaxio binary.
Package buildinfo exposes metadata embedded into the galaxio binary.
selfupdate
Package selfupdate updates a running galaxio binary from GitHub Releases.
Package selfupdate updates a running galaxio binary from GitHub Releases.
templatecatalog
Package templatecatalog reads and validates Galaxio template registries and packs.
Package templatecatalog reads and validates Galaxio template registries and packs.

Jump to

Keyboard shortcuts

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