node_modules/.bin, global packages, or download packages temporarily for one-time execution.
Usage
Parameters
Name of the command to execute. Can be a binary from:
- Local
node_modules/.bin - Global
~/.ant/pkg/global/node_modules - npm registry (downloaded temporarily)
Arguments to pass to the command.
Options
Run the command with
ant runtime instead of Node.js.Enable verbose output.
Display help information.
Examples
List available commands
Run local binary
Run with ant runtime
Run global binary
Download and run temporarily
If the command is not installed, Ant downloads it temporarily:Run specific version
Pass complex arguments
Execution Priority
Ant searches for binaries in this order:- Local
node_modules/.bin - Global
~/.ant/pkg/global/node_modules - Download from npm registry (temporary)
Temporary Downloads
When a command is not found locally or globally:- Package is downloaded to a temporary location
- Command is executed immediately
- Package may be cached for future use
Runtime Selection
By default, binaries run with Node.js. Use--ant to run with Antβs runtime:
Exit Codes
The exit code from the command is propagated:Command Not Found
Related
- ant run - Run package.json scripts
- ant add - Install packages locally
- ant install -g - Install packages globally