Skip to content

Commit eaba5d7

Browse files
feat: astro info --copy flag (#12732)
Co-authored-by: Armand Philippot <[email protected]>
1 parent 3d62ca9 commit eaba5d7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/content/docs/en/reference/cli-reference.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ The following hotkeys can be used in the terminal where the Astro development se
190190

191191
Builds your site for deployment. By default, this will generate static files and place them in a `dist/` directory. If any routes are [rendered on demand](/en/guides/on-demand-rendering/), this will generate the necessary server files to serve your site.
192192

193-
### Flags
193+
<h3>Flags</h3>
194194

195195
The command accepts [common flags](#common-flags) and the following additional flags:
196196

@@ -297,6 +297,14 @@ Adapter none
297297
Integrations @astrojs/starlight (v0.35.3)
298298
```
299299

300+
<h3>Flags</h3>
301+
302+
Use the following flags to customize the behavior of the command.
303+
304+
#### `--copy`
305+
306+
The command will copy the output to the clipboard without prompting.
307+
300308
## `astro preferences`
301309

302310
Manage user preferences with the `astro preferences` command. User preferences are specific to individual Astro users, unlike the `astro.config.mjs` file which changes behavior for everyone working on a project.
@@ -305,7 +313,7 @@ User preferences are scoped to the current project by default, stored in a local
305313

306314
Using the `--global` flag, user preferences can also be applied to every Astro project on the current machine. Global user preferences are stored in an operating system-specific location.
307315

308-
<h3> Available preferences </h3>
316+
<h3>Available preferences</h3>
309317

310318
- `devToolbar` — Enable or disable the development toolbar in the browser. (Default: `true`)
311319
- `checkUpdates` — Enable or disable automatic update checks for the Astro CLI. (Default: `true`)

0 commit comments

Comments
 (0)