1"use strict";(self.rspackChunkrspack_website=self.rspackChunkrspack_website||[]).push([["du"],{AO(e,s,n){n.r(s);var r=n("i"),i=n("fj"),a=n("V");function l(e){let s={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",span:"span",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(s.h1,{id:"command-line-interface",children:[(0,r.jsx)(s.a,{className:"rp-header-anchor","aria-hidden":"true",href:"#command-line-interface",children:"#"}),"Command line interface"]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.a,{href:"https://npmjs.com/package/@rspack/cli",rel:"noopener noreferrer",target:"_blank",children:"@rspack/cli"})," is the command line tool for Rspack, providing a variety of commands to make working with Rspack easier."]}),"\n",(0,r.jsxs)(s.ul,{children:["\n",(0,r.jsxs)(s.li,{children:["If you do not have ",(0,r.jsx)(s.code,{children:"@rspack/cli"})," installed, please read the ",(0,r.jsx)(s.a,{href:"/guide/start/quick-start.html",children:"Quick start"})," section first."]}),"\n",(0,r.jsxs)(s.li,{children:["If you are using Rsbuild, please refer to the ",(0,r.jsx)(s.a,{href:"https://rsbuild.rs/guide/basic/cli",rel:"noopener noreferrer",target:"_blank",children:"Rsbuild CLI"})," section."]}),"\n"]}),"\n",(0,r.jsx)(a.Pq,{type:"warning",title:"Compatible with webpack-cli",children:(0,r.jsxs)(s.p,{children:["\n",(0,r.jsx)(s.code,{children:"@rspack/cli"})," is not compatible with ",(0,r.jsx)(s.code,{children:"webpack-cli"}),", so there will be some differences between the two."]})}),"\n",(0,r.jsxs)(s.h2,{id:"all-commands",children:[(0,r.jsx)(s.a,{className:"rp-header-anchor","aria-hidden":"true",href:"#all-commands",children:"#"}),"All commands"]}),"\n",(0,r.jsx)(s.p,{children:"To view all available CLI commands, run the following command in the project directory:"}),"\n",(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.pre,{className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:"0",lang:"bash",children:(0,r.jsx)(s.code,{children:(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"npx"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" rspack"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" -h"})]})})})}),"\n",(0,r.jsxs)(s.h2,{id:"common-flags",children:[(0,r.jsx)(s.a,{className:"rp-header-anchor","aria-hidden":"true",href:"#common-flags",children:"#"}),"Common flags"]}),"\n",(0,r.jsx)(s.p,{children:"Rspack CLI provides several common flags that can be used with all commands:"}),"\n",(0,r.jsxs)(s.table,{children:[(0,r.jsx)(s.thead,{children:(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.th,{children:"Flag"}),(0,r.jsx)(s.th,{children:"Description"})]})}),(0,r.jsxs)(s.tbody,{children:[(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"-c, --config [value]"})}),(0,r.jsxs)(s.td,{children:["Specify the path to the configuration file, see ",(0,r.jsx)(s.a,{href:"/config/index.html#specify-the-configuration-file",children:"Specify the configuration file"})]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"--configLoader"})}),(0,r.jsxs)(s.td,{children:["Specify the loader to load the config file, can be ",(0,r.jsx)(s.code,{children:"auto"}),", ",(0,r.jsx)(s.code,{children:"jiti"})," or ",(0,r.jsx)(s.code,{children:"native"}),", defaults to ",(0,r.jsx)(s.code,{children:"auto"})]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"--configName"})}),(0,r.jsx)(s.td,{children:"Specify the name of the configuration to use."})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"--env <env>"})}),(0,r.jsxs)(s.td,{children:["Pass environment values to a configuration function. For example, ",(0,r.jsx)(s.code,{children:"--env production --env foo=bar"})]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"--nodeEnv"})}),(0,r.jsxs)(s.td,{children:["Set the value of ",(0,r.jsx)(s.code,{children:"process.env.NODE_ENV"}),", defaults to ",(0,r.jsx)(s.code,{children:"development"})," for ",(0,r.jsx)(s.code,{children:"rspack dev"}),", and ",(0,r.jsx)(s.code,{children:"production"})," for ",(0,r.jsx)(s.code,{children:"rspack build"})," and ",(0,r.jsx)(s.code,{children:"rspack preview"})]})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"-h, --help"})}),(0,r.jsx)(s.td,{children:"Show help information"})]}),(0,r.jsxs)(s.tr,{children:[(0,r.jsx)(s.td,{children:(0,r.jsx)(s.code,{children:"-v, --version"})}),(0,r.jsx)(s.td,{children:"Show version number"})]})]})]}),"\n",(0,r.jsx)(a.Pq,{type:"tip",title:"Tip",children:(0,r.jsxs)(s.p,{children:["\nAll flags in Rspack CLI support the ",(0,r.jsx)(s.code,{children:"camel
1Case"})," and ",(0,r.jsx)(s.code,{children:"kebab-case"}),", for example, both ",(0,r.jsx)(s.code,{children:"--configLoader"})," and ",(0,r.jsx)(s.code,{children:"--config-loader"})," are valid."]})}),"\n",(0,r.jsxs)(s.h2,{id:"rspack-build",children:[(0,r.jsx)(s.a,{className:"rp-header-anchor","aria-hidden":"true",href:"#rspack-build",children:"#"}),"rspack build"]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.code,{children:"rspack build"})," is used to run Rspack build, which will generate the output files in the ",(0,r.jsx)(s.a,{href:"/config/output.html#outputpath",children:"output.path"})," directory."]}),"\n",(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.pre,{className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:"0",lang:"bash",children:(0,r.jsx)(s.code,{children:(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"npx"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" rspack"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" build"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-comment)"},children:" # Read the `rspack.config.*` configuration file by default"})]})})})}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.code,{children:"rspack build"})," can be abbreviated as ",(0,r.jsx)(s.code,{children:"rspack b"}),":"]}),"\n",(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.pre,{className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:"0",lang:"bash",children:(0,r.jsx)(s.code,{children:(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"npx"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" rspack"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" b"})]})})})}),"\n",(0,r.jsxs)(s.p,{children:["Use the ",(0,r.jsx)(s.code,{children:"-c"})," or ",(0,r.jsx)(s.code,{children:"--config"})," flag to specify the configuration file path:"]}),"\n",(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.pre,{className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:"0",lang:"bash",children:(0,r.jsx)(s.code,{children:(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"npx"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" rspack"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" build"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" -c"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" ./your.config.js"})]})})})}),"\n",(0,r.jsx)(s.p,{children:"The complete flags are as follows:"}),"\n",(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.pre,{className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:"0",lang:"txt",children:(0,r.jsxs)(s.code,{children:[(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:"rspack build"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:"Options:"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" --entry entry file [array]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" -o, --outputPath output path dir [string]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" -m, --mode mode [string]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" -w, --watch watch [boolean] [default: false]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" --env env passed to config function [array]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" -d, --devtool set source map style for debugging [string]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" --json [path] emit stats json, optionally to the specified path"})})]})})}),"\n",(0,r.jsxs)(s.h2,{id:"rspack-dev",children:[(0,r.jsx)(s.a,{className:"rp-header-anchor","aria-hidden":"true",href:"#rspack-dev",children:"#"}),"rspack dev"]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.code,{children:"rspack dev"})," is used to run Rspack dev server, which will start a local dev server that will listen for file changes and automatically refresh the browser."]}
1),"\n",(0,r.jsxs)(a.Pq,{type:"info",title:"Required dependency",children:[(0,r.jsxs)(s.p,{children:["\nThe ",(0,r.jsx)(s.code,{children:"rspack dev"})," command requires ",(0,r.jsx)(s.a,{href:"https://www.npmjs.com/package/@rspack/dev-server",rel:"noopener noreferrer",target:"_blank",children:"@rspack/dev-server"})," to be installed. If you haven't installed it yet, run:"]}),(0,r.jsx)(a.ky,{command:"add @rspack/dev-server -D"})]}),"\n",(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.pre,{className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:"0",lang:"bash",children:(0,r.jsx)(s.code,{children:(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"npx"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" rspack"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" dev"})]})})})}),"\n",(0,r.jsxs)(s.p,{children:["Use the ",(0,r.jsx)(s.code,{children:"-c"})," or ",(0,r.jsx)(s.code,{children:"--config"})," flag to specify the configuration file path:"]}),"\n",(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.pre,{className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:"0",lang:"bash",children:(0,r.jsx)(s.code,{children:(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"npx"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" rspack"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" dev"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" -c"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" ./your.config.js"})]})})})}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.code,{children:"rspack dev"})," can be abbreviated as ",(0,r.jsx)(s.code,{children:"rspack serve"})," or ",(0,r.jsx)(s.code,{children:"rspack s"}),":"]}),"\n",(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.pre,{className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:"0",lang:"bash",children:(0,r.jsxs)(s.code,{children:[(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"npx"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" rspack"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" s"})]}),"\n",(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"npx"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" rspack"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" serve"})]})]})})}),"\n",(0,r.jsxs)(s.p,{children:["Use ",(0,r.jsx)(s.code,{children:"--open"})," or ",(0,r.jsx)(s.code,{children:"--no-open"})," to override ",(0,r.jsx)(s.a,{href:"/config/dev-server.html#devserveropen",children:(0,r.jsx)(s.code,{children:"devServer.open"})})," from the CLI without editing your config file:"]}),"\n",(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.pre,{className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:"0",lang:"bash",children:(0,r.jsxs)(s.code,{children:[(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"npx"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" rspack"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" dev"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" --open"})]}),"\n",(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"npx"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" rspack"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" dev"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" --open"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" /my-page"})]}),"\n",(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"npx"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" rspack"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" dev"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" --no-open"})]})]})})}),"\n",(0,r.jsx)(s.p,{children:"The complete flags are as follows:"}),"\n",(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.pre,{className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:"0",lang:"txt",children:(0,r.jsxs)(s.code,{children:[(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:"rspack dev"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:"Options:"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" --entry entry file [array]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" -o, --outputPath output path dir [string]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" -m, --mode mode [string]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" -w, --watch watch [boolean] [default: false]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" --env env passed to config function [array]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" -d, --devtool set source map style for debugging [string]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" --hot enables hot module replacement"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" --port allows to specify a port to use [number]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" --host allows to specify a hostname to use [string]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" --open [value] open browser on server start; pass --no-open to disable, or --open <url> to open a specific URL"})})]})})}),"\n",(0,r.jsxs)(s.h2,{id:"rspack-preview",children:[(0,r.jsx)(s.a,{className:"rp-header-anchor","aria-hidden":"true",href:"#rspack-preview",children:"#"}),"rspack preview"]}),"\n",(0,r.jsxs)(s.p,{children:[(0,r.jsx)(s.code,{children:"rspack preview"})," is used to preview the production build output locally, note that you need to build the output first by running the ",(0,r.jsx)(s.code,{children:"rspack build"})," command."]}),"\n",(0,r.jsxs)(a.Pq,{type:"info",title:"Required dependency",children:[(0,r.jsxs)(s.p,{children:["\nThe ",(0,r.jsx)(s.code,{children:"rspack preview"})," command requires ",(0,r.jsx)(s.a,{href:"https://www.npmjs.com/package/@rspack/dev-server",rel:"noopener noreferrer",target:"_blank",children:"@rspack/dev-server"})," to be installed. If you haven't installed it yet, run:"]}),(0,r.jsx)(a.ky,{command:"add @rspack/dev-server -D"})]}),"\n",(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.pre,{className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:"0",lang:"bash",children:(0,r.jsx)(s.code,{children:(0,r.jsxs)(s.span,{className:"line",children:[(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-function)"},children:"npx"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" rspack"}),(0,r.jsx)(s.span,{style:{color:"var(--shiki-token-string)"},children:" preview"})]})})})}),"\n",(0,r.jsx)(s.p,{children:"The complete flags are as follows:"}),"\n",(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.pre,{className:"shiki css-variables",style:{backgroundColor:"var(--shiki-background)",color:"var(--shiki-foreground)"},tabIndex:"0",lang:"txt",children:(0,r.jsxs)(s.code,{children:[(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:"rspack preview [dir]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:"run the rspack server for build output"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:"Positionals:"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" dir directory want to preview [string]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:"Options:"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" --publicPath static resource server path [string]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" --port preview server port [number]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" --host preview server host [string]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" --open open browser [boolean]"})}),"\n",(0,r.jsx)(s.span,{className:"line",children:(0,r.jsx)(s.span,{children:" --server Configuration items for the server. [string]"})})]})})})]})}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:s}={...(0,i.R)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}c.__RSPRESS_PAGE_META={},c.__RSPRESS_PAGE_META["en%2Fapi%2Fcli.mdx"]={toc:[{id:"all-commands",text:"All commands",depth:2},{id:"common-flags",text:"Common flags",depth:2},{id:"rspack-build",text:"rspack build",depth:2},{id:"rspack-dev",text:"rspack dev",depth:2},{id:"rspack-preview",text:"rspack preview",depth:2}],title:"Command line interface",headingTitle:"Command line interface",frontmatter:{description:"@rspack/cli is the command line tool for Rspack, providing a variety of commands to make working with Rspack easier"}},n.d(s,{default:()=>c})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.