Skip to main content

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/*

Release files for salesnexus-cli 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for salesnexus-cli 0.2.6
File Size Uploaded
salesnexus_cli-0.2.6.tar.gz 25.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for salesnexus-cli 0.2.6
File Interpreter ABI Platform
salesnexus_cli-0.2.6-py3-none-any.whl Python 3 none any Details

Total release size: 67.7 kB

Release files / salesnexus_cli-0.2.6.tar.gz

Download URL salesnexus_cli-0.2.6.tar.gz
Size 25.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f17ffa579dbfb73cedcf07676cc2f99b4a23cab222e4cfeb9ce4f5d4bee09dec
BLAKE2b-256 checksum
How to use checksums
3cc319a51a3783ed3d82059b1b4df40d24eac105c511c73929deb6a5ca9a0441
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / salesnexus_cli-0.2.6-py3-none-any.whl

Download URL salesnexus_cli-0.2.6-py3-none-any.whl
Size 42.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f335e92268feab1e39e40fa46777c52ebfd0108c8bd8dfee8f6a73bf5abb405c
BLAKE2b-256 checksum
How to use checksums
82fea2454e02fbbca6d344e5a06cdb12ea71aa2a8b07f5ae66ac0ec1527c9986
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

0.2.6 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page