curl -L https://github.com/danielmiessler/fabric/releases/latest/download/fabric-darwin-arm64 > fabric && chmod +x fabric && ./fabric --version
curl -L https://github.com/danielmiessler/fabric/releases/latest/download/fabric-darwin-amd64 > fabric && chmod +x fabric && ./fabric --version
curl -L https://github.com/danielmiessler/fabric/releases/latest/download/fabric-linux-amd64 > fabric && chmod +x fabric && ./fabric --version
curl -L https://github.com/danielmiessler/fabric/releases/latest/download/fabric-linux-arm64 > fabric && chmod +x fabric && ./fabric --version
brew install fabric-ai
yay -S fabric-ai
fabric-ai
. Add alias fabric='fabric-ai'
to your shell config.go install github.com/danielmiessler/fabric@latest
~/.bashrc
or ~/.zshrc
):
export GOROOT=/usr/local/go export GOPATH=$HOME/go export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH
export GOROOT=$(brew --prefix go)/libexec export GOPATH=$HOME/go export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH
fabric --setup
to set up directories and keys.The great thing about Go is that it's super easy to upgrade Fabric. Just run the same command you used to install it and you'll always get the latest version:
go install github.com/danielmiessler/fabric@latest
Once you have Fabric set up, you can view all options with:
fabric -h
Common usage:
fabric [OPTIONS]
(Below is a partial help output. For the full list, run fabric -h
on your system.)
Examples:
pbpaste | fabric --pattern summarize
# Summarize clipboard content (macOS)pbpaste | fabric --stream --pattern analyze_claims
# Analyze claims with streaming outputfabric -y "https://youtube.com/watch?v=uXs-zPc63kM" --stream --pattern extract_wisdom
# Extract wisdom from a YouTube videofabric -u https://github.com/danielmiessler/fabric/ -p analyze_claims
# Analyze claims on a websiteFor more, see the official usage docs, GitHub patterns directory, and local Fabric Patterns Cheat Sheet.