# nesly CLI

Every command, its flags and what it prints.

## Quick start

<table class="w-full border-collapse text-sm"><tbody><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly login</td><td class="py-2">sign in (opens the console)</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly deploy --yes</td><td class="py-2">build and publish this directory (creates the project)</td></tr></tbody></table>

Later, `nesly link <project>` points this directory at an existing project.

## Account

<table class="w-full border-collapse text-sm"><tbody><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly login</td><td class="py-2">Sign in with the device flow and store the token.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly whoami</td><td class="py-2">Show the signed-in account and which API is in use.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly logout</td><td class="py-2">Remove the stored credentials from this machine.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly token create &lt;name&gt;</td><td class="py-2">Create an access token for CI (shown once).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly token list</td><td class="py-2">List your access tokens and when they were last used.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly token revoke &lt;id&gt;</td><td class="py-2">Revoke a token immediately.</td></tr></tbody></table>

## Projects

<table class="w-full border-collapse text-sm"><tbody><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly new [template] [dir]</td><td class="py-2">Start from a template (no argument lists the gallery).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly project create &lt;name&gt;</td><td class="py-2">Create a project and print its address.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly project list</td><td class="py-2">List your projects.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly project delete &lt;name&gt; --yes</td><td class="py-2">Delete a project, its deployments and its addons.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly project info</td><td class="py-2">Everything about one project on a single screen: address, what is live, domains, databases.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly project rename &lt;project&gt; &lt;new-name&gt;</td><td class="py-2">Change a project's name. Its address does not change, so no link breaks.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly project transfer &lt;project&gt; --to &lt;account&gt; --yes</td><td class="py-2">Transfer a project to another account you belong to. The site stays up.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly link &lt;project&gt;</td><td class="py-2">Link this directory to a project (writes .nesly/project.json).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly open</td><td class="py-2">Open the project's URL in your browser.</td></tr></tbody></table>

## Deploying

<table class="w-full border-collapse text-sm"><tbody><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly deploy</td><td class="py-2">Build and publish the current directory; prints the live URL.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly deploy --preview</td><td class="py-2">Deploy to an address of its own; the live site is left exactly as it is.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly deploy https://github.com/owner/repo --yes</td><td class="py-2">Deploy a public git repository by URL (also owner/repo, .../tree/&lt;branch&gt;, any https clone URL; --branch, --commit). The platform clones it: nothing is cloned or uploaded from your machine. A private repository goes through `git connect`.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly deploy --prod</td><td class="py-2">Deploy to the live site. This is what a deploy does anyway; the flag says so in a script.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly deploy --yes</td><td class="py-2">Same, creating and linking the project if it does not exist (the second quick-start step).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly deploy --dockerfile deploy/Dockerfile</td><td class="py-2">Build the Dockerfile you name (relative to the build root) instead of ./Dockerfile. [build] dockerfile in nesly.toml says the same for every deploy.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly deploy --root apps/web</td><td class="py-2">Build a sub-directory of the directory you deploy: a monorepo's app. [build] root in nesly.toml says the same for every deploy.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly deploy --temporary --dir dist</td><td class="py-2">Publish a static site with no account: live at once, deleted after an hour unless claimed. Prints a claim token and the URL last. Containers are refused (exit 2); 3 a day per address.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly claim &lt;token&gt;</td><td class="py-2">After login: move a temporary project into your account so it stays (a token works once).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly deploy --detach --yes --json</td><td class="py-2">Start the deployment and return at once with its id (state queued or building) and, for a production deploy, the address it will answer at; the platform keeps building.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly wait &lt;deployment-id&gt; --timeout 30m</td><td class="py-2">Wait until the deployment is ready or has ended (failed, cancelled, superseded), then print the same result deploy does. Exit 0 when ready, 1 otherwise. When --timeout runs out the exit code is 1 with reason WAIT_TIMEOUT and the deployment keeps running; wait again.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly deploy cancel &lt;deployment-id&gt;</td><td class="py-2">Stop a queued or in-progress build before it goes live (`cancel &lt;id&gt;` is the same command). The status becomes cancelled, not failed. Ctrl-C on a waiting deploy does not cancel it: the platform keeps building.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly redeploy &lt;deployment-id&gt; --yes</td><td class="py-2">Start a new build from the same source as an existing deployment.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly ls</td><td class="py-2">List deployments, newest first, with their ids.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly inspect &lt;deployment-id&gt;</td><td class="py-2">Status, tier, failure reason and URLs for one deployment.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly rollback [deployment-id]</td><td class="py-2">Repoint traffic at a previous deployment, instantly; with no id, the release before the live one.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly deploy --percent 10</td><td class="py-2">Give the new release a tenth of your visitors; the rest stay on the one that is live.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly rollout</td><td class="py-2">How the two releases are doing: the share each has, what it served, what failed.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly rollout set 50</td><td class="py-2">Change how much of your traffic the new release takes (1-99).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly rollout promote</td><td class="py-2">Give the new release everything. You can still roll back to the one it replaced.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly rollout abort</td><td class="py-2">Send every visitor back to the release that is live. It keeps its address and its logs.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly maintenance on</td><td class="py-2">Show visitors a page instead of the site — every address, previews included.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly maintenance on --message "..."</td><td class="py-2">Say it in your own words, in your visitors' language.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly maintenance off</td><td class="py-2">Serve the site again.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly maintenance</td><td class="py-2">Whether the page is up, and how long it has been.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly logs</td><td class="py-2">What your application wrote, including after it stopped running (kept for 7 days).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly logs --follow</td><td class="py-2">Stream build and runtime output.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly ps</td><td class="py-2">Every process this project runs, whether it is running, and how much CPU and memory it is using against what it is allowed.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly logs --worker &lt;name&gt;</td><td class="py-2">Stream one background process instead of the server.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly logs drains add &lt;url&gt;</td><td class="py-2">Forward everything your application writes to your own log system, signed.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly logs drains list</td><td class="py-2">Where this project's logs go, and whether they are arriving.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly logs drains test &lt;id&gt;</td><td class="py-2">Send one line now and see what your receiver answered.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly traffic</td><td class="py-2">Which routes your project served, and which of them failed.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly traffic --sort errors</td><td class="py-2">Rank routes by how many requests failed inside your application.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly traffic failures</td><td class="py-2">The individual failed requests: the exact status, when, and how long it took.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly traffic failures --status 502</td><td class="py-2">Only the requests where your application could not be reached.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly scan</td><td class="py-2">Known vulnerabilities in the image your deployment runs: the package, the version you have, and the version that fixes it. Findings that hold deploys back (a critical one with a published fix, in a package your own lockfile pins) are marked; accepted ones stay listed, marked accepted.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly security accept &lt;ID&gt;[,&lt;ID&gt;]</td><td class="py-2">Accept the findings a deploy was held back for, so deploys go through. Exact ids only. Recorded for the project under your name; `--reason` is an optional note.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly security accepted</td><td class="py-2">The findings accepted for the project, who accepted them and when.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly security revoke &lt;ID&gt;</td><td class="py-2">End an acceptance: deploys are held back for the finding again.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly deploy --accept-vulnerability &lt;ID&gt;[,&lt;ID&gt;]</td><td class="py-2">Accept exactly those findings for the project and deploy in the same step (also on redeploy).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly scan --min-severity high</td><td class="py-2">Only the findings at that severity or above. The totals still describe the whole image.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly diagnose</td><td class="py-2">Explain a failed deployment: findings, missing env vars, the fix.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly mcp setup</td><td class="py-2">Connect the AI assistants installed here, so one can deploy and read logs for you.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly mcp remove --client &lt;name&gt;</td><td class="py-2">Disconnect an assistant again (`--all` for every one, `--dry-run` to look first).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly mcp</td><td class="py-2">Serve the platform as MCP tools on stdio, for MCP clients.</td></tr></tbody></table>

## Builds

<table class="w-full border-collapse text-sm"><tbody><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly init</td><td class="py-2">Detect the framework here and write nesly.toml.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly init --agents-md</td><td class="py-2">Also create an AGENTS.md that tells an AI assistant how to deploy and what is not its to change; only a new file, never over an existing one.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly build show</td><td class="py-2">Show the build settings and what this directory would build.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly build set --output dist</td><td class="py-2">Change a build setting (root, install, command, output, start).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly build clear [field...]</td><td class="py-2">Return a setting to nesly.toml and detection.</td></tr></tbody></table>

## Protecting your site

<table class="w-full border-collapse text-sm"><tbody><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly protect show</td><td class="py-2">Whether a rate limit is set, and whether it is being applied.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly protect set --per-minute 600 --burst 100</td><td class="py-2">Limit how quickly one visitor address may load the site. Off by default; the platform never limits your visitors on its own.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly protect off</td><td class="py-2">Remove the limit.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly protect countries --allow TR</td><td class="py-2">Serve the site only in the countries you list. Visitors whose country cannot be determined are always served.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly protect countries --block RU,CN</td><td class="py-2">Serve everyone except the countries you list.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly protect countries --off</td><td class="py-2">Remove the country rule.</td></tr></tbody></table>

## Deploy hooks

<table class="w-full border-collapse text-sm"><tbody><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly hooks create "contentful, production"</td><td class="py-2">Make a URL that rebuilds this project. It is shown once; paste it into the system that should trigger the build.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly hooks ls</td><td class="py-2">The project's hooks, how many builds each has started, and when it last fired.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly hooks rm &lt;id&gt; --yes</td><td class="py-2">Remove one. Its URL stops working immediately.</td></tr></tbody></table>

## Scheduled jobs

<table class="w-full border-collapse text-sm"><tbody><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly cron add nightly --schedule "0 3 * * *" -- php artisan schedule:run</td><td class="py-2">Run a command inside your application on a clock. Add --timezone to set it in your own time.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly cron ls</td><td class="py-2">The schedules on this project and when each one runs next.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly cron run &lt;name&gt;</td><td class="py-2">Run a schedule now, without waiting for its next time, and print what it printed.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly cron run &lt;name&gt; --detach</td><td class="py-2">Start it and return, instead of waiting for it to finish.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly cron runs &lt;name&gt;</td><td class="py-2">The recent runs, with how long each took and what it exited with.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly cron logs &lt;name&gt;</td><td class="py-2">What the most recent run printed; --run reads an older one.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly cron pause &lt;name&gt;</td><td class="py-2">Stop it firing without losing the schedule.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly cron resume &lt;name&gt;</td><td class="py-2">Start firing again.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly cron rm &lt;name&gt;</td><td class="py-2">Remove the schedule.</td></tr></tbody></table>

## Configuration

<table class="w-full border-collapse text-sm"><tbody><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly env set KEY=VALUE</td><td class="py-2">Set variables; they apply to the next deployment.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly env set KEY</td><td class="py-2">Read the value from standard input instead — a secret written as an argument is visible to anyone who can list processes, and your shell keeps it in its history.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly env set --from-file .env</td><td class="py-2">Import KEY=VALUE lines from a file, the way another platform exported them.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly env set KEY=V --env preview</td><td class="py-2">Set a value for one environment only; it wins over the general one.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly env ls [--reveal]</td><td class="py-2">List variables; values are hidden unless --reveal.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly env ls --env preview</td><td class="py-2">Show what a preview actually resolves to.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly env rm KEY [--env preview]</td><td class="py-2">Remove a variable, everywhere or from one environment.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly env share KEY --with preview</td><td class="py-2">Let previews use production's value for KEY, on purpose.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly auth protect</td><td class="py-2">Close this project's addresses to everyone but your team, at the edge, before your app sees a request.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly auth allow ada@client.com</td><td class="py-2">Let somebody outside your team in; a whole domain works too (@client.com).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly auth clear</td><td class="py-2">Remove the sign-in requirement.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly auth status</td><td class="py-2">Whether the gate is on, and who may pass it.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly auth provider set --kind oidc --issuer https://accounts.google.com --client-id ... --client-secret ...</td><td class="py-2">Sign your visitors in with your own Google, Microsoft, OIDC or GitHub app. Your application writes no auth code — it reads X-Nesly-User-Id / Email / Name from the request.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly auth provider show</td><td class="py-2">Which provider a project uses, and the one redirect URI to register with it.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly auth provider clear</td><td class="py-2">Go back to platform sign-in.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly protect preview set --password ...</td><td class="py-2">Ask for a password before anyone opens your preview addresses.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly protect preview token</td><td class="py-2">Create a token so CI can reach a protected preview; shown once.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly protect preview off</td><td class="py-2">Open preview addresses to anyone with the link again.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly protect ip block &lt;addr|range&gt;</td><td class="py-2">Block one address or range; allow does the opposite.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly protect rule block --path /wp-admin/*</td><td class="py-2">Block requests by what they ask for rather than where they come from — a path, a header, or the client's name.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly protect rule ls</td><td class="py-2">The request rules on this project, in the order they apply.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly activity</td><td class="py-2">Who did what in this account, denied attempts included.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly bisect --good X --bad Y -- &lt;cmd&gt;</td><td class="py-2">Find which release broke something; your command decides.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly certs add --cert ... --key ...</td><td class="py-2">Serve your own certificate on one of your domains.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly deploy --image ghcr.io/...</td><td class="py-2">Deploy an image you already built; nothing is uploaded or built.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly registry set ghcr.io --username USER --password-stdin --yes</td><td class="py-2">Store a pull login for a private third-party registry used by deploy --image. Password from stdin or --password-file.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly registry ls</td><td class="py-2">List saved private-registry hosts (passwords are never shown).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly registry rm ghcr.io --yes</td><td class="py-2">Remove a saved private-registry pull login.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly logs --request req_...</td><td class="py-2">Only the log lines mentioning one request.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly run --tty -- bash</td><td class="py-2">Open a shell in a new container from the deployment's image.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly env pull [file]</td><td class="py-2">Write the variables to a local .env — real secrets, keep it out of git.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly env get KEY</td><td class="py-2">Print one value and nothing else, for scripts.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly env run -- &lt;cmd&gt;</td><td class="py-2">Run a local command with the project's variables, writing nothing to disk.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly addon add postgres</td><td class="py-2">Attach a managed PostgreSQL database (injects DATABASE_URL).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly addon add mysql</td><td class="py-2">Attach a managed MySQL database (injects DATABASE_URL; Laravel DB_* derived).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly addon add mssql</td><td class="py-2">Attach a managed SQL Server database (also injects ConnectionStrings__Default for .NET).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly addon add valkey</td><td class="py-2">Attach a Redis-compatible key-value store (injects REDIS_URL and VALKEY_URL).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly addon add bucket</td><td class="py-2">Attach an S3-compatible object-storage bucket (injects AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_ENDPOINT_URL, AWS_BUCKET).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly fix dsn [--yes]</td><td class="py-2">Point a database connection string written for localhost at the project's own variable. Prints the diff; --yes changes the files.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly fix show [--deployment id]</td><td class="py-2">Print the connection-string change a deployment's build made on its own copy of your code.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly proxy</td><td class="py-2">Open the project's database on a local port, for TablePlus, DBeaver or any tool you already use.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly db</td><td class="py-2">Open a database prompt using the client installed on this machine (psql, sqlcmd).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly addon ls</td><td class="py-2">List attached addons.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly addon rotate postgres --yes</td><td class="py-2">Rotate credentials without deleting data; redeploy so the app picks up the new env.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly addon rm postgres --yes</td><td class="py-2">Detach an addon.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly backup create</td><td class="py-2">Copy the project's database now (nightly copies happen anyway).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly backup ls</td><td class="py-2">List backups, newest first, with sizes.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly backup restore &lt;id&gt; --yes</td><td class="py-2">Replace the database's contents with that copy.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly backup download &lt;id&gt;</td><td class="py-2">Download the archive; pg_restore reads it anywhere.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly run -- &lt;cmd&gt;</td><td class="py-2">Run a command in the deployed image; exits with its exit code.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly domain add &lt;fqdn&gt;</td><td class="py-2">Add a custom domain (root domains get A records) and print what to create.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly domain delegate &lt;fqdn&gt;</td><td class="py-2">Manage the domain's DNS here: prints the nameservers to set at your registrar, and after that you create no records at all.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly domain verify &lt;fqdn&gt;</td><td class="py-2">Check the DNS records now instead of waiting for the next automatic round.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly domain verify &lt;fqdn&gt; --wait</td><td class="py-2">Keep checking until the domain is live — what you want right after creating the records.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly domain ls</td><td class="py-2">List domains, their status, and any release they are pinned to.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly dns ls &lt;fqdn&gt;</td><td class="py-2">List DNS records in a zone whose nameservers point here (after domain delegate + verify).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly dns add &lt;fqdn&gt; --type TXT --name mail --value "…"</td><td class="py-2">Create or update one DNS record (A, AAAA, CNAME, TXT, MX). Platform records that keep the site online cannot be overwritten.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly dns rm &lt;fqdn&gt; --type TXT --name mail --yes</td><td class="py-2">Delete DNS records of that type and name. Platform A/challenge records cannot be removed.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly domain pin staging.example.com &lt;deployment-id&gt;</td><td class="py-2">Make one address serve a specific release while every other address follows new deployments.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly domain unpin staging.example.com</td><td class="py-2">Let the address follow whatever is live again.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly certs</td><td class="py-2">The HTTPS certificate each of your addresses actually serves, and when it expires.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly usage</td><td class="py-2">Requests, egress and build time for the last 30 days.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly limits</td><td class="py-2">What your plan allows and how much of it you have used.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly egress</td><td class="py-2">Shared outbound IP addresses for bank and payment-gateway allow lists.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly status</td><td class="py-2">Active platform notices (shared engine maintenance). Empty means none. Not project maintenance.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly operator notices ls</td><td class="py-2">Operator: list platform notices (requires operator grant).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly operator notices publish --title T --body B --yes</td><td class="py-2">Operator: publish a tenant-visible notice. Optional --severity and --engine.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly operator notices resolve ID --yes</td><td class="py-2">Operator: hide a notice from tenants.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly account ls</td><td class="py-2">The accounts you can work in, and which one commands act on.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly account use &lt;name&gt;</td><td class="py-2">Work in one of them; remembered until you change it or sign in again.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly team ls</td><td class="py-2">Who is in this account, their role, and who has not signed in yet.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly team invite &lt;email&gt; --role member</td><td class="py-2">Invite a user; they join when they sign in with that address.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly team invite &lt;email&gt; --project shop</td><td class="py-2">Give a user one project instead of the account. They see nothing else here.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly team ls --project shop</td><td class="py-2">Who was given that one project.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly team remove &lt;email&gt;</td><td class="py-2">Remove access, or withdraw an invitation. Their tokens stop working too.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly team remove &lt;email&gt; --project shop</td><td class="py-2">Take away that one project.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly team leave</td><td class="py-2">Give up your own access to the account you are working in.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly account export</td><td class="py-2">Download everything the platform holds about your account.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly rm &lt;deployment-id&gt;</td><td class="py-2">Remove one deployment and the files it published.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly account notifications ls</td><td class="py-2">The messages we sent you, and whether they arrived.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly account notifications show</td><td class="py-2">Which messages reach you right now.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly account notifications set</td><td class="py-2">Choose which messages reach you, and in which language.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">nesly account close --confirm &lt;email&gt; --yes</td><td class="py-2">Close the account and destroy everything in it.</td></tr></tbody></table>

## Flags on every command

<table class="w-full border-collapse text-sm"><tbody><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">--project &lt;name&gt;</td><td class="py-2">Act on this project instead of the linked one.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">--dir &lt;path&gt;</td><td class="py-2">Use another directory as the project root (default: .).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">--json</td><td class="py-2">Print exactly one JSON object on stdout — for scripts and agents.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">--yes</td><td class="py-2">Confirm destructive actions and create a missing project.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">--api &lt;host:port&gt;</td><td class="py-2">Point at another platform (or set NESLY_API).</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">--account &lt;name&gt;</td><td class="py-2">Work in one of your other accounts for this command only.</td></tr></tbody></table>

## Environment variables

For CI: create a token with `nesly token create "github actions"`, store it as a secret, and the pipeline deploys as you — with your role in the team. Leave the team and the token stops working.

<table class="w-full border-collapse text-sm"><tbody><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">NESLY_TOKEN</td><td class="py-2">An access token. Set it in CI and every command uses it — no browser sign-in.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">NESLY_API</td><td class="py-2">The platform API address, when it is not the default.</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">NESLY_ACCOUNT</td><td class="py-2">The account a pipeline works in, when it is not your own.</td></tr></tbody></table>

## Exit codes

Stable, so scripts can branch on them. Errors go to stderr; results go to stdout.

<table class="w-full border-collapse text-sm"><tbody><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium tabular-nums text-neutral-900 dark:text-neutral-100">0</td><td class="py-2">success</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium tabular-nums text-neutral-900 dark:text-neutral-100">1</td><td class="py-2">error</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium tabular-nums text-neutral-900 dark:text-neutral-100">2</td><td class="py-2">usage error (also: the packed source is over the upload limit; the message names the heaviest directories and what to put in .neslyignore)</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium tabular-nums text-neutral-900 dark:text-neutral-100">3</td><td class="py-2">not signed in, or not allowed</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium tabular-nums text-neutral-900 dark:text-neutral-100">4</td><td class="py-2">not found</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium tabular-nums text-neutral-900 dark:text-neutral-100">5</td><td class="py-2">conflict (already exists, wrong state)</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium tabular-nums text-neutral-900 dark:text-neutral-100">6</td><td class="py-2">approval pending: the action waits for a person's phone; repeat the command with the --approval number it prints</td></tr></tbody></table>

## Progress stream

With `--json` a deploy writes its progress on stderr, one JSON object per line, and nothing else. stdout stays the one result object.

```
{"step":"build","state":"running","at":"2026-11-18T01:00:01.2Z","detail":"resolving source and starting build"}
{"step":"build","state":"done","at":"2026-11-18T01:00:41.9Z","detail":"","elapsed_s":40.7}
```

Keys: `step`, `state` (`running`, `done` or `failed`),`at` (UTC time), `detail` (text) and, on a `done` or `failed`line, `elapsed_s`: the measured seconds since that step's first line. There is no percentage: nothing measures one. A step is written only when something happened for it, so a step that did not apply (no push for a static site) is absent, never faked. Without `--json` the same events are shown as the steps a person reads.

<table class="w-full border-collapse text-sm"><tbody><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">source</td><td class="py-2">what the command was given: a directory, an image or a repository; for a directory also each upload part</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">detect</td><td class="py-2">the platform's detection line ("detected: &lt;language&gt; (&lt;file&gt; at &lt;dir&gt;), reason: …") or its build plan line ("build plan: …"); a deploy of a ready-made image makes no plan, so there is none</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">preflight</td><td class="py-2">the start-rule advice from the server (one detail per line, done when the build goes on) and a refusal before the build; a passing check with no advice logs nothing, so nothing is written</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">envhint</td><td class="py-2">written only when the code reads a variable only an addon provides and the project lacks it; the line names the `nesly addon add` that fixes it</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">build</td><td class="py-2">the platform started building</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">push</td><td class="py-2">the built image is being pushed to the registry, then pushed; static sites have no push</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">deploy</td><td class="py-2">the platform is starting the new revision</td></tr><tr class="border-b border-neutral-200 align-top dark:border-neutral-800"><td class="whitespace-nowrap py-2 pr-6 text-[13px] font-medium text-neutral-900 dark:text-neutral-100">ready</td><td class="py-2">the deployment is live; the detail is the URL</td></tr></tbody></table>

## Output contract

Without `--json` the **last line** of stdout is the address:`URL: https://…`. What to do next is printed on stderr, ahead of it.

With `--json`, a successful `deploy` prints one object (the MCP tool`deploy_project` returns the same one):`deployment_id`, `project`, `url`, `state` (always`ready`), `elapsed_s` and, when the image reference pins one,`image_digest`. More keys may appear; none of these is removed. A failure prints one object with `error`, `exit_code` (the process exit code) and, when known,`reason`, `next` (the command that moves forward) and, for a plan limit,`upgrade_url`. Both are JSON Schemas:[/schema/cli-deploy-success.json](/schema/cli-deploy-success.json) and[/schema/cli-error.json](/schema/cli-error.json).

`deploy --detach` prints `deployment_id`, `project`, `state`(`queued` or `building`), `next` and, for a production deploy,`url`. `wait <id>` prints the success object when the deployment is ready and an error object (exit code 1) when it ended without going live or when`--timeout` ran out: that one has `reason` `WAIT_TIMEOUT` and the deployment keeps running.

## Scripting and agents

With `--json` every command prints one object on stdout and nothing else; progress and logs stay on stderr.

```
nesly deploy --json | jq -r .url
```

---
Canonical: https://nesly.net/docs/cli/
Markdown: Accept: text/markdown on the HTML URL, or replace the trailing slash with .md
