Editing image version, description from bash

If anyone needs it, this is a way to do it.

echo "Setting image versions"
export VERSION="$(date +"%m/%d/%Y %I:%M%p")"
envsubst '${VERSION}' < build/django-image-info.yaml > temp-version.yaml
cat temp-version.yaml | lxc image edit django-server

you can get the image-info.yaml from the image.