# InitCmd Class

Module
import { InitCmd } from "@tsed/cli"
Source/packages/cli/src/commands/init/InitCmd.ts

# Overview

class InitCmd implements CommandProvider {
    protected configuration: Configuration;
    protected cliPlugins: CliPlugins;
    protected packageJson: ProjectPackageJson;
    protected features: Features;
    protected cliService: CliService;
    protected srcRenderer: SrcRendererService;
    protected rootRenderer: RootRendererService;
    protected fs: CliFs;
    $prompt(initialOptions: Partial<InitCmdContext>): QuestionOptions;
    $mapContext(ctx: Partial<InitCmdContext>): InitCmdContext;
    $beforeExec(ctx: InitCmdContext): Promise<void>;
    $exec(ctx: InitCmdContext): Promise<{
        title: string;
        task: (ctx: any) => Listr<any>;
    }[]>;
    addScripts(): void;
    addDependencies(ctx: InitCmdContext): void;
    addDevDependencies(ctx: InitCmdContext): void;
    addFeatures(ctx: InitCmdContext): void;
}

# Members

protected configuration: Configuration

protected cliPlugins: CliPlugins

protected packageJson: ProjectPackageJson

protected features: Features

protected cliService: CliService

protected srcRenderer: SrcRendererService

protected rootRenderer: RootRendererService

protected fs: CliFs

$prompt(initialOptions: Partial<InitCmdContext>): QuestionOptions

$mapContext(ctx: Partial<InitCmdContext>): InitCmdContext

$beforeExec(ctx: InitCmdContext): Promise<void>

$exec(ctx: InitCmdContext): Promise<{
     title: string;
     task: (ctx: any) => Listr<any>;
 }[]>;

addScripts(): void

addDependencies(ctx: InitCmdContext): void

addDevDependencies(ctx: InitCmdContext): void

addFeatures(ctx: InitCmdContext): void