Skip to content

Commit d494020

Browse files
committed
Replace x new to npx create-net
1 parent 7c20777 commit d494020

38 files changed

+57
-57
lines changed

MyApp/_pages/auth/authentication-and-authorization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ Most of [ServiceStack's Project Templates](/dotnet-new) are configured with Auth
320320
project template:
321321

322322
:::sh
323-
x new web ProjectName
323+
npx create-net web ProjectName
324324
:::
325325

326326
By [mixing in your desired auth](/mix-tool#mix-in-auth-repository) features, e.g. to configure your App to enable auth & maintain in SQL Server run:

MyApp/_pages/auth/identity-aspnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ For new projects we recommend starting with the new [ASP.NET Core Identity Auth]
1616
Create new `mvcidentity` project with:
1717

1818
:::sh
19-
x new mvcidentity ProjectName
19+
npx create-net mvcidentity ProjectName
2020
:::
2121

2222
[mvcidentity](https://github.com/LegacyTemplates/mvcidentity) is essentially the same App with the same functionality as [mvcauth](https://github.com/NetCoreTemplates/mvcauth)

MyApp/_pages/auth/identity-servicestack.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ title: Using ServiceStack Auth in MVC
1212
Create new `mvcauth` project with:
1313

1414
:::sh
15-
x new mvcauth ProjectName
15+
npx create-net mvcauth ProjectName
1616
:::
1717

1818
The ServiceStack Auth is pre-configured to persist users in an OrmLite Auth Repository (default SQLite) and enables both local

MyApp/_pages/auth/migrate-to-identity-auth.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,13 @@ The easiest way to include the Identity Auth UI Pages to your App is to copy you
283283
that already includes them, you can create a new Blazor App with:
284284

285285
:::sh
286-
x new blazor ProjectNamespace
286+
npx create-net blazor ProjectNamespace
287287
:::
288288

289289
Or create a new MVC App with:
290290

291291
:::sh
292-
x new mvc ProjectNamespace
292+
npx create-net mvc ProjectNamespace
293293
:::
294294

295295
Alternatively you can manually copy the pages from the project template repositories, for Blazor most of the Identity Auth

MyApp/_pages/autoquery/autogen.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ See the annotated guide below to follow along:
226226
Create a new [grpc](https://github.com/NetCoreTemplates/grpc) .NET Core project and open it in VS Code:
227227

228228
:::sh
229-
x new grpc NorthwindApi
229+
npx create-net grpc NorthwindApi
230230
code NorthwindApi
231231
:::
232232

MyApp/_pages/autoquery/bookings-crud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dotnet run
2727
If you have different App requirements you can instead create a project from scratch that integrates with your existing preferred infrastructure - the [mix tool](/mix-tool) and ServiceStack's layered [Modular Startup](/modular-startup) configurations makes this a cinch, start with an empty `web` project:
2828

2929
:::sh
30-
x new web ProjectName
30+
npx create-net web ProjectName
3131
:::
3232

3333
Then mix in your desired features. E.g. In order for this project to be self-hosting it utilizes the embedded SQLite database, which we can configure along with configuration to enable popular Authentication providers and an RDBMS SQLite Auth Repository with:

MyApp/_pages/autoquery/okai-models.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ To generate a CRUD Admin UI you'll need to use okai within a new Blazor Admin pr
170170
Blazor Vue ([blazor-vue](https://blazor-vue.web-templates.io)) project:
171171

172172
:::sh
173-
x new blazor-admin Acme
173+
npx create-net blazor-admin Acme
174174
:::
175175

176176
Which support a "Modular no-touch" Admin UI that will appear under a new group in the Admin Sidebar:

MyApp/_pages/background-jobs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Emails when SMTP is enabled. So the easiest way to get started with ServiceStack
9494
[create a new Identity Auth Project](https://servicestack.net/start), e.g:
9595

9696
:::sh
97-
x new blazor-vue MyApp
97+
npx create-net blazor-vue MyApp
9898
:::
9999

100100
### Exiting .NET 8 Templates

MyApp/_pages/create-your-first-webservice.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Unless you're restricted to working with .NET Framework you'll want to start wit
2525
we'll start with the Empty [web](https://github.com/NetCoreTemplates/web) template which implicitly uses the folder name for the Project Name:
2626

2727
:::sh
28-
x new web WebApp
28+
npx create-net web WebApp
2929
:::
3030

3131
## Step 3: Run your project

MyApp/_pages/do-github-action-mix-deployment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Specifically, we'll be using `x mix build release-ghr-vanilla` which has GitHub
1515
```
1616
git clone [email protected]:<your user or org>/DropletApp.git
1717
cd DropletApp
18-
x new web
18+
npx create-net web
1919
x mix build release-ghr-vanilla
2020
# 'y' to process with writing files from x mix.
2121
git add -A
@@ -187,10 +187,10 @@ git clone <GitHub URL>
187187
cd <project name>
188188
```
189189

190-
We are going to use `x new web` as a command to create a blank ServiceStack application. Run this in your newly cloned repository folder, the project name will be derived from the repository directory name.
190+
We are going to use `npx create-net web` as a command to create a blank ServiceStack application. Run this in your newly cloned repository folder, the project name will be derived from the repository directory name.
191191

192192
::: info
193-
If you create the project in a new directory beforehand and want to name it, use `x new web <project name>`.
193+
If you create the project in a new directory beforehand and want to name it, use `npx create-net web <project name>`.
194194
:::
195195

196196
The `x new` command gives us a working ServiceStack project from a template, `x mix` allows us to add additional templated files that work with templated ServiceStack projects.
@@ -242,7 +242,7 @@ Once these steps are done, our GitHub Actions will be able to push Docker images
242242
```bash
243243
git clone [email protected]:<your user or org>/WebApp.git # Where "WebApp" is the name of your repository
244244
cd WebApp
245-
x new web
245+
npx create-net web
246246
x mix build release-ghr-vanilla
247247
git add -A
248248
git commit -m "Add new ServiceStack project with GitHub Action files"

0 commit comments

Comments
 (0)