Sign In

walwarden-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

walwarden-cli

Customer-side Postgres restore CLI for Walwarden.

npmnpm
Version
0.0.2
Version published
Weekly downloads
2
-75%
Maintainers
1
Weekly downloads
 
Created
Source

@walwarden/cli

Customer-side Postgres restore CLI for Walwarden.

What it does

Restores a Postgres database from a backup managed by Walwarden. The CLI receives a one-liner from the Walwarden dashboard and drives the restore against a target database you control. Progress and audit events are reported back to Walwarden in real time.

Usage

The Walwarden dashboard generates the exact command. General form:

WALWARDEN_TOKEN=<token> npx @walwarden/cli restore \
  --manifest <sha256> \
  --target postgres://user:pass@host:5432/dbname \
  --mode new_database

For an in-place restore (overwrites the target):

WALWARDEN_TOKEN=<token> npx @walwarden/cli restore \
  --manifest <sha256> \
  --target postgres://user:pass@host:5432/dbname \
  --mode in_place \
  --confirm-destructive

Flags

FlagRequiredDescription
--manifest <sha256>yesSHA-256 of the backup manifest (64 hex chars)
--target <dsn>yesTarget Postgres DSN
--mode new_database|in_placeyesRestore into a fresh database or overwrite existing
--confirm-destructiveif in_placeExplicit acknowledgement for destructive restore
--jsonnoEmit JSONL progress to stdout (auto-enabled when not a TTY)
--no-colornoDisable ANSI color output

Environment

VariableRequiredDescription
WALWARDEN_TOKENyesShort-lived restore token from the dashboard
WALWARDEN_API_URLyesAPI base URL for the deployed Walwarden environment
PGPASSWORDnoIf set and target DSN has no password, merged automatically

Requirements

Node.js >= 20.

FAQs

Package last updated on 31 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts