Push changes to a project

On this page

storymaps push in a project folder checks every user story map, then pushes only the ones that changed.

Check, then push

storymaps diff shows what a push would change, story map by story map:

Terminal
storymaps diff  m7q2r8tz.yml  Loyalty Card    + MVP: 1 card    ~ MVP: 1 card updated (status)3 maps the same as the server.Run storymaps diff --full for the full file diff.

Then push:

Terminal
storymaps pushChecking 4 maps...  m7q2r8tz.yml  Loyalty Card    + MVP: 1 card    ~ MVP: 1 card updated (status)Pushed 1 map. 3 unchanged.  https://storymaps.io/p/k8f2m9xq/m7q2r8tz

Run both from the folder that holds storymaps, or from inside it.

Nothing is sent until everything checks out

Push checks every file, every conflict and every password before it sends anything. If one story map fails a check, none are pushed, so a project never ends up half pushed.

If a story map changed in the app since you last pulled:

Terminal
storymaps pushChecking 4 maps...Conflict: Loyalty Card has changed on the server since you last pulled.Nothing was pushed. Run storymaps pull to update, or use --force to overwrite.

Pull shows both sets of changes and asks before it overwrites your file:

Terminal
storymaps pullCoffee shop: 4 maps, 1 changed  m7q2r8tz.yml  Loyalty Card    ~ MVP: 1 card renamed    ~ MVP: 1 card updated (status)> Apply changes? YesPulled 1 map from https://storymaps.io/p/k8f2m9xq. 3 already up to date.

That replaces your edits to that story map, so make them again, then push. --force does the opposite, replacing the changes made in the app.

A fresh copy of the repo

The CLI remembers what it last pulled on each computer. A file it has never pulled, such as one from a fresh clone of a repo, can't show whether its story map changed on the server since, so push stops:

Terminal
storymaps pushChecking 4 maps...Loyalty Card hasn't been pulled on this computer, so it can't tell whether the map changed on the server since m7q2r8tz.yml was written.Nothing was pushed. Run storymaps pull first, or use --force to overwrite.

Locked story maps

Story maps locked with the project password need it once, for all of them. After storymaps project unlock --maps, it isn't asked for at all. A story map with its own password asks for that one separately.

Run with no terminal, such as by an agent or a script, push can't ask, so it stops and says how to give the password:

Terminal
storymaps pushChecking 8 maps...  k3x9w2pq.yml  Checkout    ~ MVP: 1 card updated (status)Checkout is locked with the Coffee shop password, and there's no terminal to type its password in. Nothing was changed. Run storymaps project unlock --maps in a terminal first, or set STORYMAPS_PASSWORD for this command.

See Use the CLI in scripts and CI for STORYMAPS_PASSWORD.

Files push leaves alone

  • A file whose story map isn't in the project, such as one removed in the app, is skipped, and push says how to add it back with storymaps project add.
  • A file whose story map is no longer on the server, because it was deleted, is skipped too. A deleted story map never comes back at its old link.
  • A file without an id stops push, as it isn't on the server yet. Add it with storymaps project add.
  • YAML files without a project line, such as a docker-compose.yml, aren't story maps in the project, and push never looks at them.

To push one story map on its own, name its file: storymaps push -f storymaps/m7q2r8tz.yml.