@openfactu/cli 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Angel Acedo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @openfactu/cli
2
2
 
3
- CLI oficial para instalar, gestionar y desplegar [OpenFactu](https://github.com/AngelAcedo12/OpenFactu) — ERP de facturacion open source.
3
+ CLI oficial para instalar, gestionar y desplegar [OpenFactu](https://github.com/OpenFactu/platform) — ERP de facturacion open source.
4
4
 
5
5
  ## Instalacion
6
6
 
@@ -104,7 +104,7 @@ openfactu migrate
104
104
 
105
105
  ## Links
106
106
 
107
- - [GitHub](https://github.com/AngelAcedo12/OpenFactu)
107
+ - [GitHub](https://github.com/OpenFactu/platform)
108
108
  - [Documentacion](https://openfactuerp.org)
109
109
  - [Marketplace](https://openfactuerp.org/marketplace/)
110
- - [Reportar problema](https://github.com/AngelAcedo12/OpenFactu/issues)
110
+ - [Reportar problema](https://github.com/OpenFactu/platform/issues)
@@ -82,6 +82,7 @@ function registerDeployCommand(program) {
82
82
  let host = 'localhost';
83
83
  let serverPort = '3000';
84
84
  let webPort = '8080';
85
+ let dbPort = '5432';
85
86
  let useSSL = false;
86
87
  if (mode === 'lan') {
87
88
  const ipChoices = localIPs.map((ip) => ({ name: ip, value: ip }));
@@ -128,7 +129,7 @@ function registerDeployCommand(program) {
128
129
  {
129
130
  type: 'confirm',
130
131
  name: 'ports',
131
- message: `¿Usar puertos por defecto? (web: 8080, api: 3000)`,
132
+ message: `¿Usar puertos por defecto? (web: 8080, api: 3000, db: 5432)`,
132
133
  default: true,
133
134
  },
134
135
  ]);
@@ -136,9 +137,11 @@ function registerDeployCommand(program) {
136
137
  const answers = await inquirer_1.default.prompt([
137
138
  { type: 'input', name: 'webPort', message: 'Puerto web:', default: '8080' },
138
139
  { type: 'input', name: 'serverPort', message: 'Puerto API:', default: '3000' },
140
+ { type: 'input', name: 'dbPort', message: 'Puerto BD (host):', default: '5432' },
139
141
  ]);
140
142
  webPort = answers.webPort;
141
143
  serverPort = answers.serverPort;
144
+ dbPort = answers.dbPort;
142
145
  }
143
146
  // Password de BD
144
147
  const { dbPassword } = await inquirer_1.default.prompt([
@@ -161,6 +164,7 @@ function registerDeployCommand(program) {
161
164
  logger_1.log.title(' Resumen de configuración');
162
165
  logger_1.log.info(`Web: ${chalk_1.default.cyan(webUrl)}`);
163
166
  logger_1.log.info(`API: ${chalk_1.default.cyan(apiUrl)}`);
167
+ logger_1.log.info(`BD Puerto: ${chalk_1.default.cyan(dbPort)} ${chalk_1.default.dim('(host)')}`);
164
168
  logger_1.log.info(`BD Password: ${chalk_1.default.dim(dbPassword === 'openfactu_pass' ? '(default)' : '****')}`);
165
169
  logger_1.log.info(`SSL: ${useSSL ? chalk_1.default.green('Si') : chalk_1.default.dim('No')}`);
166
170
  logger_1.log.blank();
@@ -176,7 +180,7 @@ function registerDeployCommand(program) {
176
180
  const env = readEnv(envPath);
177
181
  env.SERVER_PORT = serverPort;
178
182
  env.WEB_PORT = webPort;
179
- env.DB_PORT = env.DB_PORT || '5432';
183
+ env.DB_PORT = dbPort;
180
184
  env.POSTGRES_USER = env.POSTGRES_USER || 'openfactu';
181
185
  env.POSTGRES_PASSWORD = dbPassword;
182
186
  env.POSTGRES_DB = env.POSTGRES_DB || 'openfactudb';
@@ -13,9 +13,9 @@ const os_1 = __importDefault(require("os"));
13
13
  const fs_1 = __importDefault(require("fs"));
14
14
  const path_1 = __importDefault(require("path"));
15
15
  const logger_1 = require("../utils/logger");
16
- const REPO_URL = 'https://github.com/AngelAcedo12/OpenFactu.git';
17
- const GITHUB_OWNER = 'AngelAcedo12';
18
- const GITHUB_REPO = 'OpenFactu';
16
+ const REPO_URL = 'https://github.com/OpenFactu/platform.git';
17
+ const GITHUB_OWNER = 'OpenFactu';
18
+ const GITHUB_REPO = 'platform';
19
19
  function fetchJSON(url) {
20
20
  return new Promise((resolve, reject) => {
21
21
  https_1.default.get(url, { headers: { 'User-Agent': 'openfactu-cli' } }, (res) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfactu/cli",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "CLI para gestionar OpenFactu: migraciones, tenants, plugins y setup",
5
5
  "main": "./dist/src/index.js",
6
6
  "types": "./dist/src/index.d.ts",