You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Scan for common secret patterns (API keys, tokens, passwords)
342
-
- Warn on `pm doctor` if secrets are committed
343
-
- Optional [Vaultic](https://crates.io/crates/vaultic) detection (not a dependency — PM works fully without it):
344
-
-**Not installed** → recommend install options: `cargo install vaultic` (requires [Rust toolchain](https://rustup.rs)) or download binary from [GitHub Releases](https://github.com/SoftDryzz/Vaultic/releases). Always link to [Vaultic repo](https://github.com/SoftDryzz/Vaultic) for docs
345
-
-**Installed but not initialized** → suggest `vaultic init` with link to docs so the user understands what it does before running it
346
-
-**Installed and configured** → show enhanced secret management hints (e.g., `vaultic encrypt .env`)
Discovers all `.env*` files (`.env`, `.env.local`, `.env.production`, etc.) in the project directory and shows their entry count and file size.
601
+
602
+
**Example output:**
603
+
```
604
+
Env Files — my-api
605
+
606
+
File Entries Size
607
+
────────────────────────────────────
608
+
.env 5 128 B
609
+
.env.local 3 84 B
610
+
.env.production 8 256 B
611
+
612
+
3 env files found
613
+
```
614
+
615
+
---
616
+
617
+
#### Show .env file contents
618
+
```bash
619
+
pm env show <name><file># Sensitive values masked
620
+
pm env show <name><file> --show # All values revealed
621
+
```
622
+
623
+
Displays the contents of a specific `.env` file. Sensitive values (PASSWORD, TOKEN, KEY, SECRET, AUTH) are masked by default — shows the first 3 characters followed by `****`.
624
+
625
+
---
626
+
627
+
#### Switch environment
628
+
```bash
629
+
pm env switch <name><env-name>
630
+
```
631
+
632
+
Copies `.env.<env-name>` to `.env` in the project directory. Asks for confirmation if `.env` already exists.
| SQLx |`.sqlx/` dir |`sqlx migrate run`|`sqlx migrate info`|
1080
+
1081
+
#### Run a migration
1082
+
```bash
1083
+
pm migrate <name>
1084
+
```
1085
+
1086
+
Detects the migration tool for the project, asks for confirmation (y/n), then executes the migration command. If multiple tools are detected, uses the first one found.
1087
+
1088
+
#### Check migration status
1089
+
```bash
1090
+
pm migrate <name> status
1091
+
```
1092
+
1093
+
Runs the status command for the detected migration tool. This is read-only and does not require confirmation.
1094
+
1095
+
**Example output:**
1096
+
```
1097
+
Migration — my-api
1098
+
1099
+
Tool: Prisma
1100
+
Command: npx prisma migrate status
1101
+
1102
+
[Prisma output here...]
1103
+
```
1104
+
1105
+
Migration tools are also shown in `pm info`:
1106
+
```
1107
+
Migration: Prisma, Flyway
1108
+
```
1109
+
1110
+
---
1111
+
1010
1112
### 🔹 Help and Version
1011
1113
1012
1114
#### View help
@@ -1927,6 +2029,10 @@ pm env list <name> # List (masked)
1927
2029
pm env list <name> --show # List (revealed)
1928
2030
pm env remove <name> KEY # Remove a variable
1929
2031
pm env clear <name># Remove all variables
2032
+
pm env files <name># List .env files in project
2033
+
pm env show <name> .env # Show .env contents (masked)
2034
+
pm env show <name> .env.local --show # Show .env contents (revealed)
2035
+
pm env switch <name> production # Copy .env.production → .env
1930
2036
1931
2037
# === HOOKS ===
1932
2038
pm hooks <name># List hooks
@@ -1983,6 +2089,11 @@ pm modules <name> # Show workspace modules for a pr
1983
2089
pm build --all # Build all registered projects
1984
2090
pm test --all # Test all registered projects
1985
2091
2092
+
# === DATABASE MIGRATIONS ===
2093
+
pm migrate # List migration tools per project
2094
+
pm migrate <name># Run migration (with confirmation)
Copy file name to clipboardExpand all lines: docs/es/README.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -189,6 +189,9 @@ pm run servicio-pedidos
189
189
- 🔄 **Detección CI/CD** - Detecta GitHub Actions, GitLab CI, Jenkins, Travis CI, CircleCI con `pm ci` y en `pm info`
190
190
- 🧹 **Linting y Formateo** - Ejecuta linters con `pm lint` y formateadores con `pm fmt`, auto-detecta ESLint, Clippy, Prettier, gofmt, Ruff y más
191
191
- 📦 **Espacios de Trabajo Multi-proyecto** - Detecta módulos monorepo con `pm modules`, detección multi-lenguaje, `pm build --all` y `pm test --all`
192
+
- 📂 **Detección de archivos .env** - Descubre archivos `.env` con `pm env files`, visualiza contenidos enmascarados con `pm env show`, cambia entornos con `pm env switch`
193
+
- 🔑 **Escaneo de secretos** - Detecta secretos hardcodeados (claves AWS, tokens GitHub, tokens Slack) en archivos `.env`, integrado en `pm doctor` y `pm secure`
194
+
- 🗄️ **Migraciones de base de datos** - Detecta herramientas de migración (Prisma, Alembic, Diesel, Flyway, Liquibase, SQLx) con `pm migrate`, ejecuta y comprueba estado
192
195
- 🌐 **Multi-plataforma** - Funciona en Windows, Linux y Mac
0 commit comments