Preparing search index...
The search index is not available
@shopify/cli-kit
@shopify/cli-kit
node/themes/theme-manager
ThemeManager
Class ThemeManager
Abstract
Index
Constructors
constructor
Properties
admin
Session
context
theme
Id
Methods
create
fetch
find
Or
Create
generate
Theme
Name
remove
Theme
set
Theme
Constructors
constructor
new
ThemeManager
(
adminSession
:
AdminSession
)
:
ThemeManager
Parameters
adminSession
:
AdminSession
Returns
ThemeManager
Properties
Protected
admin
Session
adminSession
:
AdminSession
Protected
Abstract
context
context
:
string
Protected
theme
Id
themeId
:
undefined
|
string
Methods
create
create
(
themeRole
?:
Role
,
themeName
?:
string
)
:
Promise
<
Theme
>
Parameters
Optional
themeRole
:
Role
Optional
themeName
:
string
Returns
Promise
<
Theme
>
fetch
fetch
()
:
Promise
<
undefined
|
Theme
>
Returns
Promise
<
undefined
|
Theme
>
find
Or
Create
findOrCreate
()
:
Promise
<
Theme
>
Returns
Promise
<
Theme
>
generate
Theme
Name
generateThemeName
(
context
:
string
)
:
string
Parameters
context
:
string
Returns
string
Protected
Abstract
remove
Theme
removeTheme
()
:
void
Returns
void
Protected
Abstract
set
Theme
setTheme
(
themeId
:
string
)
:
void
Parameters
themeId
:
string
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
admin
Session
context
theme
Id
Methods
create
fetch
find
Or
Create
generate
Theme
Name
remove
Theme
set
Theme
@shopify/cli-kit
Loading...