Skip to content

Home > vue-metamorph > CreateVueMetamorphCliOptions

CreateVueMetamorphCliOptions interface

The options for the vue-metamorph CLI runner.

Signature:

typescript
export interface CreateVueMetamorphCliOptions

Properties

Property

Modifiers

Type

Description

additionalCliOptions?

(program: Pick<Command, 'option' | 'requiredOption'>) => void

(Optional) Adds extra Commander options, which you can then read through opts().

onProgress?

ProgressCallback

(Optional) The vue-metamorph CLI calls this function after it transforms a file and writes the file back to disk.

plugins

(Plugin | Plugin[])[]

The codemod plugins and manual migration plugins to run against the matching files.

silent?

boolean

(Optional) Whether to suppress the default output of the vue-metamorph CLI.

If you set this option to true, use the onProgress function to produce your own output.