CLI reference

Deploy

Deploys a statically built Sanity studio

usage: sanity deploy [SOURCE_DIR] [--no-build] [--source-maps] [--no-minify] Deploys a statically built Sanity studio Options --auto-updates / --no-auto-updates Enable/disable auto-updates of studio versions --source-maps Enable source maps for built bundles (increases size of bundle) --no-minify Skip minifying built Javascript (speeds up build, increases size of bundle) --no-build Don't build the studio prior to deploy, instead deploying the version currently in `dist/` -y, --yes Unattended mode, answers "yes" to any "yes/no" prompt and otherwise uses defaults Examples sanity deploy sanity deploy --no-minify --source-maps

Was this page helpful?