quasarframework/quasar · error

Unknown action specified (${action}).

Error message

Unknown action specified (${action}).

What it means

'quasar ext <action> <name>' only supports the actions add, remove, invoke, and uninvoke. An unrecognized first parameter prints this warning, shows help, and exits with code 1.

Source

Thrown at app-vite/lib/cmd/ext.js:87

      const prompts = ext.getPrompts()
      const hasPrompts = Object.keys(prompts).length !== 0

      console.log(
        `  ${green(dot)} ${ext.extId}${hasPrompts ? ' (with prompts)' : ''}`
      )

      if (hasPrompts) {
        console.log(JSON.stringify(prompts, null, 2))
        console.log()
      }
    }
  }
} else {
  const [action, extName] = argv._

  if (!['add', 'remove', 'invoke', 'uninvoke'].includes(action)) {
    console.log()
    warn(`Unknown action specified (${action}).`)
    showHelp()
    process.exit(1)
  }

  const ext = appExt.createInstance(extName)

  await ext[action === 'add' || action === 'invoke' ? 'install' : 'uninstall'](
    action === 'invoke' || action === 'uninvoke'
  )
}

View on GitHub (pinned to 4841521b5f)

Solutions

  1. Use one of: add, remove, invoke, uninvoke (e.g. 'quasar ext add my-ext').
  2. Map npm verbs: install→add, uninstall→remove.
  3. Run 'quasar ext --help' for the current command list.

Example fix

// before
quasar ext install @quasar/qmarkdown
// after
quasar ext add @quasar/qmarkdown
Defensive patterns

Strategy: validation

Validate before calling

const VALID = ['add', 'remove', 'invoke', 'uninvoke'];
if (!VALID.includes(action)) {
  throw new Error(`Invalid action '${action}'. Use: ${VALID.join(', ')}`);
}

Type guard

const isExtAction = (a) =>
  ['add', 'remove', 'invoke', 'uninvoke'].includes(a);

Prevention

When it happens

Trigger: Running 'quasar ext install my-ext', 'quasar ext update my-ext', or any typo like 'quasar ext ad my-ext'.

Common situations: Muscle memory from npm-style verbs (install/update/uninstall), typos in the action word, or older documentation referencing renamed commands.

Related errors


AI-assisted analysis of quasarframework/quasar@4841521b5f (2026-08-30). Data as JSON: /api/errors/b64fa767018f6c67. Report an issue: GitHub.