--pack-extension-key
What does --pack-extension-key do?
Optional PEM private key to use in signing packaged .crx.
Usage
CLILaunch Chrome with --pack-extension-key using CLI
chrome --pack-extension-keyPuppeteerLaunch Chrome with --pack-extension-key using Puppeteer
const browser = await puppeteer.launch({
args: ['--pack-extension-key']
});PlaywrightLaunch Chrome with --pack-extension-key using Playwright
const browser = await chromium.launch({
args: ['--pack-extension-key']
});SeleniumLaunch Chrome with --pack-extension-key using Selenium
from selenium import webdriver
options = webdriver.ChromeOptions()
options.add_argument('--pack-extension-key')
driver = webdriver.Chrome(options=options)