A local-first personal finance app
🔧 Add reset passsword to cli tool (#5185)
Michael Clark8647452ccc26
diff --git a/packages/sync-server/README.md b/packages/sync-server/README.mdindex 1b33101477..d12a6d1c8b 100644--- a/packages/sync-server/README.md+++ b/packages/sync-server/README.md@@ -33,6 +33,7 @@ actual-server [options]| `-h` or `--help` | Print this list and exit. || `-v` or `--version` | Print this version and exit. || `--config` | Path to the config file. |+| `--reset-password` | Reset your password |**Examples**@@ -48,6 +49,12 @@ Run with custom configurationactual-server --config ./config.json```+Reset your password++```bash+actual-server --reset-password+```+### DocumentationWe have a wide range of documentation on how to use Actual. This is all available in our [Community Documentation](https://actualbudget.org/docs/), including topics on [installing](https://actualbudget.org/docs/install/), [Budgeting](https://actualbudget.org/docs/budgeting/), [Account Management](https://actualbudget.org/docs/accounts/), [Tips & Tricks](https://actualbudget.org/docs/getting-started/tips-tricks) and some documentation for developers.diff --git a/packages/sync-server/bin/actual-server.js b/packages/sync-server/bin/actual-server.jsindex 003db740ec..0f59da406a 100755--- a/packages/sync-server/bin/actual-server.js+++ b/packages/sync-server/bin/actual-server.js@@ -15,6 +15,9 @@ const options = {type: 'boolean',short: 'v',},+ 'reset-password': {+ type: 'boolean',+ },config: {type: 'string',},@@ -113,5 +116,11 @@ if (values.config) {}}+if (values['reset-password']) {+ console.info('Running reset password script...');+ await import('../src/scripts/reset-password.js');+ process.exit();+}+// start the sync serverimport('../app.js');diff --git a/upcoming-release-notes/5185.md b/upcoming-release-notes/5185.mdnew file mode 100644index 0000000000..20de8068cb--- /dev/null+++ b/upcoming-release-notes/5185.md@@ -0,0 +1,6 @@+---+category: Features+authors: [MikesGlitch]+---++Add reset-password function to the CLI Tool