Configure
Use config command to configure pyRevit on your machine from an existing template configuration file:
pyrevit config --from=<template_config_path> [--log=<log_file>]
$ pyrevit config --from="C:\myPyRevitTemplateConfig.ini"
To see all configuration options, run the pyrevit configs --help command
Configuring Sensitive Tools
You can Enable/Disable a few tools in pyRevit configurations:
pyrevit configs usercanupdate [(yes | no)] [--log=<log_file>]
pyrevit configs usercanextend [(yes | no)] [--log=<log_file>]
pyrevit configs usercanconfig [(yes | no)] [--log=<log_file>]
usercanupdate: Enable/Disable Update tool in pyRevit main toolsusercanextend: Enable/Disable Extensions tool in pyRevit main toolsusercanconfig: Enable/Disable Settings tool in pyRevit main tools
Configuring Your Own Options
Use the configs command to configure your custom config options. Specify the option in section:option format:
pyrevit configs <option_path> (enable | disable) [--log=<log_file>]
pyrevit configs <option_path> [<option_value>] [--log=<log_file>]
$ pyrevit configs mysection:myswitch enable # set myswitch to True
$ pyrevit configs mysection:myvalue 12 # set myvalue to 12
Using Config as Seed
Seed the configuration to %PROGRAMDATA%/pyRevit to be used as basis for pyRevit configurtions when configuring pyRevit using System account on a user machine
--lock: Sets the read-only attribute on the seeded file, which locks the configuration for every user of the machine. See Configuration file.