All apps/Astro CLI

Astro CLI

astro-cli

The Astro CLI is a command-line interface for data orchestration that gets you started with Apache Airflow quickly.

Runs as astro|macOS, Linux, Windows|www.astronomer.io

Command form

ai-draft · 4 tasks · 10 fields

Options shared by every astro command (project root, config, site, base, log level). Use the subcommand tabs for dev and build; add and check are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui astro-cli
Global project optionsExample values, fixed in this page — nothing here reaches a terminal
Basic
Project root
directory
Advanced
Verbose logging
--verbose
TasksEach one presets the form for one job
Verbose run
rootverbose
ParametersOnly these flags are editable in the form
Project root
Folder containing the Astro project.
path
--root
Config file
path
--config
Site URL
url
--site
Base path
Base pathname the site is served from.
string
--base
Verbose logging
boolean
--verbose
Silent
Disable all logging.
boolean
--silent

astro dev

Start dev server

Run the development server. Press Ctrl+C to stop.

Start dev serverExample values, fixed in this page — nothing here reaches a terminal
Basic
Port
integer
Open browser
--open
TasksEach one presets the form for one job
Dev server and open browser
portopen
ParametersOnly these flags are editable in the form
Port
Port to listen on.
integer
--port
Open browser
boolean
--open

astro build

Build site

Build the project and write it to disk.

Build siteExample values, fixed in this page — nothing here reaches a terminal
Basic
Include drafts
--drafts
TasksEach one presets the form for one job
Production build
drafts
ParametersOnly these flags are editable in the form
Include drafts
Include Markdown draft pages in the build.
boolean
--drafts

astro preview

Preview build

Preview the built site locally.

Preview buildExample values, fixed in this page — nothing here reaches a terminal
Basic
Open browser
--open
TasksEach one presets the form for one job
Preview
open
ParametersOnly these flags are editable in the form
Open browser
boolean
--open
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed astro against its version. A form that does not match your version is not offered.