Editing your website with Claude Code
Build and edit a custom code website locally with an AI coding tool — install the tribenest CLI, clone your site, edit it with Claude Code, and publish, all from your own machine.
If you have a custom code website, the easiest way to build it is the in-browser AI builder — no installs, no terminal. This page covers the optional advanced path: editing that same site on your own computer with an AI coding tool like Claude Code, using the tribenest command-line tool (CLI).
It's the most powerful way to work on your site: you get the real project files, a live local preview, your own editor and tools, and an AI assistant that knows your actual content, media, and products. When you're done, one command builds and publishes it. It's the exact same site and versions as the in-browser builder — just a different way in.
You probably don't need this
This is a more technical workflow — you'll use a terminal and install a couple of tools. Most creators never need it: the in-browser AI builder does everything with no setup, and you can also connect TribeNest to Claude or ChatGPT to edit by chat (see Editing by chat at the bottom). Reach for the local workflow only if you want your own editor, custom tooling, or to do large refactors.
Before you start
You'll need three things:
- A custom code website. Your active website version must be a Custom code site (that's the label shown on the version in your dashboard). If you're on a themed (visual-editor) site, this workflow doesn't apply — use the visual editor.
- Node.js 20.19 or newer (we recommend Node 24). If you don't have it yet, follow Installing Node.js just below — there are copy-paste steps for both Mac and Windows.
- Claude Code installed on your computer. Get it from Anthropic. (Cursor or another agent that supports MCP works too.)
Check your Node version
Run node --version in your terminal. If it prints anything lower than v20.19 — or the command isn't found — install Node first with Installing Node.js. The CLI and the local build both need it.
Installing Node.js
Node.js is the free tool that runs the tribenest CLI and builds your site on your own computer. You only install it once. We use a version manager called nvm, which lets you install exactly the version we recommend — Node 24 — without it clashing with anything else on your machine.
Pick your operating system below, then paste each block into your terminal and press Enter. Run the blocks in order.
Mac
- Install Apple's command line developer tools (skip this if you already have them). Run the command below — if a popup appears, click Install and wait for it to finish:
xcode-select --install- Install nvm and load it into your terminal:
touch ~/.zshrc ~/.bashrc
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
for f in ~/.zshrc ~/.bashrc; do
grep -q 'NVM_DIR' "$f" || printf '\nexport NVM_DIR="$HOME/.nvm"\n[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"\n' >> "$f"
done
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"- Install Node 24 and make it your default:
nvm install 24
nvm alias default 24- Confirm it worked:
node --versionYou should see a version starting with v24.
Paste it exactly as-is
You don't need to know anything about how your terminal works — these commands set everything up for you automatically, whichever terminal your Mac uses. Just paste each block in and press Enter.
Windows
- Install nvm for Windows. Open PowerShell (Start menu → type PowerShell → open it) and run:
winget install CoreyButler.NVMforWindowsNo winget?
If that command isn't recognized, download nvm-setup.exe from the nvm-windows releases page and run the installer instead.
- Close PowerShell, then reopen it as administrator — right-click PowerShell in the Start menu and choose Run as administrator. nvm needs this to switch between Node versions. Now install Node 24 and switch to it:
nvm install 24
nvm use 24- Confirm it worked:
node --versionYou should see a version starting with v24.
'nvm' isn't recognized?
Open a new PowerShell window after installing nvm — the window you ran the installer in won't pick it up until it's reopened.
With Node 24 installed, you're ready for the rest of the guide.
Step 1 — Install the CLI
Everything in this guide happens in a terminal — a plain text window where you type commands and press Enter to run them. You have one built in already:
How to open a terminal
- Mac: press
Cmd + Space, type Terminal, and press Enter. (Or open Applications → Utilities → Terminal.) - Windows: open the Start menu, type PowerShell (or Terminal), and click it.
- Linux: press
Ctrl + Alt + T, or search your apps for Terminal.
A window opens with a blinking cursor. You can type or paste each command from this guide and press Enter to run it.
With the terminal open, install the tool globally by pasting this and pressing Enter:
npm i -g tribenestConfirm it worked:
tribenest --versionYou should see a version number. The command is called tribenest.
Step 2 — Log in
tribenest loginThis opens your browser to TribeNest, where you approve the login with your normal account. When you see "✓ Authorized", return to your terminal — you're logged in. Your access token is saved locally (in ~/.tribenest) so you only do this once per computer.
Browser didn't open?
The terminal also prints a link — just copy it into your browser and approve there.
Step 3 — Clone your website
"Cloning" downloads your site's files to a folder on your computer:
tribenest cloneThe CLI will:
- Ask which profile to use (if you have more than one).
- Ask which custom code website to work on (if you have more than one).
- Create a folder named after your site (for example
mysite_v2) and download everything into it, including your project files and the setup Claude Code needs.
To clone straight into the current folder instead of a new one, run tribenest clone ..
What just got set up
Cloning also writes a CLAUDE.md and a .mcp.json into the folder. Claude Code reads these automatically, so it starts up already knowing your site's rules and connected to your real data.
Step 4 — Preview it locally
From inside the cloned folder, start a live preview:
cd mysite_v2 # the folder tribenest created
tribenest devThis runs your site on your machine and prints a local address (something like http://localhost:3002). Open it in your browser — it updates instantly as you and Claude Code make changes.
Step 5 — Edit with Claude Code
Open the Claude Code desktop app and point it at your cloned folder:
- Launch Claude Code (the desktop app on Mac or Windows).
- Click Open project (or Open folder) on the welcome screen.
- In the file picker, navigate to the folder
tribenest clonecreated in Step 3 — it's named after your site, for examplemysite_v2— select it, and open it.
Not sure where the folder is? Let the terminal show you
Instead of hunting for it, ask your terminal. From inside the folder (the one you cd-ed into in Step 4), run:
- Mac:
open .— this opens the folder in Finder so you can see exactly where it lives. Runpwdto print its full path. - Windows:
start .— this opens the folder in File Explorer. Runcd(on its own) to print its full path.
The path it prints (something like /Users/you/mysite_v2) is the exact location to choose in Claude Code's Open folder picker. On Mac, in that picker you can press Cmd + Shift + G and paste the path to jump straight to it.
Keep the preview running
Leave your tribenest dev terminal open while you work — it keeps the live preview at http://localhost:3002 updating as Claude Code makes changes. You only use Claude Code (the app) to make edits; the terminal just runs the preview.
Once the folder is open, just describe what you want. Because the folder includes the .mcp.json, Claude Code can use TribeNest's tools to work with your real site — not guesses. It can:
- See and use your uploaded media — real image and video URLs from your library.
- Add new media from a link or file.
- Read and change your editable text and images — copy that updates instantly, with no rebuild.
- Look up real product, event, and course IDs so buttons and lists point at the right thing.
- Create an event with ticket tiers in one step (great for migrating an event from somewhere else).
- Check for errors before you publish.
For example, you can say things like:
- "Change the homepage headline to 'Live in Lagos this August' and publish that text."
- "Add a tour section that lists my upcoming events."
- "Use my logo from the media library as the header image."
Claude Code edits the project files (and your live tribenest dev preview updates), or changes content directly through the tools.
Learn what your site can do
For the full list of building blocks (store, memberships, events, forms, and more) and tips on how to get great results from Claude Code, see Custom code — features & best practices.
Step 6 — Publish
When you're happy, publish your changes live:
tribenest publishThis builds your site on your machine, and only if the build succeeds does it upload and deploy it to production. Your live site updates when it finishes.
Fix build errors first
If tribenest publish reports a build error, nothing goes live — your current site stays up. Read the error (or ask Claude Code to fix it), then run tribenest publish again.
Keeping in sync
If you edit from more than one place (say, you also changed something in the dashboard), pull the latest before you keep working:
tribenest pullThis refreshes your folder with the newest files. If you have unsaved local changes it would overwrite, it stops and warns you first — save them with tribenest push, or run tribenest pull --force to overwrite.
To save your local file changes back to TribeNest without publishing:
tribenest pushCommand cheat sheet
| Command | What it does |
|---|---|
tribenest login | Sign in on this computer |
tribenest clone | Download a site to a new folder |
tribenest dev | Run a live local preview |
tribenest push | Save your file changes back (no deploy) |
tribenest pull | Refresh with the latest remote files |
tribenest build | Build the site locally (a dry run of publish) |
tribenest publish | Build locally, then deploy to production |
Editing by chat (no install)
Don't want to install anything? You can connect TribeNest directly to Claude or ChatGPT and edit your site by chatting — no terminal, no CLI. Add TribeNest as a custom connector in your assistant's settings, approve the profile you want it to manage, and ask away. Changes to text and images go live instantly.
What chat editing can do:
- Change copy and images that are already set up as editable on your site.
- Upload media and use it on the site.
- Add events (with ticket tiers) and look up your real products, events, and courses.
What chat editing can't do
The chat connector edits content only — it's more limited than the CLI + Claude Code workflow above:
- No code, layout, or design changes. It can't add new sections or components, restructure pages, or change how the site looks — only update existing content.
- Only editable fields. It can change text and images that were set up as editable. Anything hardcoded in the site's code is out of reach until it's made editable — which needs the CLI + Claude Code path.
- One profile, limited scope. It can only touch the single profile you approved when connecting, and only the actions you granted.
For anything beyond everyday content updates — new pages, design changes, custom features — use the CLI + Claude Code workflow above.
So chat editing is the easiest path for non-technical creators making routine updates; the CLI + Claude Code workflow is for building, restructuring, and full control over the code.
Troubleshooting
'Not a tribenest project directory'
tribenest dev, push, pull, and publish only work inside a cloned folder. Make sure you've cd-ed into the folder tribenest clone created.
tribenest: command not found— the install didn't finish or isn't on your PATH. Re-runnpm i -g tribenest, then open a new terminal window.- The CLI errors about an unsupported Node version — install Node 24 with Installing Node.js.
- Publish fails to build — the error names the file and line. Ask Claude Code to fix it, then publish again. Nothing goes live until the build is clean.
- You cloned the wrong version — just run
tribenest cloneagain in a different folder and pick the right one.
Custom code — tips & best practices
How to get great results building a custom code TribeNest site — with the in-browser AI builder or Claude Code. What the building blocks can do, how real product, event, and media data is used, editable content, theming, and safe publishing.
Publishing your website
Push a website version live, manage your version history, and switch between versions when you need to.