mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
feat(cli): add disable analytics option (#496)
This commit is contained in:
@@ -36,6 +36,7 @@ async function createProject() {
|
||||
auth: true,
|
||||
packageManager: "bun",
|
||||
install: false, // Don't install deps automatically
|
||||
disableAnalytics: true, // Disable analytics
|
||||
});
|
||||
|
||||
if (result.success) {
|
||||
@@ -62,6 +63,23 @@ const result = await init("existing-folder", {
|
||||
});
|
||||
```
|
||||
|
||||
### Disabling Analytics
|
||||
|
||||
You can disable analytics:
|
||||
|
||||
```typescript
|
||||
import { init } from "create-better-t-stack";
|
||||
|
||||
const result = await init("my-private-project", {
|
||||
yes: true,
|
||||
disableAnalytics: true, // No analytics data will be sent
|
||||
frontend: ["tanstack-router"],
|
||||
backend: "hono",
|
||||
});
|
||||
```
|
||||
|
||||
> **Note:** Analytics help improve Better-T Stack by providing insights into usage patterns. When disabled, no data is collected or transmitted.
|
||||
|
||||
## API Reference
|
||||
|
||||
### `init(projectName?, options?)`
|
||||
@@ -130,6 +148,7 @@ interface CreateInput {
|
||||
webDeploy?: WebDeploy; // Web deployment setup
|
||||
directoryConflict?: DirectoryConflict; // "merge" | "overwrite" | "increment" | "error"
|
||||
renderTitle?: boolean; // Show ASCII art title
|
||||
disableAnalytics?: boolean; // Disable analytics and telemetry
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user