Office hours: Build your self-driving GTM engine·Oct 29, 9:00am PT, onlineRegister→
Cargo
  • PrimitivesData ModelsYour companies, contacts and deals, merged from every sourceContextWhat your team knows, as files every agent readsTerritoriesWho sells where, defined onceMailboxesMailboxes in your reps' names, warmed up and kept under limitsToolsThe actions your agents, plays and reps callAgentsAI that researches, decides and writes, reading your contextPlaysWorkflows that run on a trigger or a schedule, with retriesAppsInternal apps for your reps, hosted on Cargo
    Add-onsChrome ExtensionSell faster, right in your browserButtonTrigger AI agents inside your CRMFormTurn any tool into an embeddable formSlackTag Cargo in Slack. It does the GTM workGitHubPlan on every pull request, deploy on merge
    MoreProjectsDefine your entire GTM in codeCLIUse Cargo from your terminalMCPUse Cargo from Claude and ChatGPTDeveloper resourcesCargo API docs, OpenAPI spec, auth docs, webhooks, MCP serverAPI ReferenceExplore the Cargo APIDocumentationLearn how to use CargoIntegrationsConnected to your entire GTM stack
  • VeriffHow Veriff replaced MuleSoft with Cargo under NetSuite, Stripe and SalesforceAugmentHow Augment Code routes developer sign-ups to reps in under an hourWeights & BiasesHow Weights & Biases ships a new purchase signal in 2 days on CargoSee all
  • Pricing
  • Cookbooks
  • Blog
Sign in
Blog

Roll Back a Go-to-Market Change

16 Oct5min read
AurelienAurelien

To roll back a go-to-market change deployed with Cargo, revert its commit in git and deploy the revert: git revert <sha>, then merge the revert’s pull request on a connected repository, or run cargo-ai project deploy. The deploy re-applies the previous definitions because the workspace is reconciled to whatever the code says. cargo-ai project rollback is a different tool: it restores the deploy state record, not your live plays and agents.

Revert and deploy #

shellscript
git checkout -b revert-tier-1-change
git revert <sha>                 # a new commit that undoes the change
git push -u origin revert-tier-1-change
gh pr create --fill              # the plan comment shows the diff going back

On a repository connected to Cargo, merging that pull request deploys it. Without a connection, run the same plan and deploy yourself:

shellscript
cargo-ai project plan            # the diff going back to the previous definitions
cargo-ai project deploy

The revert is reviewed like any other change, and git keeps both the change and its undo, so the history says what ran when.

Stop a play first, if it is sending #

A revert takes as long as a review. If a play is enrolling the wrong records right now, ship the smallest change that stops it:

typescript
export const expansion = definePlay("expansion", {
  model: contacts,
  // …
  isEnabled: false, // the deploy disables the play and keeps it disabled
});

With isEnabled set, the deploy keeps the play’s switch reconciled to the code. Left out, the switch is manual and a toggle in the Cargo UI survives deploys, which is also a valid emergency stop.

What a revert does not remove #

A deploy never deletes. If the change you are reverting added a resource, the revert removes it from code but the live play, tool or agent stays: the plan lists it as Prune. Remove it deliberately:

shellscript
cargo-ai project deploy --prune                 # delete everything dropped from code
cargo-ai project destroy --target play:welcome  # or one resource

On a connected repository with Deploy on push on, Cargo refuses deploys from anyone but the connection’s service user, --prune included. Turn Deploy on push off in Settings → States to run it, then turn it back on.

What no rollback undoes #

  • Emails, LinkedIn actions and messages already sent. Reverting a play stops future enrollments; it does not recall what went out.
  • One-off executions. A batch or run declared in code that started stays in the ledger. Reverting the file does not run it backwards, and it will not run again.
  • Records written by a play. Field updates to your CRM are data, not resources. Undoing them is a new batch or run that writes the old values back.

That is why the preview on the pull request matters more than the rollback: it counts the sends before they exist.

When to use cargo-ai project rollback #

shellscript
cargo-ai project rollback          # asks for confirmation; --yes skips it
cargo-ai project deploy --refresh  # then reconcile live resources

rollback restores this project’s deploy state from the snapshot taken before the last deploy, destroy or import, and keeps the executions ledger. Live resources are untouched. It is for a deploy state that went wrong (a bad import, a deploy that recorded the wrong resources), not for undoing a change in what your plays do. The follow-up deploy --refresh re-reads the live workspace and applies your code over anything that differs, so check out the code you want before running it. rollback takes the same state lock as a deploy; --force steals a lock you believe is stale.

Check for drift before you trust the revert #

If someone edited a resource in the Cargo UI since the last deploy, a plain deploy will not notice. See it first:

shellscript
cargo-ai project refresh   # reports each resource as unchanged, modified or deleted externally

cargo-ai project deploy --refresh then applies code over the drift. A resource deleted in the UI is not silently recreated: the deploy stops and asks for --recreate-deleted.

Full reference: Deploying in the Cargo docs. The whole lifecycle: GTM as code: the complete guide.

~/run-it-on-cargo/

Build this workflow instead of reading about it.

Cargo is the GTM infrastructure your coding agent builds on: enrichment, scoring, routing and outreach, defined in code and run in production.

Start building
AurelienAurelienOct 16, 2026
On this page
  • Revert and deploy
  • Stop a play first, if it is sending
  • What a revert does not remove
  • What no rollback undoes
  • When to use `cargo-ai project rollback`
  • Check for drift before you trust the revert

Stay Informed with our
weekly Newsletter

Related articlesSee all articles
GTM Engineering
CI/CD for Go-to-Market: What It Means and How to Set It Up

CI/CD for GTM means every change to enrichment, scoring, routing and sequences ships as a pull request that is planned, checked, approved, deployed on merge, logged and reversible. What each software CI/CD step becomes for go-to-market, and how to set it up on Cargo.

AurelienAurelien·Nov 3, 2026
GTM Engineering
Require Approval Before a High-Impact Go-to-Market Change Goes Live

How Cargo holds a go-to-market pull request that would send or spend more than set limits until a reviewer adds the cargo:approve-impact label: the thresholds, what counts as high impact, who should approve, and what the gate does not catch.

AurelienAurelien·Nov 3, 2026
GTM Engineering
Test a Go-to-Market Change Before It Reaches Production

How to test a change to enrichment, scoring, routing or outreach before it runs on every lead: check the project offline, dry run an action, read the plan on the pull request, ship the play switched off and pilot it on 50 records, evaluate agents, and use a second workspace as staging.

AurelienAurelien·Nov 3, 2026

Build the self-driving GTM engine

Your coding agents build it on Cargo.Or our team builds, operates and improves it with you.

Start building
Cargo
Backed byY CombinatorSOC 2 Type IICertified
LinkedinX

Product

Data ModelsContextTerritoriesMailboxesToolsAI AgentsPlaysAppsIntegrationsPricing

Add-ons

Chrome extensionButtonFormSlackGitHub

Build

DocsDeveloper resourcesCargo API docsCargo OpenAPI specCargo auth docsCargo webhooksCargo MCP serverProjectsClaude CodeCodexCursorAll coding agents

Resources

ReportsBlogCustomer storiesCookbooksEnrichmentRoutingSignalsScoringCRM hygieneAd audiencesGTM skillsGTM EngineeringGlossaryCompareCargo x ClayCargo x WorkatoCargo x n8nCargo x DeeplineCargo x DefaultCargo x LeanDataCargo x UnifyCargo x ValleyCargo x Gojiberry

Company

ManifestoCommunityEventsJobsPartners DirectoryPartner Program

Legal

SecurityTerms of servicePrivacy PolicyRefundsDPASupport
© 2026 Cargo
 ////////    ///////    ////////     ////////    ///////
///         ///   ///   ///   ///   ///         ///   ///
///         ///   ///   ///   ///   ///         ///   ///
///         /////////   ////////    ///  ////   ///   ///
///         ///   ///   /// ///     ///   ///   ///   ///
///         ///   ///   ///  ///    ///   ///   ///   ///
 ////////   ///   ///   ///   ///    ///////     ///////

$ npm install -g @cargo-ai/cli