Newo CLI

The Newo CLI lets you inspect, test, and change the agents in a Newo account from a terminal, or by talking to an AI coding assistant such as Claude Code, Codex, or Gemini CLI. Work that takes several Builder screens, such as changing a scenario, checking an attribute, or reading a conversation log, becomes one request to an assistant that knows the platform and its rules.

The CLI is the npm package newo. It needs Node.js 22.12 or later and a Newo login that can manage the account. You sign in once in the browser with newo login, and no API key is needed. API keys still work as a fallback, but they are deprecated.

How it works

  • It mirrors an account as files: newo pull downloads the account's projects, agents, flows, skills, and attributes into a local folder. You or your assistant edit those files, and newo push sends back only what changed.
  • It teaches an assistant the platform: newo init adds an instructions file, five skills, and Newo's Agent Development Kit to the folder. An assistant opened there knows how the platform fits together, which commands only read, and which commands change a live account.
  • It shows what happened: the CLI reads conversation transcripts, single sessions, and the execution logs of every skill, model call, and event. It also chats with an agent through the sandbox.

The CLI and the Builder edit the same account. A change made in one shows up in the other.

What an assistant can do

AreaExamples
InspectRead projects, agents, flows, skills and their code, customer and project attributes, the knowledge base, and integrations. Explain from the logs why an agent answered the way it did.
ChangeChange settings through attributes, edit the account's own skills, flows, and prompts, create agents, flows, skills, and events, update the knowledge base, and publish the result.
TestChat with an agent in the sandbox, run scripted multi-turn tests, and read the logs of each turn.

An assistant can't place or answer phone calls. The sandbox is a chat, so to test voice, SMS, or email you make a real call or send a real message, and the assistant reads its logs afterwards. It also can't reach an account that your login, or its API key, doesn't open.

The five skills

newo init installs five skills. The assistant loads the one that fits the task.

SkillWhat it covers
newo-setupInstalling the CLI, connecting an account, and fixing authentication problems.
newoWhat the assistant can and can't do, and which command fits a task.
newo-developChanging attributes, skills, flows, and the knowledge base, then pushing and publishing.
newo-testChatting with an agent in the sandbox, running scripted tests, and reading logs and transcripts.
newo-scenariosWriting and polishing intent types, scenarios, and procedures in the Workflow Builder.

The Agent Development Kit

newo init also downloads Newo's Agent Development Kit (ADK) into an adk/ folder. The ADK describes how a partner delivers an agent for a business, from requirements through build, test, and launch to operation. It holds playbooks, industry pages, the reference of every setting, and a skill for each delivery task, such as build-agent and run-tests. Those skills appear in the assistant's skill folders next to the five above.

The adk/ folder is a read-only copy. newo adk shows which version you have, and newo adk update gets the newest one. To suggest a change to the kit, run newo feedback. Add --no-adk to newo init to skip the download.

Safeguards

  • Project changes wait for you: on a Flow Designer V2 account, newo push writes project files to a pending version. Agents keep running the active version until you run newo publish. Customer attribute changes are the exception: they take effect when pushed.
  • Publishing shows its impact first: before it activates a version, newo publish lists the live project attributes it overwrites, adds, or deletes, and asks you to confirm when anything would be overwritten or deleted.
  • Shared code is protected: on a Flow Designer V2 account, newo push, newo watch, and newo update-skill ask before they change the code of a framework or extension project such as NAF, NAC, Outbound, Lead Nurturing, or Food Order. You customize those through attributes.
  • The assistant asks first: its instructions tell it to get your go-ahead before any command that changes an account, and to name the account it's about to change.
  • Secrets stay out of sight: newo login keeps its session in your home folder, readable only by you, so no key sits in the project. Each command gets a short-lived token for the account it works on. If you use an API key instead, it lives in a private .env file that git ignores. The CLI masks keys and credentials in logs, attribute output, and diffs.
  • Unsafe versions stop: when a CLI version is found unsafe and marked deprecated on npm, it refuses every command that talks to the platform until you update. A newer version is announced at most once a day.

In this section


Did this page help you?