Skip to main content
Deals represent revenue opportunities in your pipeline. Each deal has a stage, value, and optional links to contacts and companies. Use these commands to create, update, and move deals through your pipeline.

moss deal list

List deals with optional filtering.
moss deal list
moss deal list --stage qualified --min-value 10000
moss deal list --owner-id me
OptionRequiredDescription
--page <n>NoPage number
--per-page <n>NoItems per page
--sort <field>NoSort field (name, value, expected_close, created_at)
--order <dir>NoSort order (asc or desc)
--q <query>NoFull-text search query
--stage <stage>NoFilter by stage (lead, qualified, proposal, negotiation, won, lost)
--company-id <id>NoFilter by company
--contact-id <id>NoFilter by linked contact
--owner-id <id>NoFilter by owner (UUID or "me" for current user)
--min-value <n>NoMinimum deal value
--max-value <n>NoMaximum deal value
--tag <name>NoFilter by tag name

moss deal show

Show details for a single deal.
moss deal show --id deal_abc123
OptionRequiredDescription
--id <id>YesDeal ID

moss deal create

Create a new deal.
moss deal create \
  --name "Acme Corp - Enterprise" \
  --value 50000 \
  --stage lead \
  --company-id cmp_abc123 \
  --owner-id me
OptionRequiredDescription
--name <name>YesDeal name
--company-id <id>NoCompany ID
--stage <stage>NoStage: lead, qualified, proposal, negotiation, won, lost (default: lead)
--value <n>NoDeal value
--currency <code>NoCurrency code (default: USD)
--expected-close <date>NoExpected close date (YYYY-MM-DD)
--owner-id <id>NoOwner user ID
--notes <text>NoFree-text notes
--tags <tags>NoComma-separated tag names
--set <key=value>NoSet a custom field value (repeatable)

moss deal create-batch

Create multiple deals from a JSON file. Each object in the array takes the same fields as moss deal create.
moss deal create-batch --file deals.json
cat deals.json | moss deal create-batch --file -
OptionRequiredDescription
--file <path>YesPath to JSON file containing an array of deal objects, or "-" for stdin

moss deal update

Update an existing deal.
moss deal update --id deal_abc123 --value 75000 --owner-id usr_def456
OptionRequiredDescription
--id <id>YesDeal ID
--name <name>NoDeal name
--company-id <id>NoCompany ID
--value <n>NoDeal value
--currency <code>NoCurrency code
--expected-close <date>NoExpected close date (YYYY-MM-DD)
--owner-id <id>NoOwner user ID
--notes <text>NoFree-text notes
--tags <tags>NoComma-separated tag names
--set <key=value>NoSet a custom field value (repeatable)

moss deal move

Move a deal to a new stage.
moss deal move --id deal_abc123 --stage proposal
moss deal move --id deal_abc123 --stage lost --lost-reason "Budget cut"
OptionRequiredDescription
--id <id>YesDeal ID
--stage <stage>YesTarget stage: lead, qualified, proposal, negotiation, won, lost
--lost-reason <reason>NoReason (required when moving to lost)

moss deal bulk-move

Move multiple deals to a new stage at once.
moss deal bulk-move --ids deal_a1,deal_b2,deal_c3 --stage negotiation --confirm
OptionRequiredDescription
--ids <ids>YesComma-separated deal IDs
--stage <stage>YesTarget stage: lead, qualified, proposal, negotiation, won, lost
--confirmYesConfirm bulk operation (required)

moss deal delete

Delete a deal permanently.
moss deal delete --id deal_abc123 --confirm
OptionRequiredDescription
--id <id>YesDeal ID
--confirmYesConfirm deletion (required for destructive operations)
This permanently deletes the deal. This cannot be undone.

Deal Contact Commands

Manage contacts linked to a deal.

moss deal contact list

List contacts linked to a deal.
moss deal contact list --deal-id deal_abc123
OptionRequiredDescription
--deal-id <id>YesDeal ID
Link a contact to a deal.
moss deal contact link --deal-id deal_abc123 --contact-id cnt_def456 --role "Decision Maker"
OptionRequiredDescription
--deal-id <id>YesDeal ID
--contact-id <id>YesContact ID
--role <role>NoContact’s role in the deal
Remove a contact from a deal.
moss deal contact unlink --deal-id deal_abc123 --contact-id cnt_def456
OptionRequiredDescription
--deal-id <id>YesDeal ID
--contact-id <id>YesContact ID