Rive CLI 1.8.0
This release brings library updates to the CLI. rive library update moves a project to the newest version of each library it imports and leaves the change as a markup diff to review, where before you had to update the file in the Rive Editor. Scripts written in AnimaScript can now run work on other threads and generate audio, and the AnimaScript docs are public. Markup that runtimes refuse to load, like a <Fill> with two <SolidColor> children, now fails the build instead of producing a broken .riv. Update with rive update (curl install) or brew upgrade --cask rive-cli.
Libraries
๐ Update libraries from the CLI: rive library update moves each imported library to its newest version, the same way the editor's library update does, downloads what it needs and rewrites the markup. Nothing is pushed, so you review the diff and run rive push when ready. --library=<id> updates one library and --yes skips the confirmation in CI. When a new version no longer publishes something your project uses, the run names it with its file and line and leaves an empty reference, 0:0, for you to point elsewhere. As requested here.
๐ See what a project imports: rive library list lists every library the project imports, with its version and how many components each import carries. It reads only the project's files, so it works offline. When rive.yaml has fallen behind the markup, a note says which command fixes it. --json prints one object per import.
๐ See what a library publishes: rive library info --library=<id> lists a library's versions and the components each one publishes. rive library list and rive library search both print the id. --version=<N> shows a single version and --json prints the library as one object.
๐ค Teammates can open files that use libraries: rive push now tells Rive which library versions the file uses, so someone who can open the file can also see the library content in it without access to the library itself.
Previews and captures
๐ Status bar in the preview window: a strip along the bottom shows frames per second, frame time, script memory, the process's memory and build progress, and who is signed in. The window grows to fit it, so the artboard keeps its size. On a paid plan, hide it by typing b in the terminal, with --no-status-bar, or with window.statusBar: false in rive.yaml. Screenshots and other headless runs never draw it.
๐งช Change data in the middle of a run: a --data placed after a --pointer, --touch, --key, --gamepad, --semantic-action or --advance now applies at that point, then runs one frame. Before, every --data set a starting value. A step that fails prints --data <path>, mid-run: <reason> and exits with an error.
๐ No more rebuild loop: when rive.yaml writes logs outside the build/ folder, the watcher no longer rebuilds on its own log. Before, each build's log triggered the next build, about 6 times a second while idle. The watcher also ignores the backup files some text editors save with a ~ at the end of the name.
โจ๏ธ Punctuation shortcuts on macOS: in the preview window, punctuation keys like period, equals and the brackets now reach the scene, so a shortcut like Cmd+. or Cmd+= works. Before, they arrived as unknown keys, and Cmd+. only made the system beep.
๐ Sound on devices: rive . --android and rive . --ios now play the scene's sounds, and keep them when the app goes to the background. Before, the device player was built without audio.
Push, pull and inspect
๐ rive push --new-file makes a new file: it now creates a new file, in --project and --folder when given, and links the project to it. Before, once rive.yaml linked a file, both flags were ignored and the push overwrote the linked file. A --project that names another project is now refused.
๐ฏ Find what fires an event: rive inspect lists what fires each event under firedBy: state and transition actions, listener actions and timeline keys. It warns about an event nothing fires, rive inspect . --summary adds an events list, and the previewer prints each event as it fires.
๐งน Leftover data in editor files: rive pull and rive create --from-rev now report data the editor left behind, like references to deleted objects and unused interpolators. Nothing is removed.
๐ rive pull writes to scene.rml: when a project has a scene.rml, rive pull writes the scene there. Before, it used the first .rml file by path. The note about a PNG or WebP image whose format doesn't match now gives the value to set.
RML (the markup the CLI compiles)
โ ๏ธ Markup runtimes can't load fails the build: the build now stops, and writes nothing, when the structure is one runtimes refuse or crash on. Markup that built before can now fail:
a <Fill> or <Stroke> needs exactly one <SolidColor> or gradient. With two, every runtime refused the file. With none, the editor deleted the paint and runtimes could crash.
a <SolidColor> or gradient must sit under a <Fill> or <Stroke> element. A gradient placed directly in a <Shape> built a .riv that crashed runtimes.
the same applies to other elements that only work under one parent, like <TextValueRun> under a <Text> element, <PathVertex> under a path and <Dash> under a <DashPath> element.
๐๏ธ Easing survives rive pull: when several keyframes share one easing curve in an editor file, each keeps it in markup. Before, only the first kept the curve and the rest played as linear.
๐ชช Clearer duplicate id errors: the error now names the first use of the id, with its file and line, and explains how to fix a duplicate across two files. An id inside a library is no longer blamed for a duplicate in your project.
Scripting
๐ฅ๏ธ GPU scripts on more machines: scripts that draw with the GPU now read the right buffers and textures on Direct3D 11, Direct3D 12 and Vulkan, run shaders that use instance_index on Metal, upload textures on Intel Macs, and no longer leak textures on OpenGL.
โ Subtraction in shaders: the shader checker now reads x-16.0 and arr[i-1] as subtraction. Before, it reported a false error and the formatter rewrote them as negative numbers.
AnimaScript
๐ AnimaScript docs are public: read them at rive-app.github.io/rasc, with new pages on threads, workers, shared memory, jobs, SIMD and audio, and a comparison with Luau. Luau scripts keep running on every Rive runtime, but new scripting features now land in AnimaScript only.
๐งต Threads: a @job function computes a result off the frame, and a @worker async function keeps its state across frames. Each thread has its own memory and passes values through rive/ports or reads and writes shared memory through rive/shared. Barrier lets workers split one computation and combine the results with sum, min or max.
๐ต Audio processors: a script class can generate audio, block by block, on its own thread. audioBuffer in rive.yaml or --audio-buffer=<frames> sets the preview window's audio buffer: a bigger buffer keeps heavy audio from crackling, at the cost of latency.
๐งพ Read JSON: rive/json turns JSON text into values. parseJson returns the value or the line and column where the text stops being JSON, and JsonStream reads a large response a piece at a time.
๐ฒ Compile scripts for your own app: a new command compiles the scripts in published .riv files ahead of time, for an app that bundles its own copies:
rive aot <file.riv>... --android|--ios --out=<dir>Built-in CLI docs (run rive docs to read them)
The docs that ship with the CLI, and what agents read to author scenes.
๐ซ Triggers: the docs now say a listener fires a trigger whatever value it writes. propertyValue="1" is only needed for older runtimes.
Runtime
๐ฐ๐ท Korean wraps at spaces again: Korean text wraps between words. Since the September update to line breaking, it could wrap in the middle of a word.
๐ No blank frame when fading Components: a parent's opacity change now reaches a Component in the same frame. Before, it arrived a frame late, so a script switching between two Components on an artboard with no state machine drew one blank frame.
๐ Gradient animations play in Components: animating a gradient's transformX, transformY, transformRotation, transformScaleX or transformScaleY now plays inside a Component. Before, it only played on the top-level artboard.
โฟ Semantics (Accessibility) in Components come back: showing a hidden parent now restores the Semantics of every Component inside it, however deep. Before, anything more than one level down stayed missing for screen readers. Thanks to a community contribution.
๐๏ธ Faster path drawing: the Rive Renderer prepares paths about 6 to 7% faster on desktop and 8 to 13% faster in WebAssembly.