diff --git a/.gitignore b/.gitignore index 4be0aa478b..fa09769c78 100644 --- a/.gitignore +++ b/.gitignore @@ -96,5 +96,5 @@ test_noco.db httpbin .run/test-debug.run.xml -/packages/nc-secret-cli/dist/index.js -/packages/nc-secret-cli/dist/index.js.map +/packages/nc-secret-mgr/dist/index.js +/packages/nc-secret-mgr/dist/index.js.map diff --git a/packages/nc-secret-cli/.npmignore b/packages/nc-secret-mgr/.npmignore similarity index 100% rename from packages/nc-secret-cli/.npmignore rename to packages/nc-secret-mgr/.npmignore diff --git a/packages/nc-secret-cli/dist/cli.js b/packages/nc-secret-mgr/dist/cli.js similarity index 100% rename from packages/nc-secret-cli/dist/cli.js rename to packages/nc-secret-mgr/dist/cli.js diff --git a/packages/nc-secret-cli/dist/cli.js.LICENSE.txt b/packages/nc-secret-mgr/dist/cli.js.LICENSE.txt similarity index 100% rename from packages/nc-secret-cli/dist/cli.js.LICENSE.txt rename to packages/nc-secret-mgr/dist/cli.js.LICENSE.txt diff --git a/packages/nc-secret-cli/src/core/NcConfig.ts b/packages/nc-secret-mgr/src/core/NcConfig.ts similarity index 100% rename from packages/nc-secret-cli/src/core/NcConfig.ts rename to packages/nc-secret-mgr/src/core/NcConfig.ts diff --git a/packages/nc-secret-cli/src/core/NcError.ts b/packages/nc-secret-mgr/src/core/NcError.ts similarity index 100% rename from packages/nc-secret-cli/src/core/NcError.ts rename to packages/nc-secret-mgr/src/core/NcError.ts diff --git a/packages/nc-secret-cli/src/core/SecretManager.ts b/packages/nc-secret-mgr/src/core/SecretManager.ts similarity index 100% rename from packages/nc-secret-cli/src/core/SecretManager.ts rename to packages/nc-secret-mgr/src/core/SecretManager.ts diff --git a/packages/nc-secret-cli/src/core/index.ts b/packages/nc-secret-mgr/src/core/index.ts similarity index 100% rename from packages/nc-secret-cli/src/core/index.ts rename to packages/nc-secret-mgr/src/core/index.ts diff --git a/packages/nc-secret-cli/src/core/logger.ts b/packages/nc-secret-mgr/src/core/logger.ts similarity index 100% rename from packages/nc-secret-cli/src/core/logger.ts rename to packages/nc-secret-mgr/src/core/logger.ts diff --git a/packages/nc-secret-cli/src/index.spec.ts b/packages/nc-secret-mgr/src/index.spec.ts similarity index 100% rename from packages/nc-secret-cli/src/index.spec.ts rename to packages/nc-secret-mgr/src/index.spec.ts diff --git a/packages/nc-secret-cli/src/index.ts b/packages/nc-secret-mgr/src/index.ts similarity index 100% rename from packages/nc-secret-cli/src/index.ts rename to packages/nc-secret-mgr/src/index.ts diff --git a/packages/nc-secret-cli/src/nocodb/cli.js b/packages/nc-secret-mgr/src/nocodb/cli.js similarity index 100% rename from packages/nc-secret-cli/src/nocodb/cli.js rename to packages/nc-secret-mgr/src/nocodb/cli.js diff --git a/packages/nc-secret-cli/tsconfig.json b/packages/nc-secret-mgr/tsconfig.json similarity index 100% rename from packages/nc-secret-cli/tsconfig.json rename to packages/nc-secret-mgr/tsconfig.json diff --git a/packages/nc-secret-cli/webpack.config.js b/packages/nc-secret-mgr/webpack.config.js similarity index 100% rename from packages/nc-secret-cli/webpack.config.js rename to packages/nc-secret-mgr/webpack.config.js diff --git a/packages/noco-docs/docs/100.data-sources/050.updating-secret.md b/packages/noco-docs/docs/100.data-sources/050.updating-secret.md index ad5a8771db..ab5298e2a2 100644 --- a/packages/noco-docs/docs/100.data-sources/050.updating-secret.md +++ b/packages/noco-docs/docs/100.data-sources/050.updating-secret.md @@ -1,32 +1,32 @@ --- title: 'Updating Secrets' -description: 'Learn how to update secrets in NocoDB using the nc-secret-cli package.' -tags: ['Secrets', 'nc-secret-cli', 'Update', 'Security'] -keywords: ['NocoDB secrets', 'nc-secret-cli', 'Update', 'Security'] +description: 'Learn how to update secrets in NocoDB using the nc-secret-mgr package.' +tags: ['Secrets', 'nc-secret-mgr', 'Update', 'Security'] +keywords: ['NocoDB secrets', 'nc-secret-mgr', 'Update', 'Security'] --- ## Updating Secrets -To update a secret in NocoDB, you can use the `nc-secret-cli` package. Follow the steps below to update a secret: +To update a secret in NocoDB, you can use the `nc-secret-mgr` package. Follow the steps below to update a secret: ### Using the Command Line Interface (CLI) -1. Install the `nc-secret-cli` package if you haven't already. You can do this by running the following command in your terminal: +1. Install the `nc-secret-mgr` package if you haven't already. You can do this by running the following command in your terminal: ```bash - npm install -g nc-secret-cli + npm install -g nc-secret-mgr ``` 2. Once the package is installed, you can update a secret by running the following command: ```bash - NC_DB="pg://host:port?u=user&p=password&d=database" nc-secret-cli update --prev --new + NC_DB="pg://host:port?u=user&p=password&d=database" nc-secret-mgr update --prev --new ``` OR ```bash - NC_DB="pg://host:port?u=user&p=password&d=database" nc-secret-cli + NC_DB="pg://host:port?u=user&p=password&d=database" nc-secret-mgr ``` Replace `` with the name of the secret you used previously, and `` with the new value of the secret. @@ -35,9 +35,9 @@ To update a secret in NocoDB, you can use the `nc-secret-cli` package. Follow th ### Using Executables -Alternatively, you can use the `nc-secret-cli` executable to update secrets. +Alternatively, you can use the `nc-secret-mgr` executable to update secrets. -1. Download the `nc-secret-cli` executable from the [NocoDB website](https://github.com/nocodb/nc-secret-cli/releases/latest). +1. Download the `nc-secret-mgr` executable from the [NocoDB website](https://github.com/nocodb/nc-secret-mgr/releases/latest). 2. Run the executable using the following command: ```bash diff --git a/packages/nocodb/webpack.cli.config.js b/packages/nocodb/webpack.cli.config.js index 8561240ff3..704f57dffa 100644 --- a/packages/nocodb/webpack.cli.config.js +++ b/packages/nocodb/webpack.cli.config.js @@ -42,7 +42,7 @@ module.exports = { mode: 'production', output: { filename: 'cli.js', - path: path.resolve(__dirname, '..', 'nc-secret-cli', 'src/nocodb'), + path: path.resolve(__dirname, '..', 'nc-secret-mgr', 'src/nocodb'), library: 'libs', libraryTarget: 'umd', globalObject: "typeof self !== 'undefined' ? self : this", diff --git a/scripts/updateCliVersion.js b/scripts/updateCliVersion.js index c456504f14..a166617d34 100644 --- a/scripts/updateCliVersion.js +++ b/scripts/updateCliVersion.js @@ -1,7 +1,7 @@ const fs = require('fs') const path = require('path') -const packageJsonPath = path.join(__dirname, '..', 'packages', 'nc-secret-cli', 'package.json') +const packageJsonPath = path.join(__dirname, '..', 'packages', 'nc-secret-mgr', 'package.json') const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'))