Sales

This is the Sales demo. Every visitor shares this company, and it resets every night.

What you change here, everyone sees until the next reset. Email is switched off, and the demo accepts no sign-ups.

Start your own trial
Assistant allowance Start your own trial
SV
Sam de Vries
sam.devries@tidewell-it.example

Sales CLI

API & Agent Access

Install

sales is the command-line tool for Sales. Its commands work with the Sales REST API. It suits people who read their Leads from a terminal, and Agents that run shell commands.

On Linux and macOS, run:

curl -LsSf https://demo.mvdm.io/sales/cli/install.sh | sh

On Windows, run this in PowerShell:

powershell -ExecutionPolicy ByPass -c "irm https://demo.mvdm.io/sales/cli/install.ps1 | iex"

The CLI never updates itself. To upgrade, run the same install line again. sales --version shows the build you have.

Sign in on your own computer

sales login

login opens your browser at Auth, the mvdm.io sign-in service. Sign in, and allow the CLI on the consent page. The consent page warns that the CLI gets all your power and asks which Account it starts in. Then go back to the terminal.

The sign-in works in Sales only; a Personal token (see below) works in every mvdm.io app that offers API & Agent Access. The CLI renews its sign-in by itself. When the sign-in has ended, commands fail with not-signed-in, and you run sales login again.

To end the sign-in everywhere and forget it, run:

sales logout

Sign in on a machine without a browser

On a server over SSH, use a device code:

sales login --device

The CLI prints a link and a code. Open the link on any device, such as your phone, and sign in there. The CLI waits until you have. sales login falls back to the device code on its own when it cannot open a browser.

Use a Personal token on a server or in CI

For unattended jobs, such as a nightly copy of new Leads into your email tool, create a Personal token at API & Agent Access, and put it in the SALES_TOKEN environment variable. The CLI never creates tokens itself.

export SALES_TOKEN=<token>

SALES_TOKEN always wins over a stored sign-in, and sales logout leaves it alone. A Personal token works in every mvdm.io app that offers API & Agent Access, so one token also serves scripts that use other apps.

Who you are and where you work

sales status

status shows who you are, which credential is in use, and the Account your commands land in.

sales accounts list
sales accounts switch

accounts list shows the Accounts you belong to. accounts switch changes the Account your commands land in.

Commands come from the API

Every REST operation is a command. The CLI builds its commands from the host's OpenAPI document when it runs, so a new operation shows up without a new CLI release. That is why this guide lists no commands. sales --help is the reference:

sales --help

It lists every group of Sales commands, among them conversations, which hands a task to Sales's Assistant and reads its answer. Add --help to a group, or to a command in a group, to see its actions and arguments. A command looks like sales <group> <action>.

Output and exit codes

Every command prints JSON on stdout. Errors go to stderr as JSON: the API's error as it came, or a short error of the CLI's own. A script reads stdout, and checks the exit code:

Exit code Meaning
0 Success.
1 Error. Read stderr.
2 Usage mistake. Fix the command line.

Over the per-User rate limit, the CLI waits the time the API asks and tries again, up to three times.

Another way in

If your Agent speaks MCP, it can connect to Sales's MCP server at https://demo.mvdm.io/sales/mcp instead. See the guides for each Agent and Any MCP client. For your own code, see the REST guide.

Are you sure?

This action cannot be reverted.

Leave this page?

Your changes on this form are not saved. If you leave, they are lost.