- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
- 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
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