diff --git a/packages/@sanity/cli/src/util/generateCommandsDocumentation.ts b/packages/@sanity/cli/src/util/generateCommandsDocumentation.ts index 9f9b1665f1d..00f9ba5e445 100644 --- a/packages/@sanity/cli/src/util/generateCommandsDocumentation.ts +++ b/packages/@sanity/cli/src/util/generateCommandsDocumentation.ts @@ -22,7 +22,7 @@ export function generateCommandsDocumentation( const prefix = group === 'default' ? '' : ` ${group}` const rows = [ - `usage: sanity${prefix} [--default] [-v|--version] [-d|--debug] [-h|--help] []`, + `usage: npx sanity${prefix} [--default] [-v|--version] [-d|--debug] [-h|--help] []`, '', 'Commands:', ] @@ -50,7 +50,7 @@ export function generateCommandDocumentation( const cmdParts = [group || command.name, subCommand].filter(Boolean).join(' ') return [ - `usage: sanity ${cmdParts} ${command.signature}`, + `usage: npx sanity ${cmdParts} ${command.signature}`, '', ` ${command.description}`, '',