Аргументы командной строки расширений

Command for managing Blender extensions.

параметры:
-h, --help

show this help message and exit

subcommands:

Package Management
список:

Перечислить все упаковки (packages).

синхронизировать:

Synchronize with remote repositories.

обновить:

Upgrade any outdated packages.

установить:

Install packages.

установить-файл:

Установить пакет из файла.

убрать:

Убрать упаковки.

Repository Management
repo-list:

Список репозиториев.

repo-add:

Добавить репозиторий.

repo-remove (удалить репозиторий):

Remove repository.

Создание Расширения
создать:

Build a package.

подтвердить:

Validate a package.

генерация-сервера:

Create a listing from all packages.

Package Management

Subcommand: list

применение:

blender --command extension list [-h] [-s]

List packages from all enabled repositories.

параметры:
-h, --help

show this help message and exit

-s, --sync

Синхронизируйте удаленный каталог перед выполнением действия.

Subcommand: sync

применение:

blender --command extension sync [-h]

Download package information for remote repositories.

параметры:
-h, --help

show this help message and exit

Subcommand: update

применение:

blender --command extension update [-h] [-s]

Download and update any outdated packages.

параметры:
-h, --help

show this help message and exit

-s, --sync

Синхронизируйте удаленный каталог перед выполнением действия.

Subcommand: install

применение:

blender --command extension install [-h] [-s] [-e] [--no-prefs]
                                    PACKAGES
позиционные параметры:
PACKAGES:

The packages to operate on (separated by , without spaces).

параметры:
-h, --help

show this help message and exit

-s, --sync

Синхронизируйте удаленный каталог перед выполнением действия.

-e, --enable

Enable the extension after installation.

--no-prefs

Treat the user-preferences as read-only, preventing updates for operations that would otherwise modify them. This means removing extensions or repositories for example, wont update the user-preferences.

Subcommand: install-file

применение:

blender --command extension install-file [-h] -r REPO [-e] [--no-prefs]
                                         FILE

Install a package file into a local repository.

позиционные параметры:
FILE:

Файл пакетов.

параметры:
-h, --help

show this help message and exit

-r REPO, --repo REPO

Идентификатор репозитория.

-e, --enable

Enable the extension after installation.

--no-prefs

Treat the user-preferences as read-only, preventing updates for operations that would otherwise modify them. This means removing extensions or repositories for example, wont update the user-preferences.

Subcommand: remove

применение:

blender --command extension remove [-h] [--no-prefs] PACKAGES

Disable & remove package(s).

позиционные параметры:
PACKAGES:

The packages to operate on (separated by , without spaces).

параметры:
-h, --help

show this help message and exit

--no-prefs

Treat the user-preferences as read-only, preventing updates for operations that would otherwise modify them. This means removing extensions or repositories for example, wont update the user-preferences.

Repository Management

Subcommand: repo-list

применение:

blender --command extension repo-list [-h]

List all repositories stored in Blender’s preferences.

параметры:
-h, --help

show this help message and exit

Subcommand: repo-add

применение:

blender --command extension repo-add [-h] [--name NAME]
                                     [--directory DIRECTORY]
                                     [--url URL] [--cache BOOLEAN]
                                     [--clear-all] [--no-prefs]
                                     ID

Add a new local or remote repository.

позиционные параметры:
ID:

Идентификатор репозитория.

параметры:
-h, --help

show this help message and exit

--name NAME

Имя для отображения в интерфейсе (необязательно).

--directory DIRECTORY

The directory where the repository stores local files (optional). When omitted a directory in the users directory is automatically selected.

--url URL

The URL, for remote repositories (optional). When omitted the repository is considered «local» as it is not connected to an external repository, where packages may be installed by file or managed manually.

--cache BOOLEAN

Use package cache (default=1).

--clear-all

Clear all repositories before adding, simplifies test setup.

--no-prefs

Treat the user-preferences as read-only, preventing updates for operations that would otherwise modify them. This means removing extensions or repositories for example, wont update the user-preferences.

Subcommand: repo-remove

применение:

blender --command extension repo-remove [-h] [--no-prefs] ID

Remove a repository.

позиционные параметры:
ID:

Идентификатор репозитория.

параметры:
-h, --help

show this help message and exit

--no-prefs

Treat the user-preferences as read-only, preventing updates for operations that would otherwise modify them. This means removing extensions or repositories for example, wont update the user-preferences.

Создание расширения

Subcommand: build

применение:

blender --command extension build [-h] [--source-dir SOURCE_DIR]
                                  [--output-dir OUTPUT_DIR]
                                  [--output-filepath OUTPUT_FILEPATH]
                                  [--verbose]

Build a package in the current directory.

параметры:
-h, --help

show this help message and exit

--source-dir SOURCE_DIR

The package source directory containing a blender_manifest.toml manifest.

Default’s to the current directory.

--output-dir OUTPUT_DIR

Выходной пакет каталога.

Default’s to the current directory.

--output-filepath OUTPUT_FILEPATH

The package output filepath (should include a .zip extension).

Defaults to a name created using the id from the manifest.

--verbose

Include verbose output.

Subcommand: validate

применение:

blender --command extension validate [-h] [SOURCE_PATH]

Validate the package meta-data in the current directory.

позиционные параметры:
SOURCE_PATH:

The package source path (either directory containing package files or the package archive). This path must containing a blender_manifest.toml manifest.

Defaults to the current directory.

параметры:
-h, --help

show this help message and exit

Subcommand: server-generate

применение:

blender --command extension server-generate [-h] --repo-dir REPO_DIR

Generate a listing of all packages stored in a directory. This can be used to host packages which only requires static-file hosting.

параметры:
-h, --help

show this help message and exit

--repo-dir REPO_DIR

Каталог удаленного репозитория.