vastai-upgrade-migration

Featured

Upgrade Vast.ai CLI, migrate API versions, and handle breaking changes. Use when upgrading vastai CLI, detecting deprecations, or migrating between API versions. Trigger with phrases like "upgrade vastai", "vastai migration", "vastai breaking changes", "update vastai CLI".

AI & Automation 2,940 stars 439 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Vast.ai Upgrade & Migration ## Current State !`vastai --version 2>/dev/null || echo 'vastai CLI not installed'` !`pip show vastai 2>/dev/null | grep -E "^(Name|Version)" || echo 'N/A'` ## Overview Upgrade the Vast.ai CLI and Python SDK, handle API changes, and migrate between GPU configurations. The CLI is distributed via PyPI as `vastai` and tracks the REST API at `cloud.vast.ai/api/v0`. ## Prerequisites - Current `vastai` CLI installed - Active instances inventory documented - Backup of any custom scripts using the API ## Instructions ### Step 1: Check Current Version and Upgrade ```bash # Check installed version vastai --version pip show vastai | grep Version # Upgrade to latest pip install --upgrade vastai # Verify upgrade vastai --version vastai show user # Verify auth still works ``` ### Step 2: Detect Breaking Changes ```python # Compare CLI help output before and after upgrade import subprocess def get_cli_commands(): result = subprocess.run(["vastai", "--help"], capture_output=True, text=True) commands = set() for line in result.stdout.split('\n'): stripped = line.strip() if stripped and not stripped.startswith('-') and not stripped.startswith('usage'): cmd = stripped.split()[0] if stripped.split() else "" if cmd.isalpha(): commands.add(cmd) return commands # Run before and after upgrade to detect removed commands ``` ### Step 3: API Version Migration ```python # The REST API is ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category