Skip to main content

SalesNexus CLI - manage your CRM from the command line

Project description

SalesNexus CLI (snx)

Command-line interface for the SalesNexus Public API v1. It is designed for both humans and AI agents: pass --json for structured output, or pipe output and the CLI will auto-select JSON.

Install locally

cd salesnexus-cli
pip install -e .

Authenticate

snx auth login --api-key sn_live_...
snx ping

Pipeline automation

Version 0.2.0 adds public pipeline-building commands:

snx goals create --name "New User Activation" --type marketing
snx pipelines create --goal-id 123 --name "New User Engagement" --type marketing --default
snx stages create --pipeline-id 456 --name "Signed Up" --order 0
snx triggers create --stage-id 789 --event AddedToStage --action SendEmail --action-params-json '{"campaignId":101}'

Agents can create a complete marketing pipeline from a JSON spec:

snx --json marketing-pipelines create --spec examples/new-user-engagement.json

Email and SMS templates

Version 0.2.3 adds content-ready email and SMS template creation for triggered automations, plus template export and domain discovery:

snx domains list --purpose email

snx templates create \
	--name "Welcome email" \
	--media-type email \
	--mode triggered \
	--tracking-domain-id 123 \
	--subject "Welcome to SalesNexus" \
	--from-name "SalesNexus" \
	--from-email hello@example.com \
	--raw-html-file examples/welcome-email.html

snx templates create \
	--name "Trial follow-up SMS" \
	--media-type sms \
	--mode triggered \
	--sms-text-file examples/trial-follow-up-sms.txt

snx templates export 101 --dir exported-template

Campaigns used by stage triggers must be created with --mode triggered. Bulk campaigns are still useful for segment sends, but the automation sender will reject them for stage-trigger actions. For email templates that will be sent, use a validated email-ready domain from snx domains list --purpose email and pass its ID with --tracking-domain-id.

Publish

python -m pip install -e ".[dev]"
python -m build
python -m twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

salesnexus_cli-0.2.6.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

salesnexus_cli-0.2.6-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file salesnexus_cli-0.2.6.tar.gz.

File metadata

  • Download URL: salesnexus_cli-0.2.6.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for salesnexus_cli-0.2.6.tar.gz
Algorithm Hash digest
SHA256 f17ffa579dbfb73cedcf07676cc2f99b4a23cab222e4cfeb9ce4f5d4bee09dec
MD5 34c47357f19ca5e2f6a2ee8238a4a858
BLAKE2b-256 3cc319a51a3783ed3d82059b1b4df40d24eac105c511c73929deb6a5ca9a0441

See more details on using hashes here.

File details

Details for the file salesnexus_cli-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: salesnexus_cli-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for salesnexus_cli-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f335e92268feab1e39e40fa46777c52ebfd0108c8bd8dfee8f6a73bf5abb405c
MD5 f734d6ead9a800005c3e9b2c3f589a73
BLAKE2b-256 82fea2454e02fbbca6d344e5a06cdb12ea71aa2a8b07f5ae66ac0ec1527c9986

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page