The current old project is using version 3.6, and I want to upgrade it to version 3.8.99. How can I perform this upgrade using the CLI?
How to use the Spine CLI to perform a version upgrade?
To upgrade your Spine project from version 3.6 to 3.8.99 using the command line interface (CLI), you can use the --update
option to specify the version you want to upgrade to. Here is a step-by-step guide on how to perform this upgrade:
Open your command line interface (Terminal on macOS/Linux or Command Prompt on Windows).
Use the following command to upgrade your project:
Spine --update 3.8.99 --input <path-to-your-3.6-project.spine> --output <path-to-upgraded-project.spine>
Replace
<path-to-your-3.6-project.spine>
with the path to your existing Spine project file and<path-to-upgraded-project.spine>
with the desired path for the upgraded project file.This command will open your project in the specified version (3.8.99) and save it as a new project file.
Make sure you have the correct version of Spine installed that supports the CLI commands, and that you have access to the version 3.8.99.
JSON/binary files cannot be loaded with a different version. You need to import the JSON, save a .spine
file, then open that with a newer version.
If you are upgrading, you should upgrade to 4.2, which has fixes and tons more features than 3.8.
You can use the CLI to import JSON into a .spine
file, though very old versions of Spine may not support this. In that case you'd need to use the UI. You should always keep your .spine
file so you don't need to import JSON/binary.
As the error says, you specified -i
and -o
without specifying an action. What action are you trying to take? See:
http://esotericsoftware.com/spine-command-line-interface
To use 3.6 to import JSON to a project file:
spine --update 3.6.53 --input data.json --output project.spine --import
If this gives an error, you'll need to use the 3.6 UI.
Once you have a project file you can load it with any newer version, eg:
spine --update 4.2 --input project.spine --output path/to/folder --export json