Migration Guide¶
From PowerShell Profile¶
If you have existing credentials in PowerShell, use the migration tool:
This will import credentials from:
- Environment variables (DB_SERVER, DB_PORT, etc.)
- Windows Credential Manager
- JSON config at ~/.db_credentials/config.json
Manual Migration¶
dbcreds.migrate
¶
Migration script for importing existing PowerShell credentials into dbcreds.
Classes¶
Functions¶
detect_database_type(port: int, server: str = '') -> DatabaseType
¶
Detect database type from port or server name.
main(env_name: str = typer.Option('default', '--name', '-n', help='Environment name for dbcreds'), force: bool = typer.Option(False, '--force', '-f', help='Overwrite if exists'))
¶
Import credentials from PowerShell environment variables.