Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ara-home/ara/llms.txt
Use this file to discover all available pages before exploring further.
ara x lets you run a package’s binary without adding it to your project’s package.json or node_modules/. It is the Ara equivalent of npx or pnpm dlx. When invoked, it creates a private temporary directory, installs the requested package into it (non-interactively), resolves the binary entry point, executes it under the open sandbox profile, and then deletes the temporary environment — leaving your project completely untouched.
Usage
<package> accepts the same spec formats as ara add — a bare npm package name, a versioned name like create-next-app@latest, or any other supported specifier. Everything after the package name is forwarded as arguments to the binary.
How it works
- A unique temporary directory is created at
~/.ara/dlx/<timestamp>-<pid>/. - A minimal
package.json({ "name": "ara-x-temp", "private": true }) is written there. ara addis called in non-interactive mode to install the specified package into that temp directory.- Ara looks for the binary in
node_modules/.bin/— first by the bare package name, then by the first available entry if the name doesn’t match exactly. - The binary is executed using the
opensandbox profile (network enabled, subprocesses allowed) withnode_modules/.binprepended toPATH. - The temporary directory is removed after the binary exits, whether it succeeds or fails.
The
open sandbox profile is used because scaffolding tools and generators typically need both network access (to download templates) and the ability to spawn child processes. See ara run for a description of all sandbox profiles.Examples
Argument forwarding
All arguments after the package name are forwarded verbatim to the binary. Arguments that contain spaces or shell-special characters are automatically quoted:Sandbox behavior
ara x always runs under the open profile, which means:
- Network access is enabled — needed for tools that download templates or packages at runtime.
- Subprocess spawning is allowed — many scaffolding tools shell out to
git,npm, or other binaries. - No syscall filtering on non-Linux platforms — on macOS or Windows the binary runs with no restrictions (same degradation as
ara run).
Cleanup
The temporary install directory is always removed after execution, even if the binary exits with a non-zero code or if an error occurs during installation. If Ara itself crashes mid-execution, the leftover directory can be found at~/.ara/dlx/ and deleted manually.