One thing that is always top of mind for the dotCMS product team is, how we can improve the developer experience. We spend a lot of time on UI and editing experiences, but for engineers and DevOps teams focused on streamlining development and infrastructure, we always look for ways to make their day-to-day lives easier.
One major way we are doing this is with the launch of dotCLI! 🥳 dotCLI is a CLI tool that provides devs with a command-based interface for automating tasks and managing software deployment processes.
dotCLI replaces uploading and editing via WebDAV and the legacy Bash CLI, offering more features and functionality.
So what exactly can you do with dotCLI?
dotCLI will automate several tasks related to content management and deployment. Some specific examples include:
Synchronizing Entities: dotCMS can push and pull file assets, content types, languages, and sites (including site variables) between a local workspace and a dotCMS environment. This automation simplifies content updates and deployments.
CI/CD Integration: dotCLI integrates with Continuous Integration/Continuous Delivery (CI/CD) pipelines. This allows you to automate pushing and pulling files from a GitHub repository to a target dotCMS environment, streamlining the deployment process further.
Version Control Integration: dotCLI works seamlessly with version control systems like Git, enabling developers to manage changes in content types, assets, and configurations. By syncing these changes across environments, dotCLI ensures that version history is tracked and easily managed.
Creating Scripts for Repetitive Tasks: The command line interface provided by dotCLI allows developers to write scripts that automate repetitive tasks. This can enhance productivity and maintain consistency in deployment processes.
What’s Next & Getting Started
While we will continue to work on dotCLI improvements, it’s available now for devs to get started. Installing dotCLI is straightforward using npm:
[npm install -g @dotcms/dotcli]
Check out our documentation for more details.