GhaylStackDocumentationv1.0.2
العربيةWebsite
Getting started

Getting started

Generate your application

Choose CLI or dotnet new, understand the options and verify the generated solution.

Choose a generation path

Use g for guided creation and development setup. Use dotnet new when you want the template engine directly, including its contact and mail parameters. Both generate files from the GhaylStack template. A Git clone instead creates a working copy of GhaylStack itself.

sh
dotnet tool install --global GhaylStack.CLI --version 1.0.0
g new MyCompany --non-interactive

For a reproducible template selection, install version 1.0.1 explicitly before generation. The CLI accepts an already-installed compatible or newer template; it does not downgrade it.

Use the template directly

sh
dotnet new install GhaylStack.NET.StarterKit@1.0.1
dotnet new ghaylstack -n MyCompany -o MyCompany
cd MyCompany

The short name ghayl is also registered. The template replaces the source name in solution names, project paths and namespaces. It supplies a generated README and excludes starter-kit packaging tools, GitHub workflows and development output. Your generated application therefore does not contain the original CLI project or template-packaging project.

Select the included components

Goal CLI option Direct template option
Omit Aspire --no-aspire --aspire false
Omit both web clients --no-frontend --frontend false
Include the optional mobile client --mobile --mobile true
Defer web package installation --skip-install npm is run separately
Defer NuGet restore CLI scaffolding already defers restore --skipRestore true
Skip Git initialization --git false No CLI Git initialization

CLI parsing is strict: g new MyCompany --aspire false is not the supported CLI spelling. For a server-only project, use g new MyApi --no-frontend --no-aspire and configure external services before running its migrator and API.

Direct template parameters also include --contactEmail, --contactUrl and --mailFrom. Check the installed template with dotnet new ghaylstack --help before using version-specific options.

Understand the generated settings

The CLI generates a per-project development JWT key and creates deploy/docker/.env with random credentials and local URLs when the example file is available. This file belongs to that installation. Review it before deploying and keep it out of commits.

Direct dotnet new does not execute those CLI-specific secret-generation steps. In either path, production domains, mail delivery, application branding and operational credentials still require configuration. Use configuration and deployment.

Validate the result

sh
dotnet build src/MyCompany.slnx -c Release

Expect the renamed solution and host projects. For default options, confirm both clients/admin and clients/dashboard exist. If npm installation warned, run npm ci in each client. Continue with the generated-project branch of quick start.

Use an empty output directory: the CLI refuses a non-empty target. Names start with an ASCII letter and may contain letters, numbers, dots, hyphens and underscores, subject to reserved-name checks. --dry-run previews selection without creating files; it does not build or validate the generated application.

Sources

Template definition, generation command, name validation and packaging guidance.

View MarkdownBack to top

Search documentation

Use ↑ ↓ to move, Enter to open and Esc to close.