Depending on your support contract, Solid State Networks may not be able to help with changes you make to the scripts.
Install the scripts
You need:- Python 3.13
- The Python modules listed in
requirements.txt
Use a virtual environment
A virtual environment keeps the scripts’ dependencies separate from other Python projects. Create it once, when you install.python and pip instead of python3 or py -3.
How configuration works
You can set options in three places. Each overrides the one before it:config.py- A JSON or YAML configuration file passed with
--config=/path/to/file.json - The command line
config.py if you can.
- Use forward slashes (
/) in paths. The consoles convert them to backslashes on Windows automatically. - Every option starts with two hyphens (
--). - Required parameters are in bold in the tables below.
- Set Boolean values as
"config_value": trueorfalsein a configuration file, and as--config_value(no value) on the command line. - A “string boolean” can be a Boolean or a string (
"true","false") in a configuration file, and--config_value=trueorfalseon the command line.
Global parameters
Several scripts use these settings. Your release package already sets them. You only need to change some of them, such asconsole_directory, if you change the package’s folder structure. Don’t change parameters in config.py that aren’t listed here.
Login credentials
The DirectGVR Console apps need authentication. The scripts handle login for you when you pass a JSON credentials file with--console_credentials.
To log in manually instead, set console_credentials to null/None and run the Login Console yourself. It leaves a credentials file at %USERPROFILE%\.snxd that’s valid for 24 hours.
The file needs a consoleCredentials section with these fields:
Client credentials
Client credentials in a script config file
Browser prompt
Secure metadata
The launcher needs its metadata files (alias, catalog, metafile and so on) to be downloaded from an authenticated server over HTTPS. See Options for securing metadata.Use a proxy
Set the proxy for Python’s Requests library with environment variables:Script reference
Each script’s parameters are listed below. Required parameters are in bold.alias.py
Modifies the alias file. In normal use updates should be done using promote.py, but the display command is useful for troubleshooting.builder.py
Builds a launcher/downloader executable.cleanup.py
Compares piece files in a Product on the Organization’s default location with pieces required by all releases in the Product’s Environments with that location. It deletes any extra pieces, and optionally raises an error if any required pieces are missing. Pieces less than 24 hours old will not be deleted to avoid deleting pieces from in-progress deployments. Update paths are also checked on a per-update-path basis (individual missing pieces are not flagged).crash_report.py
Retrieves crash report and minidump from Solid State Networks Airbag API to aid in debugging.direct_get.py
Downloads the DIRECT package for a given version. Note that the console_credentials is required, and the credentials must have “grant”: “clientCredentials”.dmg.py
Builds a launcher/downloader executable and packages it as a MacOS DMG.location.py
Wrapper script for Location service. Allows adding to credentials list (with proper permissions)login.py
Wrapper script for Login Console. Simplifies automation if prompt-type login is used — run this, and then rely on cached token file by setting console_credentials to null for later scripts.manifest.py
Command-line access to Manifest API. Use object and task. The standard REST tasks (get, post, put, delete) are passed through to the API. Tasks:- create, delete, and update pass the complete request through to the API, displaying the response on error
- get passes the information through to the API and displays the response
- history
- create adds a repository/release pair
- delete can either delete a timestamp or a repository/release pair, depending on if a created_time is present
- launch (uses a “launch object” consisting of launch_name, and optionally launch_executable and launch_arguments)
- add adds the given launch object(s) to the environment’s list
- delete removes the given launch object(s) specified by launch_name from the environment’s list
- get
- retrieve the launch object for a given launch_name
- returns all objects if no name is given.
- set will replace the existing set of launch objects with the set objects given
- update replaces the values for launch_executable and launch_arguments for the given launch object(s)
object and task are required. The others may be required; see the “Applies to” and ”
Description” columns to determine if they are necessary for a given call.
WARNING: Using this script directly allows the user to violate the “business rules.” Adding/removing data directly (
especially history data) may cause system instability. Other scripts call these functions in a safe manner.
Note: For
*_name, *version, description, and *_location parameters, passing EMPTY_STRING (e.g. --description=EMPTY_STRING) will set the field to a literal empty string "".
manifest_promote.py
Similar to promote.py, but adds Manifest API. If repository and release are not given, the current environment will be promoted in its entirety.manifest_release_copy.py
Similar to release_copy.py, but adds Manifest API. Calls release_copy internally to perform remote file operations.metafile.py
Mostly metafile functions for other scripts; however, it provides a quick way to read an existing signed metafile.notary.py
The notary tool can be used to deliver macOS binaries to the Apple Store Connect notary web service.promote.py
Creates/edits an Alias to make a Release the “required release” for an Environment. Promotes a release between environments. Give the script a release_id, version, description, or an existing environment, and it will add the new/updated environment to Alias as “repository.environment”.release_copy.py
Copies a release from one location/repository to another. Required: provide one of release_id/version/description to identify the release to be copied. Note that target is how the target server is accessed, but base_url is how the client will get data from the target server (http/https).release_delete.py
Deletes a release, or all update paths to a release, from one location. This script does not support Manifest API. Required: provide one of release_id/version/description to identify the release to be deleted. Required: one of the following commands: —release, —updatepathrelease_deploy.py
Deploys the contents of a directory to a server withSolid.ReleaseDeploy.Console, so --console_directory must hold DIRECT 8.1.3 or later.
release_download.py
Downloads a release using Release Console (instead of a built downloader/launcher)release_expire.py
Deletes releases older than a given number of days. Releases that are the currently promoted release for an environment are not deleted.repository_sync.py
Synchronizes files from source sync_directory (or repository in sync_directory) to target. In addition to copying files not present in the target directory, this script deletes files in the target directory not present in the source. DO NOT use this to sync multiple source releases to the same target. This script does not add the target repository to the tracker; to do that, use tracker.py’s —rebuild command.signer.py
Signs files. The parameters here are duplicated from the “global” section, as other scripts (builder.py, release_deploy.py, etc.) use the signing functionality exposed by this script. If multiple signing methods are provided, signing will use the first found from this list: certificate_path, certificate_identity, ksp_name, pkcs11_uri. Note that certificate_identity requires a certificate_store, and ksp_name requires ksp_alias and ksb_pubkey.tracker.py
Manipulates the tracker file. Usually handled automatically by other scripts, but these commands may be useful for troubleshooting. Rebuild adds all repositories in a given sync_directory to the tracker; it does not repair a corrupt tracker file. The tracker file is JSON, so corruption can either be fixed by hand, or by renaming the file and recreating it with —rebuild.tracker_to_manifest.py
Imports a tracker json file to the Manifest API.- Tracker repositories are mapped to product_id, product_name, and repository_name.
- Location is mapped to env_name.
- A GUID is automatically generated for each repository and environment; those GUIDs are mapped as repository_id and env_id, respectively.

