Newo CLI command reference

The commands, options, and environment variables of the Newo CLI, grouped by task. Behavior is described for Flow Designer V2 accounts. Run newo [command] --help for one command's flags and examples, and newo help --all for every command, flag, and environment variable in the version you have installed.

Commands marked Yes under Changes the account write to the platform. The rest only read, or only change local files.

Set up and identify the account

CommandWhat it doesChanges the account
newo initAdds the assistant instructions, the five skills, a .env, and a .gitignore to the current folder, and downloads the Agent Development Kit into adk/. Needs no sign-in. --force replaces the instruction and skill files, and --no-adk skips the kit and stays offline.No
newo loginSigns you in through the browser and saves the session in ~/.config/newo-cli/session.json. newo login eu signs in to the EU platform and newo login us to the US one, the default. In a terminal, it then offers the accounts you can use. Waits up to five minutes for the browser.No
newo auth statusShows, offline, whether you're signed in, by browser or API key, for which platform and account, and the next step. Exits with code 1 when you need newo login. --json prints one object.No
newo customersLists the accounts your browser login can open from the CLI, with organization names, and marks the folder's default. With API keys, lists the accounts the keys open. --json prints one object. newo list-customers does the same.No
newo customer switch [customer_idn]Checks that your sign-in can open the account, then saves it as NEWO_DEFAULT_CUSTOMER in the folder's .env. Without an IDN, in a terminal, it lets you pick from the list with the arrow keys.No
newo logoutRevokes the browser session and deletes the session file.No
newo --versionPrints the installed version. -V is the short form. Never checks npm for updates.No
newo profileShows the organization and customer IDN you reach with your login or API key.No
newo or newo --helpShows the setup steps with their status, the common commands, and the list of all commands, on one screen.No
newo help --allPrints the full reference: every command, flag, and environment variable.No

Agent Development Kit

CommandWhat it doesChanges the account
newo adkShows the kit version in adk/, its files, and any local changes. Works offline.No
newo adk updateDownloads the newest kit. Stops while adk/ has local changes, unless you add --force. --ref [branch, tag, or commit] picks a version.No
newo feedbackShows where a report goes: Newo support, or an issue form of the kit. newo feedback [form] fills a form, checks it for private data, and opens it in your browser for you to submit.No

Sync an account with local files

CommandWhat it doesChanges the account
newo pullMirrors the version each project runs into newo_customers/[customer_idn]/projects_v2/, and downloads customer attributes. Keeps local edits. --force replaces every local file that differs from the platform, including edits you haven't pushed.No
newo statusLists local changes against the pulled version.No
newo diffCompares local files and attributes with the platform. --detailed shows the content, and --only projects limits it to project files.No
newo pushWrites added, changed, and deleted project files to a pending version, and sends customer attribute changes to the live account. --publish also publishes what this push wrote.Yes
newo publishPublishes and activates pending versions. Lists the live project attributes it changes first, and asks when any would be overwritten or deleted. --project [project_idn] limits it to named projects.Yes
newo watchPushes local changes as you save. Project files go to the pending version and are never published. Other resources, such as customer attributes, go to the live account. --only projects limits it, and --debounce [ms] sets the delay.Yes

pull, push, and watch accept --only [types], --exclude [types], and --all to select resources: projects, attributes, integrations, akb, and, for pull only, conversations.

Inspect and edit one item

CommandWhat it doesChanges the account
newo get-skill [skill_idn] --project [project_idn] --agent [agent_idn] --flow [flow_idn]Reads one skill from the platform. No pulled files needed.No
newo update-skill [skill_idn] --project [project_idn] --agent [agent_idn] --flow [flow_idn]Changes one skill's model with --model [provider]/[model], or its code with --script [file], in a pending version. --publish publishes the whole version.Yes
newo pull-attributesDownloads customer attributes and the live project attributes.No
newo update-attribute [attribute_idn] --value "[value]"Changes one attribute and keeps its metadata. --project [project_idn] targets a project attribute, and --file [path] reads a long value.Yes
newo create-attribute [attribute_idn] --value "[value]"Creates a customer attribute.Yes
newo list-actionsLists the actions that skill scripts can call, with their parameters.No

Create and delete agents, flows, and skills

These commands edit the pulled project files. Run newo pull first, and newo push afterwards to send the change.

CommandWhat it does
newo create-agent [agent_idn] --project [project_idn]Adds an agent.
newo create-flow [flow_idn] --agent [agent_idn] --project [project_idn]Adds a flow to an agent.
newo create-skill [skill_idn] --flow [flow_idn] --agent [agent_idn] --project [project_idn]Adds a skill. --runner nsl or --runner guidance sets its language.
newo create-event [event_idn] --project [project_idn] --agent [agent_idn] --flow [flow_idn] --skill [skill_idn]Adds an event that starts a skill.
newo create-state [state_idn] --project [project_idn] --agent [agent_idn] --flow [flow_idn]Adds a state field. --scope is user, flow, or global.
newo create-parameter [name] --project [project_idn] --agent [agent_idn] --flow [flow_idn] --skill [skill_idn]Adds a skill parameter.
newo delete-agent, newo delete-flow, newo delete-skillRemove the item's files and declarations. Take the same flags as the matching create command and need --confirm.

Manage projects and registries

CommandWhat it doesChanges the account
newo list-registriesLists the project registries.No
newo list-registry-items [registry_idn]Lists the modules in a registry. --all shows every release.No
newo add-project [project_idn] --item [module_idn]Creates a project linked to a registry module. --version pins a release, and --auto-update follows the latest.Yes
newo create-project [project_idn]Creates an empty project with a pending version.Yes
newo update-project [project_idn]Changes a project's title, description, or registry link. --force-update syncs it from its registry again.Yes
newo metaShows a project, its version, and its customer link.No

Knowledge base and integrations

CommandWhat it doesChanges the account
newo pull-akbDownloads knowledge base articles to newo_customers/[customer_idn]/akb/.No
newo push-akbImports the articles in the local files. Creates articles and never updates or deletes them.Yes
newo pull-integrationsDownloads integrations and connectors to newo_customers/[customer_idn]/integrations/.No
newo push-integrationsUploads integration and connector changes.Yes

Test and read logs

CommandWhat it doesChanges the account
newo sandbox "[message]"Sends a message to an agent through a sandbox connector and prints the reply. --actor [actor_id] continues a conversation.Yes
newo sandbox --list-connectorsLists the running sandbox connectors.No
newo test [scenario.yaml]Runs a scripted multi-turn conversation and checks each reply.Yes
newo conversationsDownloads the history of phone conversations to conversations.yaml.No
newo session [session_id]Shows one conversation with its transcript, thoughts, and system events. --full adds the execution trace.No
newo logsShows execution logs. Filter with --session-id, --event-id, --hours, --from and --to, --level, --type, --flow, --skill, --message, and --name. --follow keeps polling.No

A sandbox chat or a test counts as a change because it runs the real agent. See Test an agent and read its logs with the Newo CLI.

Check skill code

CommandWhat it does
newo lint [paths]Runs static analysis on skill files. Works offline.
newo format [paths]Applies the standard formatting. --check reports without changing files. Put the paths before --check, as in newo format . --check.
newo check [paths]Runs lint and the format check together, for use as a CI gate.

newo lint and newo check exit with code 0 when clean and code 1 when they find a problem. Rules are configured in a .neworc.yaml file at the root of your folder.

Export and import a whole account

CommandWhat it doesChanges the account
newo exportDownloads the whole account as a ZIP archive: projects, attributes, and the knowledge base. Saves to a temp/ folder unless --output [file] sets the path.No
newo import [archive.zip or folder] --confirm-customer [customer_idn]Replaces the account's project set with the archive's. Saves a backup export to temp/ first. --dry-run shows the plan. --confirm-customer takes the customer IDN that newo profile prints.Yes

:::
Warning

newo import deletes every project that isn't in the archive and replaces the customer attributes. Run it with --dry-run first. The backup it saves holds active versions only, so pending versions are lost.

An export archive holds attribute values, which can include secrets. The generated .gitignore doesn't cover the temp/ folder, so keep archives out of git yourself.
:::

Common options

OptionWhat it does
--customer [customer_idn]Picks the account for this command. Overrides NEWO_DEFAULT_CUSTOMER. With a single NEWO_API_KEY, the account is named default.
--jsonFor pull, push, status, diff, and publish: prints one JSON document on stdout and sends progress to stderr. Other commands, such as sandbox, test, logs, and get-skill, have their own JSON output.
--yes, -yAnswers yes to every confirmation.
--force, -fPull: replaces local files that differ from the platform, including unpushed edits. Push and publish: proceeds although the active or pending version changed since the pull.
--unrestrictedChanges the code of framework and extension projects without asking. --yes doesn't turn this on.
--verbose, -vPrints detailed progress, including each authentication step.
--quiet, -qHides progress and the update notice.
--show-secretsPrints secrets unmasked in newo logs and newo update-attribute output.
--help, -hShows help.

Environment variables

Set these in the .env file of your working folder, unless the table says otherwise.

VariableWhat it does
NEWO_DEFAULT_CUSTOMERThe customer IDN that commands use when --customer is left out. newo customer switch sets it. One set in the shell wins over .env.
NEWO_BASE_URLThe platform URL. When it's not set, commands use the platform of your browser login, or https://app.newo.ai with an API key. EU accounts use https://app.eu.newo.ai. When set, it wins over the login, and commands stop if it names a different platform from your login. newo login reads it from the shell only.
NEWO_API_KEYThe API key for one account. Deprecated: use newo login. A configured key turns the browser login off.
NEWO_API_KEYSA JSON array of keys for several accounts, for example ["first_key","second_key"]. Deprecated like NEWO_API_KEY.
NEWO_NO_UPDATE_CHECK1, true, or yes turns off the daily notice of a newer version. It never turns off a required update. NO_UPDATE_NOTIFIER, --quiet, and CI do the same.
NEWO_HTTP_TIMEOUT_MSHow long a request waits with no data before it fails. Default: 120000 (2 minutes). 0 turns the timeout off.
NEWO_HTTP_RETRIESHow many times a read, update, or delete is retried after a transient failure, from 0 to 10. Default: 3.
NEWO_UNRESTRICTED1 applies --unrestricted to every command. Off by default.

Run without a terminal

The CLI asks a question only when it runs in a terminal. An AI assistant, a CI job, or a pipe never waits for an answer:

SituationWhat happens without a terminal
newo publish would overwrite or delete live project attributesStops with exit code 1. Review the list, then pass --yes.
newo push with several accounts and no defaultStops with exit code 1 and lists the accounts. Pass --customer [customer_idn].
newo push, newo watch, or newo update-skill would change framework codeStops with exit code 1. Pass --unrestricted once the change is agreed.

newo push exits with code 1 when any item fails to upload and lists the failed items on stderr. With --json, a failed command prints {"ok": false, "error": {"code", "message"}} and exits with code 1.

The CLI never sets proxy settings (HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, NO_PROXY) or NODE_TLS_REJECT_UNAUTHORIZED from a project .env, so a project can't send your login elsewhere. Set them in the shell.

Updates

About once an hour, the CLI asks npm in the background whether a newer version exists, and remembers the answer in ~/.config/newo-cli/update-status.json. Commands that don't talk to the platform, such as newo --version, newo auth status, newo init, newo adk, newo status, newo lint, newo format, and newo check, never check.

KindWhat happens
RecommendedA newer version is on npm. A command prints A new version of newo is available and the update command on stderr, at most once a day. Output on stdout, including --json, is unchanged.
RequiredThis version was found unsafe and is marked deprecated on npm. Every command that talks to the platform stops with the reason and the update command, and exits with code 1. With --json, the error code is UPDATE_REQUIRED. newo help still works.

To update, run npm install --global newo@latest, or the command the notice prints for how you installed the CLI.


Did this page help you?