Scala CLI

scala-cli@virtuslab.com · VirtusLab.ScalaCLI

Scala CLI is a command-line tool to interact with the Scala language.

winget install --id VirtusLab.ScalaCLI --exact --source winget

Latest 1.12.5

Release Notes

--cross support for run, package and doc sub-commands (experimental ⚡️) It is now possible to cross-run, cross-package and cross-generate docs (doc) with the --cross command line option.

  • run runs each configured combination of Scala version and platform (e.g. JVM, Native, JS) in sequence;
  • package produces one artifact per cross build, with the Scala version and platform in the artifact name;
  • doc generates Scaladoc for each cross target into separate output directories. //> using scala 3.3 3.8 @main def main() = println("Hello") scala-cli run cross.scala --cross --power scala-cli package cross.scala --cross --power scala-cli doc cross.scala --cross -o doc-out --power Added by @Gedochao in #3808, #4171 & #4183 Global --offline config key You can set offline mode globally with the config sub-command, so Scala CLI uses the cache and skips network access without passing --offline every time. scala-cli config offline true Added by @Gedochao in #3216 Watch extra paths with --watching (experimental ⚡️) Use the --watching option or //> using watching to have --watch re-run when files or directories outside your sources change (e.g. config or assets). scala-cli run . --watch --power --watching ./config --watching ./assets Or in source: //> using watching ./config ./assets Added by @Gedochao in #4174 Local .m2 in publish local (experimental ⚡️) publish local now publishes to your local Maven repository (~/.m2), so other local projects can depend on the published artifacts via Maven coordinates. scala-cli publish local . --m2 --power Added by @Gedochao in #4179 Features
  • Run all cross builds when --cross is passed by @Gedochao in #3808
  • Add a global --offline config key by @Gedochao in #3216
  • Support --cross with the package sub-command by @Gedochao in #4171
  • Allow to --watch extra paths with --watching by @Gedochao in #4174
  • Add support for --cross in the doc sub-command by @Gedochao in #4183
  • Add support for local .m2 in publish local by @Gedochao in #4179 Fixes
  • Use Java 17 mapping when generating docs with Scala 3.8+ with doc by @Gedochao in #4180
  • Make test framework discovery on Native more resilient & with better errors by @Gedochao in #4185
  • Warn when .java & .scala sources are used in a mixed compilation with --server=false by @Gedochao in #4181 Build and internal changes
  • Add LLM policy & a PR template by @Gedochao in #4177
  • Add AGENTS.md by @Gedochao in #4178 Updates
  • Bump the npm-dependencies group in /website with 3 updates by @dependabot[bot] in #4165
  • Bump the github-actions group with 3 updates by @dependabot[bot] in #4164
  • Update scala-cli.sh launcher for 1.12.4 by @github-actions[bot] in #4166
  • Bump svgo from 3.3.2 to 3.3.3 in /website by @dependabot[bot] in #4168
  • Bump immutable from 5.1.4 to 5.1.5 in /website by @dependabot[bot] in #4167
  • Bump Mill to 1.1.3 (was 1.1.2) by @Gedochao in #4169
  • Bump @algolia/client-search from 5.49.1 to 5.49.2 in /website in the npm-dependencies group by @dependabot[bot] in #4173
  • Bump the github-actions group with 4 updates by @dependabot[bot] in #4172
  • Update Scala 3 Next RC to 3.8.3-RC2 by @Gedochao in #4175
  • Bump undici from 7.18.2 to 7.24.1 in /website by @dependabot[bot] in #4182
  • Bump webfactory/ssh-agent from 0.9.1 to 0.10.0 in the github-actions group by @dependabot[bot] in #4187
  • Bump coursier to 2.1.25-M24 by @Gedochao in #4184
  • Bump sass from 1.97.3 to 1.98.0 in /website in the npm-dependencies group by @dependabot[bot] in #4188 Full Changelog: v1.12.4...v1.12.5

Installer type: wix

Architecture Scope Download SHA256
x86 Download BD0CEDAED4D891BC3D78F7EE4C9FCC330E0D5A952A8D7909FA1990E2DBE38F39

Details

Homepage
https://github.com/VirtusLab/scala-cli
License
Apache-2.0
Publisher
scala-cli@virtuslab.com
Support
https://github.com/VirtusLab/scala-cli/issues

Tags

functionaljavalanguageprogrammingscala

Older versions (43)

1.12.4
Architecture Scope Download SHA256
x86 Download 1D8BF7552D27E7E6C2BF7CFF2C6AF642BFA2D2E7F3227471948B49301AF06BAB
1.12.3
Architecture Scope Download SHA256
x86 Download 491932C0E3D4F5EB84E9172541FDC6485962E36786B4E7A73684E6D4A84D55D4
1.12.2
Architecture Scope Download SHA256
x86 Download A0F5396CF3BA3F4DC8A854E19CD4E55E92DC0D9F229A1DD70A1AFB83D5BD2847
1.12.1
Architecture Scope Download SHA256
x86 Download 61C867D10987A22D62A8478983F82FD1045F6BFE2838BB30ECAD0940325353E2
1.12.0
Architecture Scope Download SHA256
x86 Download C3863D083E1A1D07469F08DBB938D6E21A633D2F60EB0462F7881F587AA9C5D2
1.11.0
Architecture Scope Download SHA256
x64 Download E4DFB66FE58872D0DDE437A5C3827DA9640BC2ED386923043CE53A067DE4C16B
1.10.1
Architecture Scope Download SHA256
x86 Download 49D10F4858BA3961A424D364C103C0B5AECDBA74817B74BB48FE1598EB345EBE
1.9.1
Architecture Scope Download SHA256
x86 Download D23C0686637D5AB032CBCDB566917D6D3434E5040816CC603591C5DF61330D21
1.9.0
Architecture Scope Download SHA256
x86 Download 4CCA75C943C90846A7030D7491B61930E4C39BF61098BF5DA80CDDE63CEBA84A
1.8.5
Architecture Scope Download SHA256
x86 Download 2A5D84EA7F446F504B626C32E0630B9C45E46638D1B0B8E3830C04A0305E5BC6
1.8.4
Architecture Scope Download SHA256
x86 Download E1734F7A88F7CC2D771D52B445F75BF1E56B8732FF829318E5A859BE28C2E1A3
1.8.3
Architecture Scope Download SHA256
x86 Download F2FA21E68FC80E194A2464D959A6CE1A48C31001ACAE2C338F681C18F5B869F0
1.8.2
Architecture Scope Download SHA256
x64 Download 2D7B3F8A1F838AAF93EDF75C7A235741DBBA24832B942D8B403ADD5374EB6824
1.8.1
Architecture Scope Download SHA256
x64 Download 0E2C69A420405EF8A9B907E95C98994C9D0CEB0852BF7FE18194B593BC81166F
1.8.0
Architecture Scope Download SHA256
x64 Download B8505A2B1F751E6826A4B10356AB3817E070D52C01D6D3249CC2A1719DBBAAF4
1.7.1
Architecture Scope Download SHA256
x64 Download A9A08F54726F9A6A3C4C500C8AB55B31015FCDE93F79107FF3F686B26BBB4EB1
1.7.0
Architecture Scope Download SHA256
x64 Download 0BC95DBCFF789786CD5C05EF4DDC672E9ABA8BBE7D15D54DE62DE84DB5694D57
1.6.2
Architecture Scope Download SHA256
x64 Download 57B23582C0EBEB85C619BFBD47A2AD15CBC41BAD4A000C20D44F75F1C918C68F
1.6.1
Architecture Scope Download SHA256
x64 Download B1954B8D09ACF3074482CC534C24963C407AEEE08D6DD399A0B9398B548B568E
1.6.0
Architecture Scope Download SHA256
x64 Download 329D6D2A8EC12F4FF3329B10BF466ED604531EF958BBC5F507A5CF673D0ACBCA
1.5.4
Architecture Scope Download SHA256
x64 Download 0881CDFB39F06341D4D6519D10072CFDC5E39B01BD91B2A23CE8D8281D3FB4D1
1.5.3
Architecture Scope Download SHA256
x64 Download B570E0B2E7B089BDA419C1D9D00B2604D8C9569B97ABDEE7F2B354DB6A6ACA02
1.5.1
Architecture Scope Download SHA256
x64 Download FD0B0BC3A1FA14922FE54C1BE5CD93BF88D0D657A7454F6E58D56CA581BD66B2
1.5.0
Architecture Scope Download SHA256
x64 Download 7C7511F91207A532F77633FF62BAD101BE2F215CDCFFBE3FB05612F196334E00
1.4.2
Architecture Scope Download SHA256
x64 Download 0B1D4044804AE4B9E767E9869EC735F891E0F3E772B500FB0A8D356DAA7F09B4
1.4.1
Architecture Scope Download SHA256
x64 Download BFF20328B7F0CFCBFFD3F6ADCA14285CA52F4F5BE0D516C17BB51D2791F647FD
1.4.0
Architecture Scope Download SHA256
x64 Download 6E344B743EB4BFAD1A245800E59C06108DF8EAC46C6958607C42B8B40406D326
1.3.2
Architecture Scope Download SHA256
x64 Download 2E7A0CF15F1E3897FE10AB132450C99BD6622E885466F04C3215C0F9AD028955
1.3.1
Architecture Scope Download SHA256
x64 Download A9090910C32B944B6D360B28D405B77E4C7F75CA6A84BC19835BA28358842ABC
1.3.0
Architecture Scope Download SHA256
x64 Download 211A5099F43B28B10D14A6C8C5747437D9ED3C894ED28521EEC7865C8EF74B9A
1.2.2
Architecture Scope Download SHA256
x64 Download 3263E96FDCF1E855A38BAB8EB5680287DEDB7ACA4674C17A063DC38A269FFFB7
1.2.1
Architecture Scope Download SHA256
x64 Download F6601DF2E5CE9AD82989D0432171951181508CEE35F498C4263073BB53D36E34
1.2.0
Architecture Scope Download SHA256
x64 Download 1BF94318E9CEE1E0B5E4A8EDCFFBC0FDE20A724F79C1B76496C25B8C1C2241F2
1.1.3
Architecture Scope Download SHA256
x64 Download 70FEE9E53319C99C276360862A9EEFC7D43463B32100DF6BFCFA1DCAC3A4ED9F
1.1.2
Architecture Scope Download SHA256
x64 Download 36742FB0CB42038A15C369655129F6A68C92F013435623250B340C69E835F3BE
1.1.1
Architecture Scope Download SHA256
x64 Download FC4AE2B0BE914DDEF7F11033AE20701D0369F3457A0A6AA23D22E7C0EE665ACE
1.1.0
Architecture Scope Download SHA256
x64 Download F72AB8D92150C522D1A01C239485E56CB4A275B1C4E5584E9CB40EEB253F98A9
1.0.6
Architecture Scope Download SHA256
x64 Download 901E2AF7CC362793545CE4149C9169CE486CE2BAA533BE5260DE996CAC0E38C5
1.0.5
Architecture Scope Download SHA256
x64 Download 082C7BA085F76ADD972988E25008DB831C8DA841AD8F689F81BF4F928C19BCA7
1.0.4
Architecture Scope Download SHA256
x64 Download 094F74A41A5B9A7F754AAA22A4EFDD4C8755B23C2C8633BAF5E36952369A7A93
1.0.3
Architecture Scope Download SHA256
x64 Download 30E4025BD03806C7A8EB5FECD8929431A85593AD6BAB36074D434E0D6DCCBEC3
1.0.2
Architecture Scope Download SHA256
x64 Download D5C0CAD2B2CF9490CC3A95C5330DAC64C9A6D914D58AE6147498DF7D641DE1AF
1.0.1
Architecture Scope Download SHA256
x64 Download 5B9B61D96A893C2BC37C9171C22C5C17E91A1C0B71DF40DA38D817F8E138D210