wcred 1.2.1
dotnet tool install --global wcred --version 1.2.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local wcred --version 1.2.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=wcred&version=1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package wcred --version 1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
wcred - Windows Credential Manager CLI
Command-line tool for managing Windows Credential Manager credentials. Supports automation with stdin/environment variables, encrypted export/import, and more.
Installation
dotnet tool install --global wcred
Commands
List Credentials
wcred list # List all credentials
wcred list "MyApp:*" # Filter by pattern
wcred list --wide # Full details with timestamps
Get a Credential
wcred get "MyApp:Production" # Show credential (password masked)
wcred get "MyApp:Production" -s # Show password in plain text
Store a Credential
# Interactive (prompts securely)
wcred set "MyApp:Token" "api-key"
# With comment
wcred set "MyApp:DB" "sa" --comment "Production database"
# From environment variable (CI/CD)
wcred set "MyApp:Token" "api-key" --password-env MY_SECRET
# From stdin (scripts)
echo "password" | wcred set "MyApp:Token" "api-key" --password-stdin
Delete a Credential
wcred delete "MyApp:Production" # With confirmation
wcred delete "MyApp:Production" --force # Skip confirmation
Export Credentials
# DPAPI encryption (current user)
wcred export --filter "MyApp:*" --output backup.json
# Password encryption (portable)
wcred export --filter "MyApp:*" --output backup.json --encrypt --password-env EXPORT_PW
Import Credentials
wcred import --file backup.json # DPAPI-encrypted
wcred import --file backup.json --password-env IMPORT_PW # Password-encrypted
wcred import --file backup.json --dry-run # Preview only
Automation
For CI/CD pipelines, use --password-env or --password-stdin to avoid exposing secrets in command history:
# GitHub Actions
# env: DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
wcred set "MyApp:DB" "sa" --password-env DB_PASSWORD
Audit Logging
Set WCRED_AUDIT_LOG environment variable to log all operations:
$env:WCRED_AUDIT_LOG = "C:\logs\wcred.log"
wcred get "MyApp:Production"
# Logs: [2026-01-22 14:30:00Z] ACCESSED: MyApp:Production | Op: Read | ...
Documentation
Full documentation: https://github.com/Officialstjp/SecureCredentialManagement/blob/main/docs/cli.md
Related
- Library:
Stjp.SecureCredentialManagement- .NET library for programmatic access
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.