UNPKG

@shopify/cli

Version:

A CLI tool to build for the Shopify platform

8 lines (4 loc) 3.4 kB
import{a as d}from"../../../chunk-GVQIPEZT.js";import{a as b}from"../../../chunk-DN2IE3VY.js";import"../../../chunk-JAO53IH2.js";import{k as u,q as p}from"../../../chunk-XITQULK4.js";import{a as f}from"../../../chunk-QFWIDATO.js";import{p as c}from"../../../chunk-CBXSPL4W.js";import"../../../chunk-UJVH7FZS.js";import"../../../chunk-EKXY5COY.js";import"../../../chunk-4DCQNGUV.js";import"../../../chunk-XONFGLJQ.js";import"../../../chunk-4LNCYIS3.js";import"../../../chunk-L2MGAEV3.js";import"../../../chunk-PRKBO42R.js";import"../../../chunk-ZSBA6VIC.js";import"../../../chunk-F2QU6WWX.js";import"../../../chunk-XULPJ6UG.js";import{b as l}from"../../../chunk-XR6GMMEU.js";import"../../../chunk-3TNEIDOD.js";import"../../../chunk-MHWV5RQV.js";import"../../../chunk-XOTA6JTZ.js";import"../../../chunk-MOA33ZFO.js";import"../../../chunk-JUVAGMIH.js";import{A as h,v as a}from"../../../chunk-6G6TMKXF.js";import"../../../chunk-P6XE4MH5.js";import"../../../chunk-KLMDWDT2.js";import"../../../chunk-5CH3B62S.js";import"../../../chunk-QUTQDXSL.js";import"../../../chunk-WSDN25F5.js";import"../../../chunk-M56NDIMD.js";import"../../../chunk-PD5ZHJWI.js";import{r as v}from"../../../chunk-LDGAHMS7.js";import"../../../chunk-ZR76GGZ6.js";import"../../../chunk-EENHXSWU.js";import"../../../chunk-FUOIGXI4.js";import"../../../chunk-6M3ZYNGO.js";import"../../../chunk-QYR5VPQA.js";import"../../../chunk-OBEWZXOQ.js";import"../../../chunk-N5PQPIBF.js";import"../../../chunk-CERXUPGC.js";import"../../../chunk-T4M5CWAO.js";import"../../../chunk-PRVQAHWI.js";import"../../../chunk-YTNDFQJT.js";import"../../../chunk-ULQG3XQS.js";import"../../../chunk-IU2ZQ6TE.js";import"../../../chunk-PIBY5DDZ.js";import{e as g,g as i}from"../../../chunk-VPRTJUIN.js";i();i();async function y(o,t,r){let e=await b(o,{header:"Select a theme to publish",filter:{development:!1,live:!1,theme:t.theme}}),s=f({...e,role:"live"},o);!t.force&&!r&&!await h({message:`Do you want to make '${e.name}' the new live theme on ${o.storeFqdn}?`,confirmationMessage:`Yes, make '${e.name}' the new live theme`,cancellationMessage:"No, cancel publish"})||(await c(e.id,o),a({headline:t.environment?`Environment: ${t.environment}`:void 0,body:["The theme",...d(e),"is now live at",{link:{label:s,url:s}},{char:"."}]}))}var m=g(v(),1);var n=class extends p{static{this.summary="Set a remote theme as the live theme."}static{this.descriptionWithMarkdown=`Publishes an unpublished theme from your theme library. If no theme ID is specified, then you're prompted to select the theme that you want to publish from the list of themes in your store. You can run this command only in a directory that matches the [default Shopify theme folder structure](https://shopify.dev/docs/themes/tools/cli#directory-structure). If you want to publish your local theme, then you need to run \`shopify theme push\` first. You're asked to confirm that you want to publish the specified theme. You can skip this confirmation using the \`--force\` flag.`}static{this.description=this.descriptionWithoutMarkdown()}static{this.flags={...l,...u,force:m.Flags.boolean({char:"f",description:"Skip confirmation.",env:"SHOPIFY_FLAG_FORCE"}),theme:m.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})}}static{this.multiEnvironmentsFlags=["store","password","theme"]}async command(t,r,e){await y(r,t,e)}};export{n as default};