Packaging a driver is near the bottom of this page.
bep@debian12:~$ smartthings edge:drivers:package --help
build and upload an edge package
USAGE
$ smartthings edge:drivers:package [PROJECTDIRECTORY] [-h] [-p <value>] [-t <value>] [--language <value>] [-O <value>] [-j] [-y] [-o <value>] [-a | --channel <value> | [-b <value> | -u <value>]] [-I | --hub <value> | ]
ARGUMENTS
PROJECTDIRECTORY [default: .] directory containing project to upload
FLAGS
-I, --install prompt for hub (or use default if previously specified) to install to after assigning it to the channel, implies --assign if --assign or --channel not included
-O, --organization=<value> the organization ID to use for this command
-a, --assign prompt for a channel (or use default if previously specified) to assign the driver to after upload
-b, --build-only=<value> save package to specified zip file but skip upload
-u, --upload=<value> upload zip file previously built with --build flag
--channel=<UUID> automatically assign driver to specified channel after upload
--hub=<UUID> automatically install driver to specified hub, implies --assign if --assign or --channel not included
COMMON FLAGS
-h, --help Show CLI help.
-j, --json use JSON format of input and/or output
-o, --output=<value> specify output file
-p, --profile=<value> [default: default] configuration profile
-t, --token=<value> the auth token to use
-y, --yaml use YAML format of input and/or output
--language=<value> ISO language code or "NONE" to not specify a language. Defaults to the OS locale
DESCRIPTION
build and upload an edge package
For API information, see:
https://developer.smartthings.com/docs/api/public/#operation/uploadDriverPackage
EXAMPLES
# build and upload driver found in current directory:
$ smartthings edge:drivers:package
# build and upload driver found in current directory, assign it to a channel, and install it;
# user will be prompted for channel and hub
$ smartthings edge:drivers:package -I
# build and upload driver found in current directory then assign it to the specified channel
# and install it to the specified hub
$ smartthings edge:drivers:package --channel <channel-id> --hub <hubId>
# build and upload driver found in the my-driver directory
$ smartthings edge:drivers:package my-driver
# build the driver in the my-package directory and save it as driver.zip
$ smartthings edge:drivers:package -b driver.zip my-package
# upload the previously built driver found in driver.zip
$ smartthings edge:drivers:package -u driver.zip