CLI
Open documentation actions
Shell Completion
Print a bash, zsh, fish, or PowerShell completion script for Better Fullstack commands, flags, and option values.
completion prints a shell completion script to stdout. The script completes commands, their
flags, and the allowed values of option flags such as --frontend and --database. It registers
both published binary names, create-better-fullstack and create-bfs.
Completion needs both binaries on your PATH. create-bfs is a separate package, so install both
globally:
npm install -g create-better-fullstack create-bfsBash
create-better-fullstack completion bash > ~/.bfs-completion.bash
echo 'source ~/.bfs-completion.bash' >> ~/.bashrcZsh
Save the script as _create-better-fullstack in a directory on fpath:
mkdir -p ~/.zfunc
create-better-fullstack completion zsh > ~/.zfunc/_create-better-fullstackThen add the directory to fpath in ~/.zshrc before compinit runs:
fpath=(~/.zfunc $fpath)
autoload -Uz compinit && compinitFish
mkdir -p ~/.config/fish/conf.d
create-better-fullstack completion fish > ~/.config/fish/conf.d/create-better-fullstack.fishFish loads conf.d files at startup, so both binary names complete in new shells.
PowerShell
if (-not (Test-Path $PROFILE)) { New-Item -ItemType File -Path $PROFILE -Force | Out-Null }
create-better-fullstack completion powershell > "$HOME\bfs-completion.ps1"
Add-Content $PROFILE '. "$HOME\bfs-completion.ps1"'Keep it current
The installed CLI builds the script from its own command router and option schema. Regenerate the file after upgrading so new commands and option values appear.
Printing the script has no side effects. It sends no telemetry, shows no notices, and writes only the script to stdout.