Skip to content

Commit 264b375

Browse files
committed
replace x mix to npx add-in for Admin UI features
1 parent cf490f2 commit 264b375

File tree

9 files changed

+44
-26
lines changed

9 files changed

+44
-26
lines changed

MyApp/_pages/admin-ui-analytics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ As they offer significant and valuable insights they're now built into all new A
2727
existing .NET 8 IdentityAuth templates can enable it with:
2828

2929
:::sh
30-
x mix sqlitelogs
30+
npx add-in sqlitelogs
3131
:::
3232

3333
.NET 8 Templates that are not configured to use [Endpoint Routing](/endpoint-routing)
@@ -280,7 +280,7 @@ As this was not having an immediate effect we took a more forceful approach to i
280280
requests from disallowed bots from accessing our App which you can add to your own App with:
281281

282282
:::sh
283-
x mix useragent-blocking
283+
npx add-in useragent-blocking
284284
:::
285285

286286
This will allow you to configure which Bot User Agents you want to reject from accessing your site, e.g:

MyApp/_pages/admin-ui-features.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ See [Database Admin docs](/admin-ui-database) for more info.
8787
Enables invaluable observability into your App, from being able to quickly inspect and browse incoming requests, to tracing their behavior:
8888

8989
:::sh
90-
x mix profiling
90+
npx add-in profiling
9191
:::
9292

9393
Which will add the [Modular Startup](/modular-startup) configuration to your Host project that registers both Request Logging & Profiling features when running your App in [DebugMode](/debugging#debugmode) (i.e. Development):
@@ -149,10 +149,10 @@ public class ConfigureValidation : IHostingStartup
149149
}
150150
```
151151

152-
Which can be quickly added to your project with the [x mix script](/mix-tool) below:
152+
Which can be quickly added to your project with:
153153

154154
:::sh
155-
x mix validation-source
155+
npx add-in validation-source
156156
:::
157157

158158
Which the built-in [Validation Feature](/validation.html#validation-feature) detects to register the `GetValidationRules` and `ModifyValidationRules` APIs used by the Admin Validation Feature:

MyApp/_pages/admin-ui-profiling.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ The Request Logging & Profiling UIs bring an invaluable new level of observabili
66

77
<lite-youtube class="w-full mx-4 my-4" width="560" height="315" videoid="LgQHTSHSk1g" style="background-image: url('https://img.youtube.com/vi/LgQHTSHSk1g/maxresdefault.jpg')"></lite-youtube>
88

9-
The quickest way to enable access to these new features is to [mix](/mix-tool) in the profiling configuration:
9+
The quickest way to enable access to these new features to your App is with:
1010

1111
::: sh
12-
x mix profiling
12+
npx add-in profiling
1313
:::
1414

1515
Which will add the [Modular Startup](/modular-startup) configuration to your Host project that registers both Request Logging & Profiling features when running your App in [DebugMode](/debugging#debugmode) (i.e. Development):
@@ -33,19 +33,19 @@ public class ConfigureProfiling : IHostingStartup
3333
Whilst Request Logs can be added with:
3434

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

3939
Or if you prefer to store Request Logs in an SQLite database:
4040

4141
::: sh
42-
x mix sqlitelogs
42+
npx add-in sqlitelogs
4343
:::
4444

4545
Or to store Request Logs in PostgreSQL, SQL Server or MySql:
4646

4747
::: sh
48-
x mix db-requestlogs
48+
npx add-in db-requestlogs
4949
:::
5050

5151
The default configuration looks at providing useful information during development, where the response request bodies are captured in the Request Logger and the StackTrace is captured on the important events where they can be useful.

MyApp/_pages/admin-ui-rdbms-analytics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ IdentityAuth templates, to switch it over to use a RDBMS we recommend installing
3535
also replace SQLite BackgroundJobs with the RDBMS `DatabaseJobFeature`:
3636

3737
:::sh
38-
x mix db-identity
38+
npx add-in db-identity
3939
:::
4040

4141
Or if you just want to replace SQLite Request Logs with a RDBMS use:
4242

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

4747
Or you can copy the [Modular Startup](/modular-startup) script below:

MyApp/_pages/admin-ui-redis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The Redis Admin UI lets you manage your App's configured Redis Server with a use
99
To add Redis support to your project:
1010

1111
:::sh
12-
x mix redis
12+
npx add-in redis
1313
:::
1414

1515
Or if you already have Redis configured, enable it by registering the `AdminRedisFeature` plugin:

MyApp/_pages/admin-ui-validation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ The DB Validation feature leverages the existing [Declarative Validation](/decla
66

77
<lite-youtube class="w-full mx-4 my-4" width="560" height="315" videoid="W5OJAlOxH98" style="background-image: url('https://img.youtube.com/vi/W5OJAlOxH98/maxresdefault.jpg')"></lite-youtube>
88

9-
This feature can be easily added to existing host projects with the [mix](/mix-tool) command:
9+
This feature can be easily added to existing host projects with:
1010

1111
:::sh
12-
x mix validation-source
12+
npx add-in validation-source
1313
:::
1414

1515
Which will add the [Modular Startup](/modular-startup) validation configuration to your project, utilizing your existing configured database:

MyApp/_pages/admin-ui.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,19 @@ Enables invaluable observability into your App, from being able to quickly inspe
5656
Enable Profiling:
5757

5858
:::copy
59-
x mix profiling
59+
npx add-in profiling
6060
:::
6161

6262
Enable RDBMS Request Logging:
6363

6464
:::copy
65-
x mix db-requestlogs
65+
npx add-in db-requestlogs
6666
:::
6767

6868
Enable SQLite Request Logging:
6969

7070
:::copy
71-
x mix sqlitelogs
71+
npx add-in sqlitelogs
7272
:::
7373

7474
### [Redis Admin](/admin-ui-redis)
@@ -84,7 +84,7 @@ Manage your App's configured Redis Server, query & edit core Redis data types an
8484
Quick start:
8585

8686
:::copy
87-
x mix redis
87+
npx add-in redis
8888
:::
8989

9090
### [Database Admin](/admin-ui-database)
@@ -116,7 +116,7 @@ Leverages the existing Declarative Validation infrastructure to enable dynamical
116116
Quick start:
117117

118118
:::copy
119-
x mix validation-source
119+
npx add-in validation-source
120120
:::
121121

122122
### [AI Chat UI](/ai-chat-analytics)
@@ -132,7 +132,13 @@ A unified API for integrating multiple local and cloud LLMs into your applicatio
132132
Quick start:
133133

134134
:::copy
135-
x mix chat
135+
npx add-in chat
136+
:::
137+
138+
Prerequisite: AI Chat Requires [API Keys](/auth/apikeys):
139+
140+
:::copy
141+
npx add-in apikeys
136142
:::
137143

138144
### Feedback

MyApp/_pages/ai-chat-analytics.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ title: Admin UI Analytics for AI Chat
44

55
ServiceStack's [AI Chat](/ai-chat-api) feature provides a unified API for integrating multiple AI providers into your applications. To gain visibility into usage patterns, costs, and performance across your AI infrastructure, the platform includes comprehensive chat history persistence and analytics capabilities.
66

7-
:::sh
8-
x mix chat
7+
:::copy
8+
npx add-in chat
9+
:::
10+
11+
Prerequisite: AI Chat Requires [API Keys](/auth/apikeys):
12+
13+
:::copy
14+
npx add-in apikeys
915
:::
1016

1117
Or by referencing the **ServiceStack.AI.Chat** NuGet package and adding the `ChatFeature` plugin:

MyApp/_pages/ai-chat-api.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ i.e. the primary API used to access Large Language Models (LLMs).
1313
AI Chat can be added to any .NET 8+ project by installing the **ServiceStack.AI.Chat** NuGet package and
1414
configuration with:
1515

16-
:::sh
17-
x mix chat
16+
:::copy
17+
npx add-in chat
18+
:::
19+
20+
Prerequisite: AI Chat Requires [API Keys](/auth/apikeys):
21+
22+
:::copy
23+
npx add-in apikeys
1824
:::
1925

2026
Which drops this simple [Modular Startup](/modular-startup) that adds the `ChatFeature`
@@ -39,7 +45,7 @@ public class ConfigureAiChat : IHostingStartup
3945
As AI Chat protects its APIs and UI with Identity Auth or API Keys, you'll need to enable the [API Keys Feature](/auth/apikeys) if you haven't already:
4046

4147
:::sh
42-
x mix apikeys
48+
npx add-in apikeys
4349
:::
4450

4551
## Single Powerful API

0 commit comments

Comments
 (0)