Skip to main content
The newly CLI lets you pull your project’s backend code, deploy it, and manage logs, secrets, and the database from your terminal.
The CLI works with Liquid Backend projects. Run newly stack to check if a project is supported.

Install

Requires Node ≥ 20.

Quick start

Auth

Re-run newly login when a command reports your session has expired.

Project linking

Commands target the project linked to the current directory, so you don’t pass --project every time.
  • newly pull <project-id> and newly create link automatically.
  • newly link <project-id> links a directory without downloading code.
  • Pass --project <id> to any command to override the link.

Dev vs prod deploys

newly deploy --env prod deploys the project’s committed code, not your local files. Push your changes into the project before deploying to prod.
Prod actions prompt for confirmation. Pass --yes to skip it in scripts.

Commands

newly pull [project-id]

Download the project code into the current directory and link it.

newly create [name]

Create a new backend-only project here, scaffold backend/, and link the directory. Provisions the dev backend by default. Run in a directory with no backend/ and no existing link. Link the current directory to a project without downloading code.

newly status

Show dev and prod status, service URLs, deployed SHA, and last error. Accepts --project <id>.

newly stack

Show which backend stack the project uses and whether it’s CLI-deployable. Accepts --project <id>.

newly up

Provision the backend (if needed) and deploy.

newly deploy

Deploy the backend.

newly logs

Tail backend service logs. Dev only.

newly secrets list

List the secret keys set for a service (names only). Dev only. Accepts --service <api|auth> (default api) and --project <id>.

newly secrets set <key> <value>

Set a backend secret. Dev only. Redeploy to apply. Accepts --service <api|auth> (default api) and --project <id>.

newly db url

Print a readonly Postgres URL for the backend database. Dev only. Accepts --project <id>.

Files