Skip to main content
The browser, Node and Cloudflare bindings load the bundled Rust parser on first use.
See setup and shell examples for supported languages, rules and resource limits.

Supported commands

Run ast-grep <command> --help for the supported flags and operands. This list is generated from Mirage’s registered command tree.

Usage

Behavior

The CLI reads source files and rules through the workspace VFS. A rewrite previews the edits by default and writes them when given -U. Set the parser’s memory ceiling on the CLI installation and the directory walk limit on the workspace. Configuration and examples

License

See compatibility and licenses.