Installation

For go binaries:

go install bennypowers.dev/cem@latest

For NPM projects:

npm install --save-dev @pwrs/cem

Or clone this repository and build from source:

git clone https://github.com/bennypowers/cem.git
cd cem
make

cem supports shell completion for Bash, Zsh, Fish, and PowerShell. The completion scripts provide tab completion for commands, flags, and file paths.

To load completions in your current shell session:

source <(cem completion bash)

To load completions for every new session, execute once:

Linux:

cem completion bash > /etc/bash_completion.d/cem

macOS:

cem completion bash > $(brew --prefix)/etc/bash_completion.d/cem

To load completions in your current shell session:

source <(cem completion zsh)

To load completions for every new session, execute once:

cem completion zsh > "${fpath[1]}/_cem"

You will need to start a new shell for this setup to take effect.

To load completions in your current shell session:

cem completion fish | source

To load completions for every new session, execute once:

cem completion fish > ~/.config/fish/completions/cem.fish

To load completions in your current shell session:

cem completion powershell | Out-String | Invoke-Expression

To load completions for every new session, add the output of the above command to your PowerShell profile.