Managing Images
Images
List Images
You can list all available base images provided by Morph Cloud.
- Python
- TypeScript
- CLI
from morphcloud.api import MorphCloudClient
client = MorphCloudClient()
images = client.images.list()
for image in images:
print(f"ID: {image.id}, Name: {image.name}, Description: {image.description}")
import { MorphCloudClient } from 'morphcloud'; // adjust import path if needed
const client = new MorphCloudClient();
async function listImages() {
const images = await client.images.list();
images.forEach(image => {
console.log(`ID: ${image.id}, Name: ${image.name}, Description: ${image.description}`);
});
}
listImages();
morphcloud image list
# For JSON output
morphcloud image list --json
This will output a list of available images with details like their ID, name, and description.