Skip to content

v2.1.0: Zero-Config & Root Autodetection

Latest

Choose a tag to compare

@MichalRedm MichalRedm released this 04 May 08:07

🚀 Release v2.1.0: Zero-Config & Project Root Autodetection

This release significantly enhances the developer experience by introducing intelligent project discovery. You no longer need to pass the --src parameter when working within an Overleaf project!

🌟 New Features

🔍 Automatic Project Root Detection

The CLI now behaves more like Git. When you run a command:

  • It searches upwards from your current working directory for a .overleaf/ folder.
  • Once found, it automatically sets that directory as the project root.
  • All configuration, state tracking, and file discovery are resolved relative to this root.

🏠 Zero-Config Usage from Subdirectories

You can now run overleaf-cli push, watch, or compile from any folder inside your project. This is particularly useful for large LaTeX projects with nested section folders.

🔧 Improvements

  • Root-Aware Config Resolution: Implicitly finds .overleaf/config.json relative to the detected root.
  • Enhanced Internal Logic: Refactored resolveSrcPath to handle cases where the --src flag is omitted vs. explicitly set.

📚 Documentation

  • Updated the local and global agent skills to reflect the new zero-config capabilities.
  • Improved usage examples in the SKILL.md documentation.

Special thanks to the contributors for making Overleaf-CLI even more intuitive!