Skip to content

CliFlag

Official

The data passed to the CLI.

Import:

import type { CliFlag } from 'obsidian';

Signature:

export interface CliFlag

Properties

PropertyTypeDescription
descriptionstringDescription shown in help and autocomplete
required?booleanWhether this flag is required.
value?stringValue placeholder (e.g., '<filename>', '<path>'). Omit for boolean flags.

Links to this page: