Configuration
sley can be configured through multiple methods, with the following precedence order:
- Command-line flags (highest priority)
- Environment variables
.sley.yamlconfiguration file- Default values (lowest priority)
Quick Start
Most users don't need a configuration file to get started. sley works out-of-the-box with sensible defaults.
bash
# Initialize with defaults (creates .sley.yaml)
sley init --yes
# Or just start using sley - it auto-initializes
sley bump patch1
2
3
4
5
2
3
4
5
Auto-initialization
If the .version file does not exist when running the CLI:
- It tries to read the latest Git tag via
git describe --tags - If the tag is a valid semantic version, it is used
- Otherwise, the file is initialized to
0.1.0
This ensures your project always has a starting point.
To disable auto-initialization, use the --strict flag:
bash
sley bump patch --strict
# => Error: .version file not found1
2
2
Configuration Methods
| Method | Use Case | Documentation |
|---|---|---|
.sley.yaml | Project-level configuration, plugin settings, monorepo setup | Reference |
| Environment variables | CI/CD pipelines, session-level overrides | Reference |
| Command-line flags | One-off overrides, scripting | CLI Reference |
See Also
- .sley.yaml Reference - Complete configuration file reference
- Environment Variables - Available environment variables and CI detection
- CLI Reference - Command-line flags and options
- Plugin System - Plugin configuration and execution order
- Usage Guide - Initialize and configure your project
- Troubleshooting - Common configuration issues