Quickstart Guide
Welcome to the sintesi-monorepo-root CLI tool! This guide will help you get started quickly by demonstrating common usage patterns and basic commands.
Installation
To install the CLI tool, ensure you have Node.js and npm installed, then run:
npm install -g @sintesi/sintesiBasic Commands
1. Check Command
The check command is used to detect documentation drift and ensure your README is up to date with the codebase.
Usage
sintesi check --smart --verboseFlags
--smart: Enables smart drift detection.--verbose: Provides detailed output during execution.
Example
sintesi check --smartThis command will analyze your code changes and check for any discrepancies in the README.
2. Changeset Command
The changeset command analyzes symbol changes and generates a detailed changelog.
Usage
sintesi changeset --base main --forceFetchFlags
--base <branch>: Specifies the base branch to compare against (default ismain).--forceFetch: Forces fetching from the remote repository.
Example
sintesi changeset --base develop --forceFetchThis command will fetch changes from the develop branch and generate a changelog based on the differences.
3. Readme Command
The readme command generates a README.md file based on the project context.
Usage
sintesi readmeExample
sintesi readmeThis command will create or update the README.md file with relevant information from your project.
Advanced Usage
Smart Checks
The CLI tool integrates smart checks to skip generation when no relevant changes are detected. This is particularly useful for maintaining efficiency in larger projects.
Example
sintesi check --smartThis command will utilize the smart checking mechanism to determine if any updates are necessary.
Documentation Generation
The CLI can also generate project documentation intelligently based on the context of your code.
Example
sintesi documentation --outputDir docsThis command will generate documentation and place it in the specified output directory.
Conclusion
With these commands, you can effectively manage your project's documentation and changelogs using the sintesi-monorepo-root CLI tool. For more detailed information, refer to the full documentation.
Happy coding! 🚀