Commit Graph

48 Commits

Author SHA1 Message Date
Mauricio Siu
0869e2d69a chore: update README and remove .mocharc.json
- Removed the .mocharc.json file as part of the project cleanup.
- Updated README to enhance clarity on usage, authentication options, and command examples.
- Added details on environment variable support and improved command structure for better user guidance.
2026-04-15 18:47:33 -06:00
Mauricio Siu
4d604a1a75 feat: add environment configuration support
- Introduced .env.example file to provide a template for environment variables.
- Updated .gitignore to exclude .env files from version control.
- Implemented loadEnvFile function in client.ts to load environment variables from a .env file into process.env, enhancing configuration management.
2026-04-15 18:42:13 -06:00
Mauricio Siu
70f542990d refactor: clean up imports and improve function formatting
- Reordered and grouped import statements for better readability in client.ts, index.ts, and auth.ts.
- Updated the readAuthConfig function to prioritize DOKPLOY_API_KEY over DOKPLOY_AUTH_TOKEN.
- Enhanced formatting of apiPost and apiGet functions for improved clarity and consistency.
2026-04-15 18:41:20 -06:00
Mauricio Siu
5b02a22e21 chore: update copyright year and ownership in LICENSE file
- Changed copyright from 2024 Mauricio Siu to 2026 Dokploy Technologies, Inc. in LICENSE.md.
2026-04-15 18:38:16 -06:00
Mauricio Siu
d51ea5b2f7 chore: remove Prettier configuration file
- Deleted .prettierrc.json as part of the migration to Biome for linting and formatting.
2026-04-15 18:37:50 -06:00
Mauricio Siu
ac02c614a6 refactor: migrate to biome and update CLI structure
- Removed ESLint configuration and ignore files in favor of Biome for linting.
- Introduced biome.json for configuration and updated package.json to reflect new dependencies.
- Added OpenAPI specification for Dokploy API and generated CLI commands from it.
- Refactored CLI entry point to use Commander instead of Oclif.
- Implemented new authentication command and removed deprecated commands.
- Updated TypeScript configuration and added build scripts for improved development workflow.
- Cleaned up unused files and commands to streamline the codebase.
2026-04-15 18:37:45 -06:00
Mauricio Siu
761f6e795f docs: update README to include environment management commands
- Added documentation for new commands related to environment management: `dokploy environment:create` and `dokploy environment:delete`.
- Enhanced clarity on usage instructions for managing environments within the project.
2025-10-05 02:07:59 -06:00
Mauricio Siu
1f1d6713aa Merge pull request #12 from Dokploy/fix/environments
Fix/environments
2025-10-05 02:05:23 -06:00
Mauricio Siu
2647a59bb6 chore: bump version to v0.2.8 2025-10-05 02:04:57 -06:00
Mauricio Siu
37f4b8b56e feat: enhance project info command with environment details
- Refactored ProjectInfo command to retrieve project information based on environments.
- Added detailed logging for applications, compose services, and databases categorized by environment.
- Implemented total counts for applications and databases across all environments.
- Improved error handling for cases with no environments found.
2025-10-05 02:04:34 -06:00
Mauricio Siu
f95d33cfbb feat: add environment creation and deletion commands
- Introduced EnvironmentCreate and EnvironmentDelete commands for managing environments within projects.
- Implemented interactive prompts for selecting projects and environments if flags are not provided.
- Added flags for projectId, environmentId, name, description, and skipConfirm to enhance command flexibility.
- Improved error handling for environment creation and deletion processes.
2025-10-05 02:02:12 -06:00
Mauricio Siu
a7a5e2e0a3 feat: add environment selection to database commands
- Introduced environmentId flag to all database commands (create, delete, deploy, stop) for specifying the environment.
- Implemented interactive prompts for selecting project and environment if flags are not provided.
- Enhanced error handling for cases with no available environments or database instances.
- Updated type definitions to include Database for better type safety.
2025-10-05 01:59:37 -06:00
Mauricio Siu
68786fb7f1 feat: add environment selection to app management commands
- Introduced environmentId flag to AppCreate, AppDelete, and AppStop commands for specifying the environment.
- Implemented interactive prompts for selecting project and environment if flags are not provided.
- Enhanced error handling for cases with no available environments or applications.
- Updated type definitions to include Application for better type safety.
2025-10-05 01:36:52 -06:00
Mauricio Siu
d32c3b2be2 feat: enhance app deployment command with environment selection
- Added environmentId flag to the AppDeploy command for specifying the environment.
- Implemented interactive prompts for selecting project, environment, and application if flags are not provided.
- Updated type definitions to include Application and Environment types for better type safety.
- Improved error handling for cases with no available environments or applications.
2025-10-05 01:33:03 -06:00
Mauricio Siu
1a01289349 Merge pull request #10 from Sebbev/fix/pull-and-push-command
Add environment selection for env pull and push commands
2025-10-05 01:26:31 -06:00
Sebastian Vallin
dcfb478035 fix(env): Correct prompt message in env push command 2025-09-17 16:26:10 +02:00
Sebastian Vallin
d7ef05239f feat: Add environment selection for env pull and push commands 2025-09-17 16:26:10 +02:00
Mauricio Siu
82aed684b9 feat: update authentication method to use x-api-key header
- Replace Bearer token authentication with x-api-key header across all commands
- Update token verification endpoints from auth.verifyToken to user.get
- Remove unnecessary console.log debug statements
- Bump version to v0.2.7
2025-03-04 00:13:51 -06:00
Mauricio Siu
21dd3f0b53 Merge pull request #6 from Dokploy/2-make-the-cli-work-on-ci 2025-02-23 22:14:03 -06:00
Mauricio Siu
6d186d550e feat: improve token verification with environment variable support
- Add support for DOKPLOY_AUTH_TOKEN and DOKPLOY_URL environment variables
- Enhance error messaging for authentication configuration
- Improve token validation process with more robust error handling
- Update version to v0.2.6
2025-02-23 21:44:04 -06:00
Mauricio Siu
10cfe23763 feat: enhance CLI commands with improved flags and error handling
This commit introduces several improvements across multiple CLI commands:
- Added new flags for more flexible command usage
- Implemented interactive mode for commands when flags are not provided
- Improved error handling and messaging
- Added support for environment variable authentication
- Standardized confirmation prompts and error messages
- Enhanced type safety with TypeScript improvements
2025-02-23 21:29:45 -06:00
Mauricio Siu
7cb5369f15 chore: bump version 2024-12-21 02:15:45 -06:00
Mauricio Siu
4b97ddcfd3 feat: add enviroment management 2024-12-21 02:11:19 -06:00
Mauricio Siu
0bdec259f4 refactor: add documentation 2024-12-21 02:04:52 -06:00
Mauricio Siu
f64bbc3348 Merge pull request #3 from kidylee/main
feat: add env pull/push commands
2024-12-21 02:04:30 -06:00
Mauricio Siu
05fadbe800 Update src/commands/env/pull.ts 2024-12-21 02:03:18 -06:00
An Li
32f630a381 feat: add env pull/push commands 2024-11-20 11:09:33 +08:00
Mauricio Siu
32c57c8155 Update readme.md 2024-07-07 14:49:58 -06:00
Mauricio Siu
a4f042c9df chore: add LICENSE and contributing MD 2024-06-23 00:00:41 -06:00
Mauricio Siu
7a69bef823 refactor: update version 2024-06-22 23:50:03 -06:00
Mauricio Siu
338b3c89f2 chore: update readme 2024-06-22 23:36:29 -06:00
Mauricio Siu
38844673cd remove 2024-06-22 23:23:26 -06:00
Mauricio Siu
9b0c737ae7 refactor: update CLI 2024-06-22 23:22:52 -06:00
Mauricio Siu
8f947a3433 Merge pull request #1 from Dokploy/feat/cli-oclf
Feat/cli oclf
2024-06-22 23:01:07 -06:00
Mauricio Siu
791f8c96c3 remove 2024-06-22 17:01:47 -06:00
Mauricio Siu
3b12f55ae4 feat: add stop command 2024-06-22 16:46:05 -06:00
Mauricio Siu
e48c58c883 feat: add deploy command 2024-06-22 16:22:30 -06:00
Mauricio Siu
209eadce99 clean files 2024-06-22 15:53:49 -06:00
Mauricio Siu
d610c967d9 refactor: add commands 2024-06-22 00:52:17 -06:00
Mauricio Siu
fbf6b7f5cc feat: add delete 2024-06-12 23:15:00 -06:00
Mauricio Siu
99451d416c feat: add database create 2024-06-12 23:01:46 -06:00
Mauricio Siu
1b97e2c6f5 feat: add delete app 2024-06-05 02:33:09 -06:00
Mauricio Siu
f1616b3909 feat: add info list project 2024-06-05 02:15:24 -06:00
Mauricio Siu
bec0dfa57f feat: add list and create project 2024-06-05 01:43:19 -06:00
Mauricio Siu
9f033de1b2 feat: add verify and authenticate command 2024-06-04 21:47:36 -06:00
Mauricio Siu
6dae0587d8 feat: add 2024-06-04 01:10:32 -06:00
Mauricio Siu
de871490d7 feat: add check server command 2024-06-03 21:55:29 -06:00
Mauricio Siu
85fd1f2c3e init project 2024-06-03 17:09:37 -06:00