Docs · Reference

NibWP CLI reference

Every NibWP CLI command, flag, file location and exit code, in one place.

Every command, flag and file the NibWP CLI uses. If you are setting it up for the first time, start with connecting from the terminal — this page is the lookup.

TL;DR

The installed command is nibwp. nibwp --help prints this list. Every command accepts --site, --all and --json.

Connecting

CommandWhat it does
nibwp auth login <url>Sign in to a site through your browser and store the connection.
nibwp auth listEvery site connected, with what each may do.
nibwp auth statusWhether a connection is still valid and the site still reachable.
nibwp auth use <profile>Set the site used when you do not pass --site.
nibwp auth logoutRevoke on the site and delete the local copy.

Options for auth login:

FlagEffect
--name <profile>Name this connection. Defaults to the site’s host name.
--scope read,write,manage,files,codeAsk for a specific set of permissions. Defaults to read and write.
--no-openPrint the approval link instead of opening a browser. For servers.
--timeout <ms>How long to wait for the approval. Five minutes by default.

Working with a site

CommandWhat it does
nibwp discover [query]List what the site can do, or rank it against a description of your task.
nibwp describe <ability>What that ability expects, and what it returns.
nibwp run <ability>Run it. Takes --input '<json>', --input @file.json, or --input - to read piped input.
nibwp workflow list | get | activateThe workflows available on that site.
nibwp upload <local> <remote>Send a file to the site through a single-use link.
nibwp doctorCheck the connection end to end. --offline checks only your machine.

Files and repetition

CommandWhat it does
nibwp pull <remote dir> <local dir>Fetch a directory to work on locally, recording what was fetched.
nibwp push <local dir>Send back only what changed. Refuses if anything moved on the site; --force overrides, --dry-run shows the plan.
nibwp tape pullCapture what was done recently into a file. --since 45m, -o file.json.
nibwp tape vars <file>List the values a replay still needs.
nibwp replay <file>Carry out the same steps here. --var k=v, --dry-run, --allow-code, --continue.
nibwp snapshot createSave named post types and settings. --post-type, --options, -o file.json.
nibwp snapshot restore <file>Put them back. --dry-run reports without writing.

Agents and editors

CommandWhat it does
nibwp agent add <client>Write the connection into that editor. --project or --global.
nibwp mcpBridge an assistant that can only talk to local programs over the signed-in connection.
nibwp initWrite an AGENTS.md describing this site into the current folder.
nibwp guide get coreThe guidance an assistant should read before driving the CLI.
nibwp updateInstall the newest release. --check only reports.

Editors agent add can configure: cursor, vscode, claude-code, codex, windsurf, gemini-cli, opencode, cline.

Flags that work everywhere

FlagEffect
--site <profile>Run against one connected site.
--allRun against every connected site, reporting each.
--jsonMachine-readable output, for piping elsewhere.
--quietDrop the progress lines, keep the result.
--help / --versionThe command list, and which release you have.

Where things are kept

WhatWhere
Your connected sites~/.config/nibwp/config.json, or %APPDATA%nibwpconfig.json
Your tokenscredentials.json beside it, readable only by you
Both, somewhere elseSet NIBWP_CONFIG_DIR
Plain HTTP is refusedExcept for your own machine. A token sent unencrypted is readable by everything between you and the site. For an isolated development network, NIBWP_ALLOW_INSECURE_HTTP=1 allows it for a single command.

Exit codes

Useful in a script or a scheduled job.

CodeMeaning
0Everything worked.
1Something failed at runtime — including one site out of several.
2The command was wrong: a missing argument, bad input, unknown option.
3Not connected, or the site rejected the connection.
4The site could not be reached, or answered with something unusable.

Requirements

  • Node.js 20 or newer — the installers check before doing anything.
  • NibWP active on the site, with AI Abilities switched on.
  • Administrator access to that site, to approve the connection.
  • Free and open source — GPL, no runtime dependencies, nothing downloaded when it runs.

Source on GitHub, package on npm.

Work across every site

Fan out, sync a theme, replay a build, take a snapshot.

Several sites at once

Connect your first agent.

Follow the quickstart, or book a demo and we'll walk you through it.