wp widget add <name> <sidebar-id> <position>

Adds a widget to a sidebar

Arguments

NameDescription
nameWidget name
sidebar-idID for the corresponding sidebar
positionWidget’s current position within the sidebar. Defaults to last

Options

NameDescription
--field=valueWidget option to add, with its new value