[PP-1] The content:export command should allow you to specify which user account to use while exporting

Created on 28 June 2025, 8 days ago

Problem/Motivation

This is a follow-up to ✨ Add a command-line utility to export content in YAML format Active .

Exporting content requires administrative privileges so that the system has the maximum possible access to all entity fields. Right now, it uses the AdminAccountSwitcher service to kick you into the first available account with administrative privileges. It would be better to let this be specified explicitly if desired; the default content importer allows this as well, so the exporter should too.

Proposed resolution

Add a --as-user|-u option to the content:export command. If passed, it needs to be the username or ID of an extant user account to use while exporting. If not specified, the current behavior is unchanged.

✨ Feature request
Status

Postponed

Version

11.0 πŸ”₯

Component

default content system

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024