<!-- @generated by usage-cli from usage spec -->

# `usage complete-word`

- **Usage**: `usage complete-word [FLAGS] [WORDS]…`
- **Aliases**: `cw`
- **Effect**: read-only
- **Source code**: [`cli/src/cli/complete_word.rs`](https://github.com/jdx/usage/blob/main/cli/src/cli/complete_word.rs)

Generate shell completion candidates for a partial command line

This is used internally by shell completion scripts to provide intelligent completions for commands, flags, and arguments.

## Arguments

### `[WORDS]…`

User's input from the command line

## Flags

### `-f --file <FILE>`

Usage spec file or script with usage shebang, use "-" to read from stdin

### `-s --spec <SPEC>`

Raw string spec input

### `--cword <CWORD>`

Current word index

### `--shell <SHELL>`

**Choices:**

- `bash`
- `fish`
- `nu`
- `powershell`
- `zsh`

**Default:** `bash`
