From 95e4a8321558442702e8f4a9dc58d44f8769d42d Mon Sep 17 00:00:00 2001 From: maliming <6908465+maliming@users.noreply.github.com> Date: Mon, 8 Jun 2020 16:12:41 +0800 Subject: [PATCH] Document the Console application startup template. Resolve #4011 --- docs/en/CLI.md | 1 + docs/en/Startup-Templates/Console.md | 5 +++++ docs/en/Startup-Templates/Index.md | 1 + docs/en/docs-nav.json | 4 ++++ .../Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/NewCommand.cs | 1 + 5 files changed, 12 insertions(+) create mode 100644 docs/en/Startup-Templates/Console.md diff --git a/docs/en/CLI.md b/docs/en/CLI.md index 86877e9e25..f68ac2ce2e 100644 --- a/docs/en/CLI.md +++ b/docs/en/CLI.md @@ -87,6 +87,7 @@ abp new Acme.BookStore * `mongodb`: MongoDB. * **`module`**: [Module template](Startup-Templates/Module.md). Additional options: * `--no-ui`: Specifies to not include the UI. This makes possible to create service-only modules (a.k.a. microservices - without UI). + * **`console`**: [Console template](Startup-Templates/Console.md). * `--output-folder` or `-o`: Specifies the output folder. Default value is the current directory. * `--version` or `-v`: Specifies the ABP & template version. It can be a [release tag](https://github.com/abpframework/abp/releases) or a [branch name](https://github.com/abpframework/abp/branches). Uses the latest release if not specified. Most of the times, you will want to use the latest version. * `--template-source` or `-ts`: Specifies a custom template source to use to build the project. Local and network sources can be used(Like `D\localTemplate` or `https://.zip`). diff --git a/docs/en/Startup-Templates/Console.md b/docs/en/Startup-Templates/Console.md new file mode 100644 index 0000000000..e4eee20d3c --- /dev/null +++ b/docs/en/Startup-Templates/Console.md @@ -0,0 +1,5 @@ +# Console Startup Template + +## Introduction + +This template implements [how to start ABP from scratch with minimal dependencies](../Getting-Started-Console-Application.md). diff --git a/docs/en/Startup-Templates/Index.md b/docs/en/Startup-Templates/Index.md index f47fb97910..cb649460dd 100644 --- a/docs/en/Startup-Templates/Index.md +++ b/docs/en/Startup-Templates/Index.md @@ -4,6 +4,7 @@ While you can start with an empty project and add needed packages manually, star * [**app**](Application.md): Application template. * [**module**](Module.md): Module/service template. +* [**console**](Console.md): Console template. diff --git a/docs/en/docs-nav.json b/docs/en/docs-nav.json index 9db7916f11..6cfc4469b8 100644 --- a/docs/en/docs-nav.json +++ b/docs/en/docs-nav.json @@ -520,6 +520,10 @@ { "text": "Module", "path": "Startup-Templates/Module.md" + }, + { + "text": "Console", + "path": "Startup-Templates/Console.md" } ] }, diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/NewCommand.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/NewCommand.cs index c55e68916c..4c9a074cd2 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/NewCommand.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/NewCommand.cs @@ -226,6 +226,7 @@ namespace Volo.Abp.Cli.Commands sb.AppendLine(" abp new Acme.BookStore -d mongodb -o d:\\my-project"); sb.AppendLine(" abp new Acme.BookStore -t module"); sb.AppendLine(" abp new Acme.BookStore -t module --no-ui"); + sb.AppendLine(" abp new Acme.BookStore -t console"); sb.AppendLine(" abp new Acme.BookStore -ts \"D:\\localTemplate\\abp\""); sb.AppendLine(" abp new Acme.BookStore -csf false"); sb.AppendLine(" abp new Acme.BookStore --local-framework-ref --abp-path \"D:\\github\\abp\"");