I'm using versioned boxes, but not using Vagrant Cloud (I have a custom box host). Downloading versioned boxes works well.
However, when I'm developing new versions of my box locally, I don't want to have to go through an upload/download cycle every time I want to upgrade the version of the box loaded in Vagrant. In other words, I'd like to run vagrant box add, while specifying a newer version and a local file.
vagrant box add appears to have a option --box-version, but this is for constraining the version of a box being downloaded, not for specifying the version of a box being added. Attempting to specify box-version anyway results in:
You specified a box version constraint with a direct box file path. Box version constraints only work with boxes from Vagrant Cloud or a custom box host. Please remove the version constraint and try again.
But I'm not trying to constrain what I'm adding; I'm trying to specify. Any form of box add that works seems to set the version as 0. Is there any way to fix that and tell Vagrant what version I'm adding?