Rive CLI 1.9.1

The Rive CLI is out of technical preview and comes with every plan, including a monthly allowance of CLI publishes and pushes. This release also brings previews on iPhone, publishing to TestFlight, adding and removing libraries from the terminal, and network requests from scripts on Mac and Windows. Update with rive update (curl install) or brew upgrade --cask rive-cli.

Plans and usage

  • ๐Ÿ“Š Monthly CLI allowance: Free includes 20 CLI publishes and pushes a month and Cadet includes 200, per Workspace. A publish is a .riv for the Rive runtimes or a web page made with --publish or --publish=web, and a push is a rive push to a Rive Editor file. Building, previewing, rive pull and app builds don't use any. A project counts toward the Workspace of the Rive file it's linked to, or your personal Workspace if it isn't linked. The allowance resets on the 1st of each month. The CLI warns you when you're close. At the limit, it tells you when the allowance resets, so your agent can let you know. Files you already published keep working, and exports from the Rive Editor stay unlimited. See what counts

  • ๐Ÿ’ณ Voyager keeps going on credits: Voyager includes 2,000 a month per seat, shared across the Workspace. Past that, publishes and pushes use the Workspace's credits, $0.01 each, and the CLI tells you and your agent what each one used and what's left. Enterprise allowances are set in your agreement.

  • ๐Ÿ’ง Option to always show the splash screen: if you'd like to credit Rive and help us grow, set alwaysWatermark: true in rive.yaml to show the Rive splash screen in everything you publish, on any plan. It's the same as Always show splash screen in the Editor.

  • ๐Ÿ“ˆ Usage analytics: to help us improve the CLI, it now shares usage data, like which commands you run, after a one-time notice. Turn it off anytime with rive analytics off.

Phones

  • ๐Ÿ“ฑ Preview on iPhone: see your project on an iPhone or in the iOS Simulator with rive . --ios. All you need is a Mac with Xcode.

  • ๐Ÿ›ซ Ship to TestFlight: rive build --ios --package turns your project into an App Store build, and --upload sends it straight to TestFlight. Describe the app (its name, version, icon and so on) in a new app section of rive.yaml, and add your own iOS code in an ios/ folder, for example to sign in with Game Center.

  • โŒจ๏ธ Typing on phones: Text Inputs now take typing when you preview on an Android or iOS device, from the on-screen keyboard or a hardware keyboard.

Agents and automation

  • ๐Ÿง  Rive skills for your agent: npx skills add rive-app/skills gives your coding agent the Rive skills, so it knows how to build with Rive from the start.

  • ๐Ÿ” Many steps in one run: rive <dir> --commands keeps one run open and takes commands one line at a time, like advance 30, screenshot or quit. That's over 20 times faster than separate runs: 1,000 frames take about 10 seconds.

Previews and captures

  • ๐Ÿ”’ --serve is private by default: --serve now only accepts connections from this computer. To share with other devices on your network, add --serve-lan. Builds sent with --serve show the Rive splash screen once when the app opens, on every plan.

  • ๐Ÿ™ˆ Scenes keep running in the background: on macOS, a scene keeps playing when its window is hidden, minimized or resized, so timers, state machines and audio carry on. To pause it while hidden, set window.hiddenFrameRate to 0 in rive.yaml.

  • ๐Ÿ–ฑ๏ธ Faster pointer response on macOS: the preview window now reacts to pointer moves about twice as fast.

  • โฑ๏ธ --advance matches runtimes: --advance=N now shows exactly what a runtime shows after N frames.

  • ๐Ÿชœ Catch accidental jumps: builds now point out keys that jump to a new value in a single frame. If you meant to jump, use a hold key.

Libraries

  • โž• Add a library from the terminal: rive library add --library=<id> adds a library to your project, and rive library search shows the id. Nothing changes in your Rive file until you run rive push, so you can review the change first.

  • โž– Remove a library: rive library remove --library=<id> takes a library out of your project. Anything that used it is listed and left empty, so you can point it somewhere else.

  • ๐Ÿ“œ Publish projects that use scripted libraries: projects that use a library with scripts or shaders now publish with every script running. As reported here

  • ๐Ÿงฉ Animated library components: library components with animations now add cleanly and build right away.

  • ๐Ÿ”— Libraries that share a library: when two libraries in a project use the same third library, it's added once, and each library gets the version it needs.

Push and pull

  • ๐Ÿ”Š Files with trimmed audio: rive create --from-remote-file now handles files with trimmed audio clips.

RML (the markup the CLI compiles)

  • ๐Ÿ”ค Font names show in the Editor: a text style without familyName and styleName now picks them up from its font file, so the Editor shows the right font and style.

  • ๐Ÿ› ๏ธ More Editor files build: more files from the Editor now convert to markup and build, including files with a keyframe bound to a view model.

  • ๐Ÿ†• The latest Editor features in markup: capture listeners, layout aspect ratio, images as listener targets, converters inside converters, and keyed text style fonts now work in markup and in the preview window.

Scripting

  • ๐ŸŒ Network requests with Fetch: with --allow-net, scripts can call fetch to load data from the web, like JSON from an API. This now works on Windows as well as macOS.

  • ๐Ÿ”‡ Script audio with the silent switch on: on iPhone, script audio now plays with the silent switch on, like video does.

  • ๐Ÿ›Ÿ More reliable Luau scripts: Gradient.linear, Gradient.radial and vector indexing like v[1] now run reliably, and a script that never finishes loading is stopped, so it can't hang your project.

  • ๐Ÿงฑ GPU stencil settings in autocomplete: GPU Canvas stencil settings now show up in autocomplete and the docs.

AnimaScript

  • ๐Ÿงต Parallel calls: mark a function @parallel to split its work across threads. Start it with Parallel.run and collect results in a SharedArray or SharedList. In browsers, the work runs on separate threads on cross-origin isolated pages, and on one thread elsewhere.

  • โ“ Check what the runtime supports: supports(Feature.parallelCalls) tells a script whether the runtime playing it has parallel calls, so it can adapt on older runtimes.

  • ๐ŸŽง Read audio samples: source.toBlob() loads an audio file's samples for an audio processor, and source.stream(...) reads them as it plays, for long audio.

  • ๐ŸŽ›๏ธ Run arguments: pass --arg name=value and read it in a script with context.arg("name") to run one project with different options.

  • ๐Ÿ Release builds: rive <dir> --release runs scripts the way a published file does, without asserts. Jobs and workers can now call clock() too.

  • โšก Faster scripts: compiled scripts run faster on macOS, Linux and Windows x64, and outside Windows, a script's memory now grows without a hitch.

  • ๐Ÿงฎ Integer math matches JavaScript: AnimaScript now uses its own typing rules, so math on small integers, shifts and comparisons between signed and unsigned numbers give the same results as JavaScript and C#. Dividing an integer by zero now stops the script, or fails the build when the zero is in the code. Build warnings show each place a result can change.

  • ๐Ÿฉน Fixes: on Windows, compiled scripts now get the right results from Math.asin, Math.acos and Math.pow(x, 0.5) and when choosing between two decimal constants. Animation.advance(0) now returns true while a looping animation can play. Closures with many parameters now compile ahead of time, and BlendMode.additive now draws additive.

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

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

  • ๐Ÿ“š Better guidance for animation: clearer pages on rotation, layout units and more, plus new tips on easing, rigging, text and pushing.