A command line interface that enables developers to interact with the MythX API for automated smart contract security analysis.
A command line interface for the MythX smart contract security analysis API
Mythx-cli is primarily used by smart contract developers and security analysts to scan Ethereum smart contracts for vulnerabilities directly from the command line. It facilitates integration of security analysis into development workflows and CI/CD pipelines, helping teams automate vulnerability detection and improve contract security.
Users should have a MythX account and API credentials to use the tool. It is recommended to integrate mythx-cli into automated CI/CD pipelines for continuous security monitoring. Analysis results depend on the quality of the submitted contracts and may require interpretation by experienced security professionals.
Ensure Node.js and npm are installed
Run npm install -g mythx-cli to install the CLI globally
Configure MythX API credentials using mythx auth login
mythx analyze <file.sol>
Analyze a Solidity smart contract file for vulnerabilities
mythx status <analysis-id>
Check the status of a submitted analysis job
mythx report <analysis-id>
Retrieve the detailed vulnerability report for a completed analysis
mythx auth login
Authenticate and store MythX API credentials
mythx auth logout
Remove stored MythX API credentials