CLI Options
Below are options which may be included with the aderyn CLI command.
aderyn [OPTIONS]aderyn <ROOT>
aderyn <ROOT>--help
--helpRust based Solidity AST analyzer
Usage: aderyn [OPTIONS] [ROOT] [COMMAND]
Commands:
registry Browse detector registry
init Initialize aderyn.toml in the root directory or in an optional subdirectory
help Print this message or the help of the given subcommand(s)
Arguments:
[ROOT]
Foundry or Hardhat project root directory (or path to single solidity file)
[default: .]
Options:
-s, --src <SRC>
Path to the source contracts. Used to avoid analyzing libraries, tests or scripts and focus on the contracts.
In Foundry projects, it's auto-captured by foundry.toml and it's usually not necessary to provide it.
In a Hardhat project:
--src=contracts/
-i, --path-includes <PATH_INCLUDES>
List of path strings to include, delimited by comma (no spaces).
It allows to include only one or more specific contracts in the analysis: aderyn -i src/MyContract.sol aderyn -i src/MyContract.sol,src/MyOtherContract.sol
-x, --path-excludes <PATH_EXCLUDES>
List of path strings to exclude, delimited by comma (no spaces).
It allows to exclude one or more specific contracts from the analysis: aderyn -x src/MyContract.sol aderyn -x src/MyContract.sol,src/MyOtherContract.sol
-o, --output <OUTPUT>
Desired file path for the final report (will overwrite existing one)
[default: report.md]
-l, --lsp
[BETA] Start Aderyn's LSP server on stdout
--no-snippets
Do not include code snippets in the report (reduces report size in large repos)
--highs-only
Only use the high detectors
--stdout
Print the output to stdout instead of a file
--skip-cloc
Skip cloc analysis (line numbers, etc.)
--skip-update-check
Skip checking for new versions of Aderyn
--auditor-mode
Run in Auditor mode, which only outputs manual audit helpers
-h, --help
Print help (see a summary with '-h')
-V, --version
Print version
-o, --output <OUTPUT>
-o, --output <OUTPUT> -s, --src <SOURCE_PATH>
-s, --src <SOURCE_PATH>-i, --path-includes <PATH_INCLUDES>
-i, --path-includes <PATH_INCLUDES> Filepath
nSLOC
Filepath
nSLOC
-x, --path-excludes <PATH_EXCLUDE>
-x, --path-excludes <PATH_EXCLUDE> Filepath
nSLOC
-n, --no-snippets
-n, --no-snippets aderyn --version
aderyn --version aderyn registry
aderyn registryLast updated