FlureeLabs

fluree completions

Generate shell completions.

Usage

fluree completions <SHELL>

Arguments

ArgumentDescription
<SHELL>Shell to generate completions for

Supported Shells

  • bash
  • zsh
  • fish
  • powershell
  • elvish

Description

Generates shell completion scripts that enable tab-completion for fluree commands, options, and arguments.

Installation

Bash

# Add to ~/.bashrc
eval "$(fluree completions bash)"

# Or save to a file
fluree completions bash > /etc/bash_completion.d/fluree

Zsh

# Add to ~/.zshrc
eval "$(fluree completions zsh)"

# Or save to completions directory
fluree completions zsh > ~/.zfunc/_fluree
# Then add to ~/.zshrc: fpath=(~/.zfunc $fpath)

Fish

fluree completions fish > ~/.config/fish/completions/fluree.fish

PowerShell

# Add to your PowerShell profile
fluree completions powershell | Out-String | Invoke-Expression

Examples

# Generate bash completions
fluree completions bash

# Generate zsh completions and save
fluree completions zsh > ~/.zfunc/_fluree

Usage After Installation

After installing completions, you can use tab to complete:

fluree <TAB>        # Shows all commands
fluree que<TAB>     # Completes to "query"
fluree query --<TAB> # Shows available options