Skip to content

Commit 8768090

Browse files
committed
docs: Adds project info command to troubleshooting
feat(docs): add project-info command to troubleshooting Adds a section to the troubleshooting guide that explains how to use the `npx nuxt-users project-info` command to verify the database configuration and module setup. This helps users to identify and resolve database-related issues. Additionally, simplifies the user creation example by removing the list users command. The execute permissions are also updated on some scripts.
1 parent 2d91bd9 commit 8768090

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

docs/public/logo.png

100755100644
File mode changed.

docs/user-guide/troubleshooting.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ npm run dev
5757

5858
## Database Issues
5959

60+
### Verify Configuration
61+
62+
**Problem:** Unsure about your current database configuration or module setup.
63+
64+
**Solution:**
65+
```bash
66+
# Check your project configuration and database settings
67+
npx nuxt-users project-info
68+
69+
# This will show:
70+
# - Database connector type (SQLite, MySQL, PostgreSQL)
71+
# - Database connection details (host, port, user, database name)
72+
# - Table names configuration
73+
# - Migrations table status
74+
# - Number of applied migrations
75+
```
76+
6077
### Database Connection Failed
6178

6279
**Problem:** Getting database connection errors during startup.
@@ -154,10 +171,7 @@ sqlite3 data/users.sqlite3 ".schema users"
154171

155172
1. **Check if user exists:**
156173
```bash
157-
# List all users to verify the user was created
158-
npx nuxt-users list-users
159-
160-
# Or create a test user
174+
# Create a test user
161175
npx nuxt-users create-user -e test@example.com -n "Test User" -p password123
162176
```
163177

scripts/check-peer-dependencies.js

100644100755
File mode changed.

scripts/post-build.js

100644100755
File mode changed.

0 commit comments

Comments
 (0)