azlin vm update-tools¶
Update development tools on a VM
Description¶
The azlin vm update-tools command refreshes the development toolchains that were installed during VM provisioning. It upgrades system packages, the Rust toolchain, and the Python and Node.js package managers.
Note: This updates development tools, NOT operating system packages. For OS updates, use azlin os-update.
Usage¶
Arguments¶
| Argument | Description |
|---|---|
VM_IDENTIFIER | VM name, session name, or IP address (required) |
Options¶
| Option | Type | Description |
|---|---|---|
--resource-group, --rg TEXT | Name | Azure resource group |
--config PATH | Path | Config file path |
--timeout INTEGER | Seconds | Timeout per update in seconds (default: 300) |
-h, --help | Flag | Show command help and exit |
Examples¶
Update by VM Name¶
Update by Session Name¶
Update by IP Address¶
Update with Custom Timeout¶
Update with Explicit Resource Group¶
What Gets Updated¶
- System packages:
apt-get update && apt-get upgrade - Rust:
rustup update(rustc, cargo) - Python:
pip install --upgrade pip - Node.js:
npm install -g npm
Troubleshooting¶
Update Timeout¶
Symptoms: Update times out
Solutions:
# Increase timeout
azlin vm update-tools my-vm --timeout 900
# Or update manually via SSH
azlin connect my-vm
npm update -g
rustup update
pip install --upgrade pip uv
Specific Tool Fails¶
Symptoms: One tool fails to update
Solutions:
# SSH to VM and update manually
azlin connect my-vm
# Update specific tools
npm update -g # Node.js
rustup update # Rust
pip install --upgrade pip uv # Python
Related Commands¶
azlin os-update- Update OS packagesazlin connect- SSH to VMazlin new- Provision VM with latest tools
Source Code¶
- update_helpers.rs - Update script definition