CliCommandsModule · packages/cli/src/commands/serve.ts:433

ServerResetAdminPasswordCommand

component

penguin server reset-admin-password.

API

@Component({
  contributes: {
    "CliCommandsModule.commands": [
      {
        id: "cli.server.reset-admin-password",
        key: "server.reset-admin-password",
        summary: {
          en: "Reset the Web admin account so the next server start prints a new first-login link (the server must be stopped)",
          zh: "重置 Web 管理员账号,下次启动服务时会打印新的首次登录链接(须先停止服务)",
        },
      },
    ],
  },
})
export class ServerResetAdminPasswordCommand {
  @Bind("cli.server.reset-admin-password") command!: CliCommandCode<Messages>;
  setup();
}

Dependencies & Wiring

Extracted from class decorators
@Bindbinds (1)
command → cli.server.reset-admin-password: CliCommandCode<Messages>

Contributes

{
  "CliCommandsModule.commands": [
    {
      "id": "cli.server.reset-admin-password",
      "key": "server.reset-admin-password",
      "summary": {
        "en": "Reset the Web admin account so the next server start prints a new first-login link (the server must be stopped)",
        "zh": "重置 Web 管理员账号,下次启动服务时会打印新的首次登录链接(须先停止服务)"
      }
    }
  ]
}

Target slots: CliCommandsModule.commands

Methods (1)

setup

setup()