wp transient set <key> <value> <expiration>

Sets a transient value

Arguments

NameDescription
keyKey for the transient
valueValue to be set for the transient
expirationTime until expiration, in seconds

Options

NameDescription
--networkSet the value of a network|site transient. On single site, this is is a specially-named cache key. On multisite, this is a global cache (instead of local to the site)