• Runtimes
  • How to use the Spine CLI to perform a version upgrade?

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?

Related Discussions
...

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:

  1. Open your command line interface (Terminal on macOS/Linux or Command Prompt on Windows).

  2. 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.

  3. 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.

    Spinebot Do I need to create a new project? Currently, my old version only contains unpacked PNG and JSON files. If needed, please provide the CLI commands to create a new project and integrate them together.

    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.

      Nate 可以走CLI吗?目前有没有CLI生成.spine文件命令,我这里Spine -i -o -r会打开Spine UI,CLI就中断了

      Nate When I used the command Spine --update 3.8.99 --input ./400_bjxh.spine --output ./400_bjxh_3_8_99.spine, Spine returned the error: ERROR: Input and output specified without specifying an action.

      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