Command

nylas completion powershell

Generate PowerShell completion script.

Written by Qasim Muhammad Staff SRE

What does nylas completion powershell do?

The nylas completion powershell command generates a PowerShell completion script for CLI commands and flags. Add it to your profile to enable tab completion.

Usage

nylas completion powershell [flags]

Flags

FlagDescription
--jsonOutput as JSON
--no-colorDisable color output
--verbose(-v)Enable verbose output
--configCustom config file path
--help(-h)Show help for the command
--limitLimit results (most list commands)
--yes(-y)Skip confirmations
--no-descriptionsDisable completion descriptions

Examples

Write the completion script to your PowerShell profile

nylas completion powershell >> $PROFILE

Load completions in the current session

nylas completion powershell | Out-String | Invoke-Expression

Generate a script without completion descriptions

nylas completion powershell --no-descriptions

Example output

# powershell completion for nylas                         -*- shell-script -*-

function __nylas_debug {
    if ($env:BASH_COMP_DEBUG_FILE) {
        "$args" | Out-File -Append -FilePath "$env:BASH_COMP_DEBUG_FILE"
    }
}
# ... (load with: nylas completion powershell | Out-String | Invoke-Expression)

Troubleshooting

Tab completion is not available in a new shell

Confirm your PowerShell profile loads successfully, then restart the shell after appending the completion script.

Run nylas completion powershell --help for full help output.