Skip to main content
Version: 2026.7
Still in testing

The SDK of this version is still being tested, and these pages are being updated with it: names, menus and procedures may still change before the release. If you build content for a platform already in production, follow the documentation of that version — pick it from the version menu at the top right.

Command lines

Everything the SDK windows do to set up a project, update it and publish an environment can also run from a terminal, with no window open: on a build machine, in a script or in CI. There are three command lines, one for each job:

Command lineDoes whatWindow it mirrors
SetupCliinstalls and updates the SDK, configures the projectVirtuademy ▸ Setup project
UpdateRoutinesCliruns the update routines of a new SDK versionVirtuademy ▸ Update routines
EnvironmentsClibuilds, previews and deploys environmentsVirtuademy ▸ Publish Environments

They share the same conventions:

Unity -batchmode -nographics -projectPath <project> -logFile -
-executeMethod <method> <options>
  • Close the project in the Unity Editor first. The command starts its own editor on it.
  • Do not add -quit. The method exits the editor by itself, with an exit code, when its work is done. Some of the work is asynchronous (downloads, uploads), and -quit would cut it short.
  • Options are strict. Every option starts with -vd and has to be spelled exactly as written here. A misspelt option, an option given twice or a stray value (-vdWorlds 12 13, where a list takes commas: -vdWorlds 12,13) stops the run with exit code 10, before anything is changed.
  • Read the log. With -logFile - the log goes to the terminal. Every run ends with one line, [SetupCli] REPORT {json}, [UpdateRoutinesCli] REPORT {json} or [EnvironmentsCli] REPORT {json}, with what was found and done, then EXIT <code>. Nothing secret goes into the log or the report: no token, no upload link, nothing from the tenant configuration file.
  • Exit code 0 is success. The codes of each command line are listed below.
  • Several of the commands change many files. Commit or back up the project first.

Setup​

Method: Virtuademy.SDK.Environments.Setup.Editor.SetupCli.Run

Unity -batchmode -nographics -projectPath <project> -logFile -
-executeMethod Virtuademy.SDK.Environments.Setup.Editor.SetupCli.Run
-vdSetupVersion 2026.6.0
OptionMeaning
-vdSetupVersion <version>the Virtuademy version to install or move to, as the setup window lists it (for example 2026.6.0)
-vdSetupSteps <steps>the steps to run, separated by commas, with no spaces. Without it, the default steps run
-vdSetupRegistry <url or file>reads the list of versions from another address or a local file, to try a change before it is published

The steps, in the order they run:

StepDoes whatDefault
configurethe Configure button: the project settingsyes
sdkInstall next to Virtuademy SDK Environments, at -vdSetupVersion. It refuses a project that already has another version (exit 15): use updateyes
updateUpdate packages to selected version: moves a project that has another version to -vdSetupVersion. What the new version does not list is removed, and HybridCLR follows the version. It cannot be combined with sdkno
resolvedownloads again the Virtuademy git packages whose tag or branch moved on the remote, and leaves the others alone. It changes nothing when no package moved or when a remote could not be reached (the network being down is a warning, not a failure). The setup package itself is not touchedyes
interpreterInstall interpreteryes
addressablesFix Addressables configurations, as in Addressable setup: it resets the Addressables groups. A project that is already configured is left as it isyes
vslibraryVirtuademy ▸ Advanced ▸ Update Visual Scripting library. It takes more than a minute and cannot tell that it has already run, so it only runs when you askno
checkchanges nothing and reports. Exit 0 when the project is set up, 3 when it is not (a package that moved on its remote or Addressables that are not configured count). It cannot be combined with other steps: a launch that lists check with another step stops with exit 10no

The default steps are configure,sdk,resolve,interpreter,addressables.

One launch does one round. Every package change ends in a resolve and a reload of the editor's scripts, which cuts short the method that is running. So a launch applies what it can, stops after the first change that needs the editor to start again and exits with 2. Launch again, with the same arguments, until the code is 0. A new project takes three launches, sometimes a fourth; a project that is already set up takes one and is left as it is. Updating a project to another version with update takes two launches. When the move crosses a version that has an update routine, the log names the routine, with its command line: run it next (see below). SetupCli does not run it.

Exit codeMeaning
0every requested step is done
1unexpected error: the log has the details
2the project changed: launch again
3check found something not set up
10bad arguments
11Git cannot be run by the editor
12an editor module is missing (Unity Hub installs it)
13the list of versions could not be read
14the Unity version does not match the one the Virtuademy version needs
15the project has another version installed: use update
16Virtuademy SDK Environments is not installed
17the interpreter installation failed
18Configure failed
19the Addressables configuration failed
20vslibrary failed

When the project is opened in the editor, the setup also updates the packages by itself: see SDK setup. That check does not run in batch mode, which is what the resolve step is for.

Update routines​

Method: Virtuademy.BreakingChangeSolvers.UpdateRoutinesCli.Run

Unity -batchmode -nographics -projectPath <project> -logFile -
-executeMethod Virtuademy.BreakingChangeSolvers.UpdateRoutinesCli.Run
-vdRoutine 2026.6
-vdRoutineDoes what
listlists the routines the project has, their menu names and whether each one finds something to change (a dry scan). Changes nothing
2026.6v2026.5 -> v2026.6: the old names in your files, the POI page markers, the assets that share a GUID with a package and the legacy folders, as described in Upgrade from 2026.5. It does what the window does with its defaults: every file the scan finds, every option ticked
2026.5v2026.4.x -> v2026.5.0: connects the Mobile output of the Platform: Switch nodes, where it is not connected

When a project needs both, run 2026.6 first: 2026.5 saves graphs, so it refuses to start (exit 15) while 2026.6 still has Visual Scripting data to migrate.

OptionMeaning
-vdDryRunscans and reports, and changes nothing
-vdExclude <paths>leaves files out, as unticking them in the window does: asset paths separated by commas, or a folder when the path ends with /. For 2026.6 it concerns the files of the first step, the rewrite of names
-vdSkip <steps>2026.6 only: turns steps off, like their options in the window. unpin, pages, guids and folders, separated by commas
-vdTimeoutMinutes <n>ends a run that waits for the editor for too long. 60 by default

One launch is one round. 2026.6 rewrites scripts and the package manifest, so Unity has to recompile before the changed files can be saved again. The launch that changes the project exits with 2; launch again with the same arguments. The next launch waits for the files to be saved, reports what it did and what is left, and finds nothing more to change. Running it again after that finds nothing. The report names the files changed for each step, the ones left for a manual check, and what remains.

The routines are an assembly of their own, so they also run in a project that does not compile, which is the state the update can leave it in.

Exit codeMeaning
0nothing left to do
1unexpected error: the log has the details
2the project changed and Unity has to recompile: launch again
3a dry run found something to change
10bad arguments
11the routine's code is not loaded (the SDK's editor code did not compile)
12the project's scripts do not compile, so the changed files cannot be saved again
13finished with problems: files that could not be changed, files left for a manual check, or work still left. The report names them
14timeout
15run 2026.6 first

Environments: build and deploy​

Method: Virtuademy.SDK.Environments.Editor.EnvironmentsCli.Run

Unity -batchmode -nographics -projectPath <project> -logFile -
-executeMethod Virtuademy.SDK.Environments.Editor.EnvironmentsCli.Run
-vdCommand <command> [options]

It builds and publishes what the Publish Environments window (Virtuademy ▸ Publish Environments, formerly Addressables management) does with buttons.

The scenes it builds are the ones ticked Include in build in the window's list, with their Platforms: the ticks are saved in Assets/Virtuademy/Editor/Settings/AddressablesSceneList.asset (a versioned file you should commit). Folders can be excluded using the Exclude setting in the window. The Addressables have to be configured first: fix them in the window using Fix build settings, or with the addressables step of SetupCli (a project that is not configured exits with 12).

Named connections (-vdConnection)​

From 2026.7.0, authentication and target environments are governed by named connections. A connection is one tenant of one platform instance. The connections are stored in your user's encrypted local store, outside every project, and every environment project on the computer uses all of them:

  • Pass -vdConnection <connection> to specify which connection to act on, by its key, its tenant key, its tenant label or app/env. A name that fits none, or several, exits with 26.
  • If the computer has only one usable connection, -vdConnection can be omitted: the command acts on that one.
  • If the computer has two or more usable connections, passing -vdConnection is mandatory on every command that acts on a connection (worlds, build, preview, deploy and the commands for files and experiences below), also in a project that has always deployed to the same tenant; omitting it exits with 26. session, which takes no -vdConnection, exits with 26 the same way. Nothing picks a default for you.

Commands​

The commands marked From 2026.7.0 do not exist in 2026.6.

-vdCommandDoes what
statusreports the session, whether the Addressables are configured, the scene list and the interpreter. No network required
session [-vdRenew]prints the session fields and the tenant label of the computer's only usable connection. With -vdRenew it renews an expired session, or exits with 11
connectionsFrom 2026.7.0. Lists every connection of the store (%USERPROFILE%\.virtuademy\sdk\): tenant, environment, user, the platform of its app, whether its token is valid, and whether it is the computer's only usable one (default). No network required
whoami [-vdConnection <connection>]From 2026.7.0. Reports the authenticated account, tenant label and environment of one connection, without exposing secrets. Exit 11 when it has no session
login [-vdConnection <connection> | -vdApp <app> [-vdEnv <key>]] [-vdNoBrowser] [-vdLoginTimeoutSeconds <n>]From 2026.7.0. Logs in to a connection of the store, or to the one of a configuration file of the project (added to the store when it is new). It prints AUTH_URL <url> as soon as it has it and opens the default browser unless -vdNoBrowser. It gives up 180 seconds after the URL (exit 27; 28 when the login fails)
logout [-vdConnection <connection>]From 2026.7.0. Ends the connection's session
tenant-config -vdConfigFile <path> [-vdEnv <key>]imports a Back Office configuration file into the store, one named connection for each environment of the file (or only -vdEnv's). It writes nothing inside the project, needs the network and does not log in
worlds [-vdConnection <connection>]lists the worlds you can deploy to, and where each included scene is already published
build [-vdConnection <connection>] [-vdScenes a,b]compiles the addressables of the included scenes and verifies the interpreted scripts on the connection's platform. -vdScenes limits the build to some of the included scenes, by scene name
preview (-vdWorlds <ids> | -vdTenant) [-vdConnection <connection>] [-vdExpectTenant <label>] [-vdScenes a,b]previews what a deploy would add and update, scene by scene. Read-only
deploy (-vdWorlds <ids> | -vdTenant) -vdExpectTenant <label> [-vdConnection <connection>] [-vdBuild] [-vdDryRun] [-vdScenes a,b]deploys the built addressables to the worlds with the given ids or to the tenant. Without -vdBuild it deploys the archives already in ServerData. -vdDryRun tests the operation without uploading. From 2026.7.0, when a deploy creates a scene's environment in a place it also sends the scene's default thumbnail and Localization File (see scene-files), once
experiences -vdWorlds <ids> [-vdScenes a,b] [-vdConnection <connection>] [-vdExpectTenant <label>]From 2026.7.0. For each scene (the ones ticked Include in build, or -vdScenes') in each world: the environment's id there, or that it is not published there; how many experiences use it, by type and state; the Core experiences your login is shown, with their state, whether you are their author (isMine) and whether you may change their state (canChangeStatus); whether you may create one (canCreateCore); and coreHiddenDrafts, the Core drafts of other authors you are not shown. Read-only
create-core -vdWorlds <ids> -vdScenes a,b [-vdLabel <text>] [-vdPublished] [-vdDryRun] [-vdConnection <connection>] [-vdExpectTenant <label>]From 2026.7.0. Makes sure each scene's environment has a Core experience in each world, creating one only where none exists (of any author and state): a draft, or already in the catalog with -vdPublished. It is idempotent: the second run reports alreadyExisted and changes nothing. -vdLabel (1 to 100 characters; the environment's label when absent) needs exactly one scene. -vdDryRun only reads and reports wouldCreate
experience-status -vdWorlds <one id> -vdExperience <id> -vdStatus Draft | Published [-vdConnection <connection>] [-vdExpectTenant <label>]From 2026.7.0. Sets one experience's state: Published is in the catalog, Draft is not. Setting the state it already has changes nothing (changed: false). Only the experience's author and the world's Owner may; anyone else gets exit 33
published [-vdScenes a,b] [-vdConnection <connection>]From 2026.7.0. For every scene of the scene list (included in the build or not): where it is published, and the thumbnail and Localization File each place holds (address, SHA-256, whether the project's Assets/Virtuademy/Editor/PublishFiles/ holds the same file, and whether you may change it, canWrite); and whether the tenant can receive files from the SDK. Read-only, on any tenant
save-files [-vdScenes a,b] [-vdWorlds <ids> | -vdTenant] [-vdBackupFolder <path>] [-vdDryRun] [-vdConnection <connection>]From 2026.7.0. Saves those files into PublishFiles/ (never twice the same file) and writes a manifest for restore. -vdBackupFolder writes a full copy and its manifest to that folder instead
set-files -vdExpectTenant <label> -vdScenes <one> [-vdThumbnail <asset>] [-vdLocalization <asset>] (-vdWorlds <ids> | -vdAllWorlds | -vdTenant) [-vdExcludeWorlds <ids>] [-vdDryRun] [-vdConnection <connection>]From 2026.7.0. Replaces the files at those places with assets of the project (paths under Assets/). The files the places hold now are saved to the project first, and a place that already holds the same file is unchanged. A file the platform would refuse stops the command with exit 37, before anything is sent; a place that could not be changed gives 38
restore -vdExpectTenant <label> -vdManifest <path> [-vdScenes a,b] [-vdWorlds <ids> | -vdTenant] [-vdDryRun] [-vdConnection <connection>]From 2026.7.0. Puts back what a save-files manifest recorded, for the same connection, at the same environments
scene-files -vdScenes <one> [-vdThumbnail <asset>] [-vdLocalization <asset>] [-vdClear]From 2026.7.0. The scene's default thumbnail and Localization File, kept in the scene list (no network; without options it shows them). A deploy sends them when it creates the scene's environment in a place, and never again: deploy.targets[].scenes[].defaultFiles in the report says what it did, and -vdDryRun reports it too

All commands also accept -vdTimeoutMinutes <n> (default is 60). From 2026.7.0 they also accept -vdResultFile <path>: the report (and only the report, never the editor log) is also written to that file, replaced whole, with state: done. A login writes it first, with state: awaiting-browser and the URL, so a script can show the URL while the command waits.

Thumbnails, Localization Files and experiences​

These commands are the command-line counterpart of the Environment Details window. They are From 2026.7.0.

  • Places. A place is a world, or the tenant level of a tenant, where the scene's environment exists online, on one connection. The tenant level is one environment shared by its worlds.
  • Images. An image goes online as a JPEG of at most 2560 x 1440, never enlarged, with transparency flattened on white. A plain JPEG within that size is sent as it is; any other image is converted into PublishFiles/ right before it is sent. An image of more than 50 megapixels is refused (exit 37).
  • Localization Files. The file is checked on your computer against the platform's rules before anything is sent, and against the languages of the tenant: a language the tenant offers that the file lacks is said in the message, and a file with no language in common with the tenant is refused (exit 37).
  • Tenants that cannot receive files. Reading (published, save-files) works on any tenant. For set-files and restore, a tenant whose platform cannot receive files from the SDK yet is reported place by place and ends with exit 38: use the Back Office there.
  • Experiences. experiences, create-core and experience-status ask the platform, which decides in each world who may do what: a login that may not gets exit 33 and a message that says so. A tenant whose API does not offer them gets exit 34 and a message that says to use the Back Office. They report each scene and world in the report's targets (experienceStatus for experience-status), with its own status and message; the exit code is the most telling outcome, in this order: 11, 20 (the platform answered an error), 34, 33, 36, 35, then 0.
  • Not undone as a whole. Several places are changed one after the other; when one fails nothing is rolled back, and the report says which places changed.

Deploy rules and safety gates​

  1. Explicit targets: A deploy must explicitly name target world IDs (-vdWorlds 12,13) or the tenant (-vdTenant).
  2. Tenant verification (-vdExpectTenant): Deploy requires -vdExpectTenant <tenant label>, matching the tenant label of the connection it acts on (case-insensitive; whoami shows it). If missing, it exits with 24; if it names a different tenant, it exits with 30. Nothing is built or sent.
  3. Platform version rule: preview and deploy to a tenant whose platform version has another year or release than the one the project was set up from, or that reports none, end with exit code 31, before anything is built or sent.
  4. Platform check: worlds, preview, deploy and build refuse a connection whose app is not a CreatorKit app (connections shows the platform of each app), with exit 32; so do login and tenant-config with a key of another platform. The remedy is the configuration file made for environment projects, downloaded from the Back Office. The exit 25 of 2026.6, which compared the platform address with the tenant you are logged in to, is no longer returned: the address now comes from the connection itself. The number stays reserved.
  5. Thumbnails and Localization Files: in 2026.6 the command line does not alter an environment's thumbnail or Localization File: set them in the Back Office, in the environment's Edit panel, after the deploy (Environments). From 2026.7.0, set-files replaces them in the places you name, and the scene's defaults (scene-files) are sent when a deploy creates the environment in a place. The Back Office still works as before.
Unity -batchmode -nographics -projectPath <project> -logFile - \
-executeMethod Virtuademy.SDK.Environments.Editor.EnvironmentsCli.Run \
-vdCommand deploy -vdConnection AcmeSandbox -vdWorlds 12,13 -vdExpectTenant Acme -vdBuild

Exit codes​

Exit codeMeaning
0done
1unexpected error: the log has the details
10bad arguments
11login required (expired session could not be renewed)
12Addressables are not configured
13nothing to build: no scene included, or -vdScenes names an unticked scene
14build failed
15interpreted scripts did not pass checks
16unauthorized target world ID
17deploy finished with problems
18login permissions do not permit tenant-level deployment
19configuration file could not be imported
20platform API could not be reached
21timeout
22deploy without -vdBuild found a scene with no archive in ServerData
23reserved, no longer returned from 2026.7.0. Up to 2026.6, tenant-config refused to write the file where git did not ignore it
24deploy without -vdExpectTenant (up to 2026.6 it was also the code for a label that names another tenant: that is now 30)
25reserved, no longer returned from 2026.7.0. Up to 2026.6, the platform address did not match the tenant you are logged in to
26the connection is unknown, or the name fits several, or the computer has two or more usable connections and -vdConnection is missing
27interactive login timed out (180 seconds after the address was printed)
28interactive login failed
29login in batch mode on an operating system with no encrypted store: the login would end with the process
30-vdExpectTenant names another tenant than the connection's
31version rule: the tenant's platform version does not match the project's SDK version (preview and deploy)
32platform mismatch: the connection's app is not a CreatorKit app
33not allowed: your login may not do it in that world (experiences, create-core, experience-status)
34the tenant does not offer it: it cannot show or change the experiences from the SDK, use the Back Office
35the environment is not published in that world, or the experience was not found there
36the world has no session capacity set (create-core)
37a thumbnail or Localization File would be refused by the platform: nothing was sent
38one or more places were not changed (set-files, restore): not allowed, the tenant cannot receive files from the SDK, not published there, or an error. The other places may have changed

The codes 26 to 38 are From 2026.7.0. The report says, place by place, what each one concerned.

A build leaves the project on the last platform it built, matching the editor window behavior.