envware 1.1.9 → 1.2.1

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/README.md CHANGED
@@ -1,98 +1,75 @@
1
- <p align="center">
2
- <a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
3
- </p>
4
-
5
- [circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
6
- [circleci-url]: https://circleci.com/gh/nestjs/nest
7
-
8
- <p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
9
- <p align="center">
10
- <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
11
- <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
12
- <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
13
- <a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
14
- <a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
15
- <a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
16
- <a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
17
- <a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg" alt="Donate us"/></a>
18
- <a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
19
- <a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow" alt="Follow us on Twitter"></a>
20
- </p>
21
- <!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
22
- [![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->
23
-
24
- ## Description
25
-
26
- [Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
27
-
28
- ## Project setup
1
+ # .envware 🌸
29
2
 
30
- ```bash
31
- $ npm install
32
- ```
3
+ **Securely sync encrypted secrets across your devices and team.**
33
4
 
34
- ## Compile and run the project
5
+ Envware is a CLI tool designed to simplify environment variable management with a focus on security, privacy, and developer experience.
35
6
 
36
- ```bash
37
- # development
38
- $ npm run start
7
+ ## Why Envware?
39
8
 
40
- # watch mode
41
- $ npm run start:dev
9
+ Stop sharing `.env` files via Slack, DMs, or insecure notes. Envware ensures your secrets never touch the cloud in plain text.
42
10
 
43
- # production mode
44
- $ npm run start:prod
45
- ```
11
+ - **🔒 End-to-End Encryption (E2EE):** Secrets are encrypted locally on your machine using AES-256-GCM before being uploaded. We never see your data.
12
+ - **🔑 SSH Key Auth:** Authorization is tied to your existing SSH keys. No complex setup, just verify once.
13
+ - **📱 Multi-device Sync:** Seamlessly pull your project environments on any authorized machine (laptop, server, workstation).
14
+ - **👥 Collaboration:** Securely share project access with team members using invite codes.
15
+ - **📦 Backup & Restore:** Keep local encrypted backups of all your project configurations.
46
16
 
47
- ## Run tests
17
+ ## Quick Start
48
18
 
19
+ ### 1. Installation
20
+ No installation needed! Run directly with npx:
49
21
  ```bash
50
- # unit tests
51
- $ npm run test
52
-
53
- # e2e tests
54
- $ npm run test:e2e
55
-
56
- # test coverage
57
- $ npm run test:cov
22
+ npx envware login
58
23
  ```
59
24
 
60
- ## Deployment
61
-
62
- When you're ready to deploy your NestJS application to production, there are some key steps you can take to ensure it runs as efficiently as possible. Check out the [deployment documentation](https://docs.nestjs.com/deployment) for more information.
63
-
64
- If you are looking for a cloud-based platform to deploy your NestJS application, check out [Mau](https://mau.nestjs.com), our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps:
65
-
25
+ ### 2. Login or Signup
66
26
  ```bash
67
- $ npm install -g @nestjs/mau
68
- $ mau deploy
27
+ npx envware signup # If you don't have an account
28
+ npx envware login # If you already have one
69
29
  ```
70
30
 
71
- With Mau, you can deploy your application in just a few clicks, allowing you to focus on building features rather than managing infrastructure.
31
+ ### 3. Create or Select a Project
32
+ ```bash
33
+ npx envware project create my-awesome-api
34
+ # OR
35
+ npx envware project select
36
+ ```
72
37
 
73
- ## Resources
38
+ ### 4. Push and Pull Secrets
39
+ ```bash
40
+ # Upload your local .env (encrypted locally first!)
41
+ npx envware push
74
42
 
75
- Check out a few resources that may come in handy when working with NestJS:
43
+ # On another machine, download and decrypt
44
+ npx envware pull
45
+ ```
76
46
 
77
- - Visit the [NestJS Documentation](https://docs.nestjs.com) to learn more about the framework.
78
- - For questions and support, please visit our [Discord channel](https://discord.gg/G7Qnnhy).
79
- - To dive deeper and get more hands-on experience, check out our official video [courses](https://courses.nestjs.com/).
80
- - Deploy your application to AWS with the help of [NestJS Mau](https://mau.nestjs.com) in just a few clicks.
81
- - Visualize your application graph and interact with the NestJS application in real-time using [NestJS Devtools](https://devtools.nestjs.com).
82
- - Need help with your project (part-time to full-time)? Check out our official [enterprise support](https://enterprise.nestjs.com).
83
- - To stay in the loop and get updates, follow us on [X](https://x.com/nestframework) and [LinkedIn](https://linkedin.com/company/nestjs).
84
- - Looking for a job, or have a job to offer? Check out our official [Jobs board](https://jobs.nestjs.com).
47
+ ## Commands
85
48
 
86
- ## Support
49
+ - `signup`: Create a new envware account.
50
+ - `login`: Log in to your envware account.
51
+ - `project`: Manage your projects (create, list, select, remove).
52
+ - `push`: Upload local .env to a project (E2EE).
53
+ - `pull`: Download project .env (E2EE).
54
+ - `envs`: List all environments in the project (.env, .env.production, etc.).
55
+ - `secrets`: List all secret keys in an environment.
56
+ - `share`: Share project access with another user.
57
+ - `accept`: Accept a project invitation code.
58
+ - `backup`: Create an encrypted local JSON backup of all owned projects.
59
+ - `restore`: Restore secrets from a local backup file.
60
+ - `status`: Check your plan and usage.
61
+ - `upgrade`: Upgrade to Premium for higher limits.
87
62
 
88
- Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
63
+ ## Security
89
64
 
90
- ## Stay in touch
65
+ Envware uses a dual-key system:
66
+ 1. **User Key:** Derived from your SSH public key.
67
+ 2. **Project Key:** A unique key generated for each project, encrypted with your User Key.
91
68
 
92
- - Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
93
- - Website - [https://nestjs.com](https://nestjs.com/)
94
- - Twitter - [@nestframework](https://twitter.com/nestframework)
69
+ All encryption/decryption happens inside the CLI. The server only stores encrypted "blobs".
95
70
 
96
- ## License
71
+ ---
97
72
 
98
- Nest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE).
73
+ **Website:** [https://www.envware.dev](https://www.envware.dev)
74
+ **Documentation:** [https://www.envware.dev/docs](https://www.envware.dev/docs)
75
+ **Support:** Need help? Send us a message at [https://www.envware.dev#support](https://www.envware.dev#support) 🌸
@@ -20,6 +20,8 @@ const envs_command_1 = require("./commands/envs.command");
20
20
  const secrets_command_1 = require("./commands/secrets.command");
21
21
  const upgrade_command_1 = require("./commands/upgrade.command");
22
22
  const status_command_1 = require("./commands/status.command");
23
+ const backup_command_1 = require("./commands/backup.command");
24
+ const restore_command_1 = require("./commands/restore.command");
23
25
  const api_service_1 = require("./services/api.service");
24
26
  const config_service_1 = require("./services/config.service");
25
27
  const encryption_service_1 = require("./services/encryption.service");
@@ -41,6 +43,8 @@ exports.AppModule = AppModule = __decorate([
41
43
  secrets_command_1.SecretsCommand,
42
44
  upgrade_command_1.UpgradeCommand,
43
45
  status_command_1.StatusCommand,
46
+ backup_command_1.BackupCommand,
47
+ restore_command_1.RestoreCommand,
44
48
  api_service_1.ApiService,
45
49
  config_service_1.ConfigService,
46
50
  encryption_service_1.EncryptionService,
@@ -1 +1 @@
1
- {"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,8DAA0D;AAC1D,4DAAwD;AACxD,gEAA4D;AAC5D,0DAAsD;AACtD,0DAAsD;AACtD,4DAAwD;AACxD,8DAA0D;AAC1D,8DAA0D;AAC1D,0DAAsD;AACtD,gEAA4D;AAC5D,gEAA4D;AAC5D,8DAA0D;AAC1D,wDAAoD;AACpD,8DAA0D;AAC1D,sEAAkE;AAqB3D,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IAnBrB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE;YACT,8BAAa;YACb,4BAAY;YACZ,gCAAc;YACd,0BAAW;YACX,0BAAW;YACX,4BAAY;YACZ,8BAAa;YACb,8BAAa;YACb,0BAAW;YACX,gCAAc;YACd,gCAAc;YACd,8BAAa;YACb,wBAAU;YACV,8BAAa;YACb,sCAAiB;SAClB;KACF,CAAC;GACW,SAAS,CAAG"}
1
+ {"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,8DAA0D;AAC1D,4DAAwD;AACxD,gEAA4D;AAC5D,0DAAsD;AACtD,0DAAsD;AACtD,4DAAwD;AACxD,8DAA0D;AAC1D,8DAA0D;AAC1D,0DAAsD;AACtD,gEAA4D;AAC5D,gEAA4D;AAC5D,8DAA0D;AAC1D,8DAA0D;AAC1D,gEAA4D;AAC5D,wDAAoD;AACpD,8DAA0D;AAC1D,sEAAkE;AAuB3D,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,8BAAS;oBAAT,SAAS;IArBrB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE;YACT,8BAAa;YACb,4BAAY;YACZ,gCAAc;YACd,0BAAW;YACX,0BAAW;YACX,4BAAY;YACZ,8BAAa;YACb,8BAAa;YACb,0BAAW;YACX,gCAAc;YACd,gCAAc;YACd,8BAAa;YACb,8BAAa;YACb,gCAAc;YACd,wBAAU;YACV,8BAAa;YACb,sCAAiB;SAClB;KACF,CAAC;GACW,SAAS,CAAG"}
@@ -0,0 +1,9 @@
1
+ import { CommandRunner } from 'nest-commander';
2
+ import { ApiService } from '../services/api.service';
3
+ import { EncryptionService } from '../services/encryption.service';
4
+ export declare class BackupCommand extends CommandRunner {
5
+ private apiService;
6
+ private encryptionService;
7
+ constructor(apiService: ApiService, encryptionService: EncryptionService);
8
+ run(): Promise<void>;
9
+ }
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ var __metadata = (this && this.__metadata) || function (k, v) {
42
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
43
+ };
44
+ var __importDefault = (this && this.__importDefault) || function (mod) {
45
+ return (mod && mod.__esModule) ? mod : { "default": mod };
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.BackupCommand = void 0;
49
+ const nest_commander_1 = require("nest-commander");
50
+ const api_service_1 = require("../services/api.service");
51
+ const encryption_service_1 = require("../services/encryption.service");
52
+ const fs = __importStar(require("fs"));
53
+ const path = __importStar(require("path"));
54
+ const chalk_1 = __importDefault(require("chalk"));
55
+ let BackupCommand = class BackupCommand extends nest_commander_1.CommandRunner {
56
+ apiService;
57
+ encryptionService;
58
+ constructor(apiService, encryptionService) {
59
+ super();
60
+ this.apiService = apiService;
61
+ this.encryptionService = encryptionService;
62
+ }
63
+ async run() {
64
+ try {
65
+ console.log(chalk_1.default.blue('Starting full backup...'));
66
+ const { data: me } = await this.apiService.instance.get('/auth/me');
67
+ const { data: projects } = await this.apiService.instance.get('/projects');
68
+ const backupData = {};
69
+ const publicKey = this.encryptionService.getPublicKey();
70
+ const myProjects = projects.filter((p) => p.ownerId === me.id);
71
+ if (myProjects.length === 0) {
72
+ console.log(chalk_1.default.yellow('No owned projects found to backup.'));
73
+ return;
74
+ }
75
+ for (const project of myProjects) {
76
+ console.log(chalk_1.default.gray(`Backing up project: ${project.slug}...`));
77
+ backupData[project.slug] = {};
78
+ const { data: envs } = await this.apiService.instance.get('/envs', {
79
+ params: { projectId: project.id },
80
+ });
81
+ for (const env of envs) {
82
+ const { data } = await this.apiService.instance.get('/secrets', {
83
+ params: { projectId: project.id, environment: env, publicKey },
84
+ });
85
+ if (data.secrets && data.secrets.length > 0) {
86
+ backupData[project.slug][env] = data.secrets;
87
+ }
88
+ }
89
+ }
90
+ const backupPath = path.join(process.cwd(), 'envware.json');
91
+ fs.writeFileSync(backupPath, JSON.stringify(backupData, null, 2));
92
+ console.log(chalk_1.default.green(`\n✔ Backup completed successfully!`));
93
+ console.log(chalk_1.default.cyan(`File saved at: ${backupPath}`));
94
+ console.log(chalk_1.default.yellow('Note: Secrets remain encrypted with your project keys.'));
95
+ }
96
+ catch (error) {
97
+ const message = error.response?.data?.message || error.message;
98
+ console.log(chalk_1.default.red('\nBackup failed: ' + message));
99
+ }
100
+ }
101
+ };
102
+ exports.BackupCommand = BackupCommand;
103
+ exports.BackupCommand = BackupCommand = __decorate([
104
+ (0, nest_commander_1.Command)({ name: 'backup', description: 'Backup all project secrets to a local encrypted JSON file' }),
105
+ __metadata("design:paramtypes", [api_service_1.ApiService,
106
+ encryption_service_1.EncryptionService])
107
+ ], BackupCommand);
108
+ //# sourceMappingURL=backup.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"backup.command.js","sourceRoot":"","sources":["../../src/commands/backup.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAwD;AACxD,yDAAqD;AACrD,uEAAmE;AACnE,uCAAyB;AACzB,2CAA6B;AAC7B,kDAA0B;AAGnB,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,8BAAa;IAEpC;IACA;IAFV,YACU,UAAsB,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AmB,GAAG,OAAO,CAAC,CAAC,CAAC;QACxD,CAAC;IACH,CAAC;CACF,CAAA;AA3DY,sCAAa;wBAAb,aAAa;IADzB,IAAA,wBAAO,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,2DAA2D,EAAE,CAAC;qCAG9E,wBAAU;QACH,sCAAiB;GAHnC,aAAa,CA2DzB"}
@@ -0,0 +1,7 @@
1
+ import { CommandRunner } from 'nest-commander';
2
+ import { ApiService } from '../services/api.service';
3
+ export declare class RestoreCommand extends CommandRunner {
4
+ private apiService;
5
+ constructor(apiService: ApiService);
6
+ run(): Promise<void>;
7
+ }
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ var __metadata = (this && this.__metadata) || function (k, v) {
42
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
43
+ };
44
+ var __importDefault = (this && this.__importDefault) || function (mod) {
45
+ return (mod && mod.__esModule) ? mod : { "default": mod };
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.RestoreCommand = void 0;
49
+ const nest_commander_1 = require("nest-commander");
50
+ const api_service_1 = require("../services/api.service");
51
+ const chalk_1 = __importDefault(require("chalk"));
52
+ const fs = __importStar(require("fs"));
53
+ const path = __importStar(require("path"));
54
+ const inquirer_1 = __importDefault(require("inquirer"));
55
+ let RestoreCommand = class RestoreCommand extends nest_commander_1.CommandRunner {
56
+ apiService;
57
+ constructor(apiService) {
58
+ super();
59
+ this.apiService = apiService;
60
+ }
61
+ async run() {
62
+ const backupPath = path.join(process.cwd(), 'envware.json');
63
+ if (!fs.existsSync(backupPath)) {
64
+ console.log(chalk_1.default.red('Error: envware.json not found in the current directory.'));
65
+ return;
66
+ }
67
+ try {
68
+ const backupData = JSON.parse(fs.readFileSync(backupPath, 'utf8'));
69
+ const slugs = Object.keys(backupData);
70
+ if (slugs.length === 0) {
71
+ console.log(chalk_1.default.yellow('Backup file is empty.'));
72
+ return;
73
+ }
74
+ console.log(chalk_1.default.blue(`Found ${slugs.length} projects in backup.`));
75
+ const { confirm } = await inquirer_1.default.prompt([
76
+ {
77
+ type: 'confirm',
78
+ name: 'confirm',
79
+ message: chalk_1.default.yellow('This will overwrite secrets on the server with the backup data. Continue?'),
80
+ default: false,
81
+ },
82
+ ]);
83
+ if (!confirm) {
84
+ console.log(chalk_1.default.yellow('Restore cancelled.'));
85
+ return;
86
+ }
87
+ const { data: currentProjects } = await this.apiService.instance.get('/projects');
88
+ for (const slug of slugs) {
89
+ const project = currentProjects.find((p) => p.slug === slug);
90
+ if (!project) {
91
+ console.log(chalk_1.default.red(`Skipping project ${slug}: Not found on server. Please create it first.`));
92
+ continue;
93
+ }
94
+ console.log(chalk_1.default.gray(`Restoring project: ${slug}...`));
95
+ const environments = backupData[slug];
96
+ for (const env of Object.keys(environments)) {
97
+ const secrets = environments[env];
98
+ if (secrets && secrets.length > 0) {
99
+ await this.apiService.instance.post('/secrets/upsert-many', {
100
+ projectId: project.id,
101
+ environment: env,
102
+ secrets: secrets,
103
+ });
104
+ console.log(chalk_1.default.green(` ✔ Restored ${env}`));
105
+ }
106
+ }
107
+ }
108
+ console.log(chalk_1.default.green('\n✔ Restore completed successfully!'));
109
+ }
110
+ catch (error) {
111
+ const message = error.response?.data?.message || error.message;
112
+ console.log(chalk_1.default.red('\nRestore failed: ' + message));
113
+ }
114
+ }
115
+ };
116
+ exports.RestoreCommand = RestoreCommand;
117
+ exports.RestoreCommand = RestoreCommand = __decorate([
118
+ (0, nest_commander_1.Command)({ name: 'restore', description: 'Restore secrets from a local envware.json backup' }),
119
+ __metadata("design:paramtypes", [api_service_1.ApiService])
120
+ ], RestoreCommand);
121
+ //# sourceMappingURL=restore.command.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restore.command.js","sourceRoot":"","sources":["../../src/commands/restore.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAwD;AACxD,yDAAqD;AACrD,kDAA0B;AAC1B,uCAAyB;AACzB,2CAA6B;AAC7B,wDAAgC;AAGzB,IAA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AO,KAAU,EAAE,CAAC;YACpB,MAAM,OAAO,GAAG,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC;YAC/D,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,GAAG,CAAC,oBAAoB,GAAG,OAAO,CAAC,CAAC,CAAC;QACzD,CAAC;IACH,CAAC;CACF,CAAA;AAzEY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,wBAAO,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,kDAAkD,EAAE,CAAC;qCAE5D,wBAAU;GAD/B,cAAc,CAyE1B"}
@@ -24,10 +24,6 @@ let UpgradeCommand = class UpgradeCommand extends nest_commander_1.CommandRunner
24
24
  this.apiService = apiService;
25
25
  }
26
26
  async run() {
27
- console.log(chalk_1.default.yellow('\n🚧 Módulo de Pagamentos em Manutenção'));
28
- console.log(chalk_1.default.blue('Estamos finalizando a integração com o Stripe para garantir a segurança das suas transações.'));
29
- console.log(chalk_1.default.blue('O comando "upgrade" estará disponível novamente em breve! 🌸\n'));
30
- return;
31
27
  const { action } = await inquirer_1.default.prompt([
32
28
  {
33
29
  type: 'list',
@@ -1 +1 @@
1
- {"version":3,"file":"upgrade.command.js","sourceRoot":"","sources":["../../src/commands/upgrade.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAwD;AACxD,yDAAqD;AACrD,kDAA0B;AAC1B,wDAAgC;AAIzB,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,8BAAa;IAC3B;IAApB,YAAoB,UAAsB;QACxC,KAAK,EAAE,CAAC;QADU,eAAU,GAAV,UAAU,CAAY;IAE1C,CAAC;IAED,KAAK,CAAC,GAAG;QACP,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,yCAAyC,CAAC,CAAC,CAAC;QACrE,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,8FAA8F,CAAC,CAAC,CA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