Feature request
Currently, sdk default <candidate> requires an explicit version argument:
This feature request adds the ability to call sdk default <candidate> without a version, which should automatically set the default to the latest LTS version of that candidate:
sdk default java
# Should set java to the latest LTS (e.g., 21 or 25)
Why this would be useful
- Convenience: Users don't need to look up the latest LTS version manually
- Consistency with bash SDK: Aligns with expected SDKMAN! behavior
- Workflow improvement: Simplifies automated setup scripts that want to default to LTS
Related
Discussion in #354 about sdk default, sdk use, and sdk current semantics clarified this gap.
sdk default <candidate> <version> — sets the global default to a specific version
sdk use <candidate> <version> — sets version for this shell session only
sdk current <candidate> — reports currently active version in this shell
This feature extends sdk default to infer the latest LTS when no version is provided.
Feature request
Currently,
sdk default <candidate>requires an explicit version argument:This feature request adds the ability to call
sdk default <candidate>without a version, which should automatically set the default to the latest LTS version of that candidate:sdk default java # Should set java to the latest LTS (e.g., 21 or 25)Why this would be useful
Related
Discussion in #354 about
sdk default,sdk use, andsdk currentsemantics clarified this gap.sdk default <candidate> <version>— sets the global default to a specific versionsdk use <candidate> <version>— sets version for this shell session onlysdk current <candidate>— reports currently active version in this shellThis feature extends
sdk defaultto infer the latest LTS when no version is provided.