Rive CLI 1.11.0

This release lets scripts read a node's size and walk their own artboard, brings network requests from scripts to Linux and Android, and warns when a built file is over 10 MB. Two changes need action: a transition must now connect two states of the same layer (see RML below), and an AnimaScript import can no longer point outside the project (see AnimaScript below). Update with rive update (curl install) or brew upgrade --cask rive-cli (Homebrew).

Builds and publishing

  • ๐Ÿ“ฆ Size warning for large files: when a built .riv is over 10 MB, --verify and --publish now warn and name its five largest embedded assets with their sizes. A large file is slow to load, mostly on phones. The build and the publish still succeed.

Libraries

  • ๐Ÿ” A refused publish leaves your files unchanged: rive library publish now checks that your account can publish before it builds. Before, a refused publish had already written new ids into your .rml files.

Push and pull

  • ๐Ÿงน Files with deleted states build after a pull: when a state is deleted in the Editor, rive pull writes stateToId="0:0" on the transitions that pointed to it. Before, that project failed to build. Now the build warns at each one and leaves it out of the .riv.

RML (the markup the CLI compiles)

  • โš ๏ธ Transitions must connect two states of one layer: a <StateTransition> now fails the build unless it sits inside the state it leaves and its stateToId names a state in the same layer. Before, a transition outside a state was left out of the .riv without a message, and one that named another layer's state could go to the wrong state or stop the file from loading.

  • ๐Ÿ“ Ink trim for text: verticalTrimTopValue and verticalTrimBottomValue on <Text> take a new ink value. It trims the text box to the letters themselves, so "acorn" gets a shorter box than "Hello" or "agony". Runtimes that don't support it yet play ink as ex at the top and text at the bottom.

  • ๐Ÿท๏ธ Built-in enums keep their names: a built-in enum, like Horizontal Align or Layout Display, now has its name in the built .riv, as it does in files exported from the Editor. Before, the name was empty.

Scripting

These work in AnimaScript and Luau.

  • ๐Ÿ“ Read a node's size: bounds() returns a node's box in its own space, and worldBounds() returns it in the artboard's space. A script can now place a popup next to a button, or check whether the pointer is inside a panel, without repeating sizes from the markup.

  • ๐Ÿงญ Scripts can read their own artboard: context.artboard() returns the artboard a script lives in, so it can read its width and height, find an object with node(name) lookups, or walk its children list. context.node() returns the script's own node, to reach its parent and siblings. When a node the script read changes, its update runs again in the same frame.

  • ๐Ÿ›‘ Scripts can stop events: calling hit() on the pointer event in a scripted listener action now stops the event, so nothing beneath the listener's target gets it. Before, it did nothing. A listener in the capture phase can also call hit() on a key or text event to stop it before a Text Input inside takes it, emoji included.

  • ๐Ÿ–ผ๏ธ Images from pixels: Image.fromPixels(width, height, data) turns pixels a script makes or edits into an image it can draw, sample, or bind. Use it for QR codes, heatmaps, or tinted photos.

  • ๐ŸŽฌ Run an artboard from another file: file.artboard(name) returns an artboard from a file loaded with decodeFile. The script advances it, draws it, and sends it input. Before, a script could only assign such an artboard to a view model artboard property.

  • ๐ŸŒ Network requests with Fetch: with --allow-net, scripts can now call fetch on Linux and on Android devices, as well as macOS and Windows. response.body.getReader() reads a response as it arrives, so a large or slow download no longer runs into the size limit or the timeout.

  • ๐Ÿ“ฑ More GPU Canvas shaders run on more GPUs: shaders that read a multisampled texture now run on GL and WebGL2, integer builtins like countOneBits compile on Mali and WebGL2, a continue inside a switch compiles on Direct3D, and shaders with 17 or more uniform buffers draw on Metal. Counted loops also run faster on Metal and WebGL2.

AnimaScript

  • โš ๏ธ Imports stay inside the project: an import that points to a file outside the project folder, even through a symlink, is now a build error. Move the file into the project.

  • ๐Ÿงฑ Library scripts find their own shaders and blobs: context.shader(name) and context.blob(name) in a library's script now find the library's own asset first, then the project's. Before, they could return another asset with the same name, or nothing. From any script, lib:<library>/<path> names a library's asset.

  • ๐Ÿงฎ More integer math matches JavaScript: more 32-bit integer math now gives the results JavaScript gives. A new W3020 warning marks each place where a value changed from the previous compiler.

  • ๐Ÿง  See which libraries use raw memory: the build log now counts the raw memory operations in your project and in each library it imports. The compiler doesn't check these reads and writes, so it helps to know where they are. --format=json reports the counts as rawMemory.

  • ๐Ÿ”Ž Fewer false leak warnings: a scene that builds content after its first frame, like text created on first visit, no longer gets a "script leaked N host handles" warning when nothing leaked.

  • ๐Ÿ Script memory on Apple platforms: memory a script frees now goes back to the system. Before, the app kept holding it.

Runtime

  • ๐Ÿ˜ด Idle lists do less work: a list row now rests when its script has stopped advancing, and when its text changes style by state (idle, hovered, current). Before, such rows did work on every frame. In a test file with about 500 rows, an idle frame's advance took 76% less time.

Built-in CLI docs (run rive docs to read them)

The docs that ship with the CLI, which agents read to build scenes.

  • ๐ŸชŸ Agents open a window only when you ask: the AGENTS.md that rive create writes now tells agents to check their work with --screenshot or --commands, and to open the preview window only when you ask for it. rive docs --list says the same, so older projects get it too. The docs also say that rive illustrate spends agent credits.