#!/usr/bin/env node // Generate an argon2id hash for the admin password. // Usage: node tools/hashPassword.js 'mon-mot-de-passe' // Then copy the output into .env as ADMIN_PASSWORD_HASH=... import { hashPassword } from '../lib/password.js'; const plain = process.argv[2]; if (!plain) { console.error("Usage: node tools/hashPassword.js ''"); process.exit(1); } const h = await hashPassword(plain); console.log(h);