Documentation
Astra is a cross-language code migration CLI that helps you refactor and migrate code between different programming languages with semantic understanding.
Note: Astra is currently in active development. Some features may be experimental.
What is Astra?
Astra is a powerful CLI tool designed to help developers migrate code between different programming languages while preserving semantic meaning and structure. Unlike simple syntax translators, Astra understands the intent behind your code and generates idiomatic code in the target language.
Key Features
Semantic Understanding
Astra analyzes your code at the semantic level, understanding types, scopes, and relationships to ensure accurate migrations.
Type-Safe Migrations
Preserve type safety across languages with intelligent type mapping and inference.
Idiomatic Output
Generated code follows best practices and idioms of the target language.
Installation
Install Astra using the installation script (recommended):
curl -fsSL https://astra.sh/install | shOr install with Cargo if you have Rust installed:
cargo install astra-cliVerify your installation:
astra --versionQuick Start
Migrate your first file in seconds:
1. Initialize Astra in your project
astra init2. Run a migration
astra migrate --from typescript --to rust src/3. Review and apply changes
astra reviewCommon Commands
astra migrate --from <lang> --to <lang> <dir>Migrate entire codebase between languages with semantic understanding
astra :indexIndex your codebase and build semantic graph
astra :healthCheck codebase health metrics (code quality, security, test coverage)
astra :bisect "bug description"Time travel debugging - find the commit that introduced a bug
astra :security-scanScan for security vulnerabilities, secrets, and unsafe patterns
astra :graphGenerate dependency graph visualization
astra team sync --cloudSync team tasks and productivity metrics to cloud
astra --watchMonitor file changes in real-time
astra --mcpStart Model Context Protocol server for Cursor/Claude integration
astra --agentEnable agentic mode - AI can autonomously read/write files