Rive CLI 1.5.1
This release lets you publish libraries from the CLI. rive library publish turns your project's Rive file into a library, or publishes its next version. Before, you had to open the file in the editor to publish it. On Windows, rive . --android now previews on Android devices and rive login works on Windows 10. rive push now asks before it overwrites a linked file, so CI and scripts need --yes. Update with rive update (curl install) or brew upgrade --cask rive-cli.
Libraries
📦 Publish a library: rive library publish publishes the project's Rive file as a library, so other files can import its artboards, view models, enums, scripts and shaders. The first run creates the library and every later run publishes a new version. Artboards with isComponent="true" publish, and view models, enums, scripts and shaders always do. Before it publishes, it lists what the new version adds and what it removes, then asks. --description=<text> adds a note to the version and --yes skips the question. A version is made from the file's content, so the command pushes the project first: pull before publishing if someone else works in the file. The project must be linked to a file, so run rive push once before your first publish. Publishing libraries needs a Voyager plan or higher.
🧩 Library scripts know their library's types: a library's scripts now type check against the view models and enums the library declares. Before, a script that used Data.<Name> for one of them failed with an unknown type error. When your file and a library use the same name, your file's wins. rive pull refreshes these types when a library changes.
🏠 Projects open on the main artboard: a project that imports a library with an unnamed artboard now opens on its own main artboard, on first launch and in every --screenshot. Before, it opened the library's unnamed artboard.
🆔 Scripts keep their id across builds: a script kept in its own file (written <ScriptAsset file="..."> in markup) now keeps the same id from build to build, written back into the markup as codeFileId. Before, each build gave it a new id, so publishing the file as a library replaced the script with a new one, and files that imported it lost it when they updated.
🧱 Libraries written as fragments: in a library whose markup has no <Rive> root, an import placed anywhere at the top level now works. Before, the import made it into the .riv, but its view models were left undeclared and its scripts were left out.
Windows
📱 Preview on Android from Windows: rive . --android now works on Windows. It finds adb, starts emulators, and offers to download Google's platform tools when adb is missing, and rive doctor reports the Android setup. Before, it was only available on macOS and Linux.
🔐 Sign in on Windows 10: rive login now works on Windows 10. Before, it failed with an SSL connect error right after "Waiting for authentication…", so no command that needs a session worked. RIVE_NET_EXTRA_CA and CURL_CA_BUNDLE now work on Windows too, as on macOS and Linux, and certificates your company installs in Windows are still trusted. As reported here.
⬆️ Pickers in Windows consoles: the arrow-key pickers, like the project picker on a first rive push, and the rive ls browser now work in Windows consoles. Before, Windows fell back to a numbered list.
💾 Save dialog for .rev export: exporting a .rev from the viewer's menu now opens a Save dialog on Windows, as on macOS.
🔌 One --serve per port: a second rive --serve on Windows now fails to start when the port is taken. Before, it shared the port with the first one.
Push
⚠️ rive push asks before overwriting: a push to a file the project is already linked to now asks first:
Pushing rive-cli project "palette" will overwrite remote file 37611.
Proceed? [y/N]--yes skips the question. Where nothing can answer (CI, a script, an agent's shell), a push without --yes now stops with Rerun with --yes to confirm. instead of pushing, so add --yes to any pipeline that pushes a linked project. The first push, which creates the file, doesn't ask.
Publishing to the web
🎛️ Choose how the control bar starts: --drawer=<mode> sets how a page published with --publish=web starts its control bar (fit, full screen and copy link). docked keeps the bar out, hidden starts with only a small tab at the bottom of the page, and none leaves the page without a bar. Pass it on every publish, the same way as --no-wait: a publish without it goes back to the default. Visitors can still dock, hide or remove the bar.
RML (the markup the CLI compiles)
🎢 Scroll physics survive the editor: a scroll view's physics, with its name and settings like friction and speed, now stays when the pushed file is opened in the editor. Before, the editor swapped it for default physics, and a later rive pull brought the defaults back into your markup.
🔍 Two new rive inspect checks: gradient-too-few-stops (error) flags a linear or radial gradient with fewer than two stops, which the editor deletes, leaving its fill or stroke with no color. shared-scroll-physics (warning) flags a scroll view that shares its physics with another, which the editor can reset to defaults. Neither fails a build.
🔢 Built-in enums build: markup that uses one of the editor's built-in enums, like Layout Display, now builds. Before, markup pulled from such a file failed with enumId="48:0" matches no id in this file. A view model property that uses one of these enums also ships its values in the .riv now. Before, it shipped with no values.
Scripting
🎨 Shader uniforms on WebGL: a shader whose uniform struct isn't a multiple of 16 bytes now draws on WebGL. Before, WebGL refused to draw it, and on Windows the player read past the end of its data.
⏳ Async work after an animation ends: a script's async work now finishes after its animation has ended. Before, a runtime that stopped updating the finished animation never delivered the result, so an await stalled.
Viewer
🔄 Rotation constraint limits across 180°: a Min of -180° now holds, ranges that cross 180°, like 150° to 210°, work, and an angle outside the range snaps to the nearer limit.
✏️ Text inputs take a press anywhere in the field: a text input inside a scroll now places the caret on a press anywhere in its field, including above or below the text in a multiline field. Before, only a press over the text itself reached it.