# release in main homebrew
brew install hof
# pre-releases in hofstadter tap
brew install hofstadter-io/tap/hof
Source
from source
git clone https://github.com/hofstadter-io/hof && cd hof
git checkout v0.6.9
make hof
Updating hof
You can use the built-in update command to check and install any version.
# Check for an updatehof update --check
# Update to the latest versionhof update
# Install a specific versionhof update --version vX.Y.Z
with Homebrew
# Check for an update in brewbrew outdated hofstadter-io/tap/hof
# Update to the latest version in brewbrew upgrade hofstadter-io/tap/hof
# To get more info regarding hof packagebrew info hofstadter-io/tap/hof
Testing hof
Run hof help in your terminal.
$ hof help
hof - the higher order framework
Learn more at https://docs.hofstadter.io
Usage:
hof [flags] [command] [args]
Main commands:
chat co-create with AI (alpha)
create starter kits or blueprints from any git repo
datamodel manage, diff, and migrate your data models
def print consolidated CUE definitions
eval evaluate and print CUE configuration
export output data in a standard format
flow run workflows and tasks powered by CUE
fmt format any code and manage the formatters
gen CUE powered code generation
mod CUE module dependency management
tui a terminal interface to Hof and CUE
vet validate data with CUE
Additional commands:
help help about any command
update check for new versions and run self-updates
version print detailed version information
completion generate completion helpers for your terminal
feedback open an issue or discussion on GitHub
Flags:
-E, --all-errors print all available errors
-h, --help help for hof
-i, --ignore-errors turn off output and assume defaults at prompts
-D, --include-data auto include all data files found with cue files
-V, --inject-env inject all ENV VARs as default tag vars
-I, --input stringArray extra data to unify into the root value
-p, --package string the Cue package context to use during execution
-l, --path stringArray CUE expression for single path component when placing data files
-q, --quiet turn off output and assume defaults at prompts
-d, --schema stringArray expression to select schema to apply to data files
--stats print generator statistics
-0, --stdin-empty A flag that ensure stdin is zero and does not block
-t, --tags stringArray @tags() to be injected into CUE code
-U, --user-files stringArray file globs to embed into the root value (<cue-path>=<file-glob>), use % as slash to trim before
-v, --verbosity int set the verbosity of output
--with-context add extra context for data files, usable in the -l/path flag
Use "hof [command] --help / -h" for more information about a command.
Opting out of telemetry
We collect a few metrics to help us understand basic usage.
Which command is run, never the arguments or flags
To opt out of telemetry, set HOF_TELEMETRY_DISABLED=1
Long term, we would like to move to the Go strategy, which
uses a probability based method for reducing metrics even further,
i.e to collect enough for statistical
significance and much more focused to the questions at hand.