Skip to content
NewNexus 2.0 is here, and it’s open source. Read the launch post

CLI reference

chat

A chat session, the same as Nexus UI's home: the answer streams; a prompt continues the session you used last.

View as Markdown

nexus chat sessions

nexus chat sessions [list] [--all] [--search words] [--limit N]

Your chat sessions, most recent first (--all: archived ones too).

OptionMeaning
--allThe whole catalog, coming-soon models included
--search <words>Only sessions with these words in the title or messages
--limit <N>At most this many (1 to 100)
Examples
nexus chat sessions images chs_… --out shots

nexus chat sessions show

nexus chat sessions show <id>

A session's messages, with the model, cost and sources of each answer.

nexus chat sessions images

nexus chat sessions images <id> [<image>…] [--out dir] [--force]

Save a session's images to files: every question's, or the ones named by id.

OptionMeaning
--out <dir>The directory to save the images in (default: the working directory; made if it is missing)
--forceOverwrite files that are already there
Examples
nexus chat sessions images chs_… --out shots

nexus chat sessions rename

nexus chat sessions rename <id> <title…>

Give a session a title.

nexus chat sessions archive

nexus chat sessions archive <id> [--undo]

Hide a session from the list (--undo brings it back).

OptionMeaning
--undoUndo it: restore an archived session

nexus chat sessions delete

nexus chat sessions delete <id>

Delete a session and its messages.

nexus chat share

nexus chat share <session> [--org | --team T | --people a@x,b@y] [--replace] [--allow-continue]
nexus chat share <session> --to a@x,b@y | --public [--expires 30d] [--include-code]
nexus chat share <session> --private

Share a session as an artifact: a snapshot for your organization, chosen teams or chosen people (again: a new version; --replace revokes the earlier ones).

  • nexus chat share <session> --to a@x,b@y | --public [--expires 30d] [--include-code]: Share it outside your organization, as its settings allow: with named people by email (they sign in with that email to open it) or anyone with the link.
  • nexus chat share <session> --private: Stop sharing a session: revoke every version, so only you can read it.
OptionMeaning
--orgShare with everyone in your organization
--team <T>Share with these teams (slugs, comma-separated) and the teams under them
--people <a@x,b@y>Share with these people in your organization (emails, comma-separated)
--replaceRevoke the session's earlier versions, so only this audience can open it
--allow-continueLet readers continue it in a new private chat of their own
--to <a@x,b@y>Share outside your organization with these people (emails, comma-separated); they sign in with that email to open it
--publicShare with anyone who has the link (unguessable, not indexed by search engines)
--expires <30d>When a public link stops working: 30d, 12h or a number of days
--include-codeKeep an old code session's sources in a share outside your organization (only if your organization allows it)
--privateStop sharing: revoke every version, so only you can read it

nexus chat export

nexus chat export <session> [--md] [--out file]

A session as Markdown, to stdout or a file.

OptionMeaning
--mdAs Markdown (the only format for now)
--out <file>Write it to this file instead of stdout

Generated from the CLI's own command list (nexus help --json), version 0.45.0. nexus help and nexus <command> --help always show your installed version.