Skip to content

Commit 757257d

Browse files
committed
replace x mix with npx add-in
1 parent f8a06f6 commit 757257d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+123
-123
lines changed

MyApp/_pages/amazon-sqs-mq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: Amazon SQS MQ
88
Use the `sqs` mixin to register an [MQ Server](/messaging) for Amazon SQS with an existing .NET App:
99

1010
:::sh
11-
x mix sqs
11+
npx add-in sqs
1212
:::
1313

1414
## Worker Service Template

MyApp/_pages/app-tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ To do this we've added support for **AppTasks** which let you define tasks in yo
4141
You can add DB Migration support to existing projects by applying the [migrations](https://gist.github.com/gistlyn/50df00df4b3b9faa94a73d32ab4b2484) gist to your project with:
4242

4343
:::sh
44-
x mix migrations
44+
npx add-in migrations
4545
:::
4646

4747
This will register the Migration **AppTasks** with your App via a [Modular Startup](/modular-startup) configuration:

MyApp/_pages/auth/admin-apikeys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The easiest way to get started is by creating a new Empty project with API Keys
3333
Existing projects not configured with Authentication can enable this simple Auth configuration by running:
3434

3535
:::sh
36-
x mix apikeys-auth
36+
npx add-in apikeys-auth
3737
:::
3838

3939
Which will add the [ServiceStack.Server](https://nuget.org/packages/ServiceStack.Server) dependency and the [Modular Startup](/modular-startup) configuration below:

MyApp/_pages/auth/apikeys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ selecting the **API Keys** feature on the [Start Page](/start):
389389
Or by mixing the `apikeys` project in your host project:
390390

391391
:::sh
392-
x mix apikeys
392+
npx add-in apikeys
393393
:::
394394

395395
Which add the `Configure.ApiKeys.cs` modular startup to your Host project, which registers the `ApiKeysFeature` plugin

MyApp/_pages/auth/auth-repository.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ The easiest way to configure a User Auth Repository in your [Modular Startup](/m
5050
is to [mix them in](/mix-tool#composable-features), e.g. you can configure to use an OrmLiteAuthRepository using SQL Server with:
5151

5252
:::sh
53-
x mix auth-db sqlserver
53+
npx add-in auth-db sqlserver
5454
:::
5555

5656
You can view other Auth Repository "mix ins" available with:
5757

5858
:::sh
59-
x mix [auth]
59+
npx add-in [auth]
6060
:::
6161

6262
Which displays the current list of available Auth Repositories:
@@ -78,7 +78,7 @@ Results matching tag [auth]:
7878
and search the available RDBMS's and NoSQL Data Stores:
7979

8080
:::sh
81-
x mix [db]
81+
npx add-in [db]
8282
:::
8383

8484
That can be easily configured by a mix in:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ npx create-net web ProjectName
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:
327327

328328
:::sh
329-
x mix auth auth-db sqlserver
329+
npx add-in auth auth-db sqlserver
330330
:::
331331

332332
Checkout the [Bookings CRUD YouTube demo](https://youtu.be/XpHAaCTV7jE) for a quick preview of this in action.

MyApp/_pages/auth/signin-with-apple.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ A quick way to can create a working project from scratch with your preferred con
3838

3939
```bash
4040
mkdir web && cd web
41-
x mix init auth-ext auth-db sqlite
41+
npx add-in init auth-ext auth-db sqlite
4242
```
4343

4444
This creates an empty project, with Auth Enabled, adds the **ServiceStack.Extensions** NuGet package, registers OrmLite, SQLite and the `OrmLiteAuthRepository`.

MyApp/_pages/autoquery/autogen.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Inside VS Code open a Terminal Window and [mix in](/mix-tool) the required confi
234234

235235
:::sh
236236
cd NorthwindApi
237-
x mix autocrudgen sqlite northwind.sqlite
237+
npx add-in autocrudgen sqlite northwind.sqlite
238238
:::
239239

240240
Which will mix in the [autocrudgen](https://gist.github.com/gistlyn/464a80c15cb3af4f41db7810082dc00c) gist to enable AutoQuery and tell it to Auto Generate AutoQuery and CRUD Services for all tables in the registered RDBMS (default schema):

MyApp/_pages/autoquery/bookings-crud.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ npx create-net web ProjectName
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:
3434

3535
:::sh
36-
x mix auth auth-db sqlite
36+
npx add-in auth auth-db sqlite
3737
:::
3838

3939
But if you also wanted to enable the new [Sign in with Apple](/auth/signin-with-apple) and use SQL Server you'll instead run:
4040

4141
:::sh
42-
x mix auth-ext auth-db sqlserver
42+
npx add-in auth-ext auth-db sqlserver
4343
:::
4444

4545
You can view all DB and Auth options available by searching for available layered gist configurations by tag:
4646

4747
```bash
48-
x mix [db]
49-
x mix [auth]
48+
npx add-in [db]
49+
npx add-in [auth]
5050
```
5151

5252
Typically the only configuration that needs updating is your DB connection string in [Configure.Db.cs](https://github.com/NetCoreApps/BookingsCrud/blob/main/Acme/Configure.Db.cs), in this case it's changed to use a persistent SQLite DB:

MyApp/_pages/azure-service-bus-mq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Azure Service Bus MQ
77
Use the `servicebus` mixin to register an [MQ Server](/messaging) for Azure Service Bus with an existing .NET App:
88

99
:::sh
10-
x mix servicebus
10+
npx add-in servicebus
1111
:::
1212

1313
## Worker Service Template

0 commit comments

Comments
 (0)