Command reference
On this page
Every command and option. A target is a user story map: an ID, a link such as storymaps.io/abc12345, or a whole address. A link to a story map in a project works too. Left out, the command uses the story map in storymap.yml, or every story map in the project folder.
storymaps --help lists the commands, storymaps <command> --help shows one, and storymaps --version prints the version.
Commands
| Command | What it does |
|---|---|
storymaps init | Make a new story map and its storymap.yml |
storymaps open | Open the story map in the browser |
storymaps pull | Download a story map, or a whole project |
storymaps push | Send your changes to the server |
storymaps diff | See what changed before you push |
storymaps status | Show progress by slice and by status |
storymaps log | Show the activity log |
storymaps lock | Lock a story map with a password |
storymaps unlock | Unlock a story map for yourself, or take its lock off for everyone |
storymaps backup | Back up a story map, or every story map in a project |
storymaps backups | List the backups of a story map |
storymaps restore | Put a story map back to a backup |
storymaps validate | Check a story map file without the server |
storymaps convert | Turn YAML into JSON, or JSON into YAML |
storymaps project init | Start a project |
storymaps project add | Add a story map to the project |
storymaps project lock | Lock the project, or the project and its story maps |
storymaps project unlock | Unlock the project for yourself, or take its lock off for everyone |
One story map or a whole project
storymaps <command> works on story maps: one, named with -f or a link, or every story map in the project folder. storymaps project <command> changes the project itself.
With no -f or link, a project in reach wins: the folder named with --dir, a storymaps folder below you, or project files in the folder you're in. With no project in reach, storymap.yml means one story map. See Pull a project.
Questions and passwords
Questions are only asked in a terminal. -y, --yes takes the usual answer, and --force answers the questions that guard against overwriting or removing something. Passwords are typed, remembered after an unlock, or taken from STORYMAPS_PASSWORD. See Use the CLI in scripts and CI.
storymaps init
Makes a new storymap.yml in the folder you're in, and the story map on the server. Never joins a project. See Create a story map from the terminal.
Syntax
storymaps init [-s <site>]
Options
| Option | What it does |
|---|---|
-s, --site <site> | The server to make it on, such as storymaps.yourcompany.com, localhost:3000 or http://192.168.0.20:8080. A server on your computer names its port. storymaps.io if left out. |
Examples
# Make a new story map and its storymap.ymlstorymaps init # Make it on your own serverstorymaps init -s storymaps.yourcompany.com
storymaps open
Opens the story map in the browser, and prints its link. In a project folder, opens the project at its first story map. See Open a story map in the browser.
Syntax
storymaps open [target] [-f <path>] [--dir <folder>]
Options
| Option | What it does |
|---|---|
-f, --file <path> | The file to read the story map from. |
--dir <folder> | The project folder. storymaps if left out. |
Examples
# Open the story map in storymap.ymlstorymaps open # Open one story map in a project folderstorymaps open -f storymaps/abc12345.yml
storymaps pull
Downloads the story map as YAML, or every story map in a project. Shows what changed and asks before it overwrites a file. See Pull a story map and Pull a project.
Syntax
storymaps pull [target] [-f <path>] [--dir <folder>] [--force] [--yes]
Options
| Option | What it does |
|---|---|
target | A story map, or a project link such as storymaps.io/p/k8f2m9xq. |
-f, --file <path> | The file to write, for one story map. storymap.yml if left out. |
--dir <folder> | The project folder. storymaps if left out. |
--force | Overwrite files without asking. |
-y, --yes | Take the usual answers, such as just the story map for a link to one in a project. |
Examples
# Pull a story map into storymap.ymlstorymaps pull storymaps.io/abc12345 # Pull every story map in a project into the storymaps folderstorymaps pull storymaps.io/p/k8f2m9xq # Pull again, overwriting the file without askingstorymaps pull --force
storymaps push
Sends the file to the server, or every changed story map in a project. Stops if a story map changed since the last pull, and in a project checks everything before sending anything. See Push changes to a story map and Push changes to a project.
Syntax
storymaps push [target] [-f <path>] [--dir <folder>] [--force]
Options
| Option | What it does |
|---|---|
-f, --file <path> | The file to push, YAML or JSON, for one story map. |
--dir <folder> | The project folder. storymaps if left out. |
--force | Skip the conflict check, and replace what changed on the server. |
Examples
# Push storymap.yml, or every changed story map in a project folderstorymaps push # Push another filestorymaps push -f plans/checkout.yml # Replace what changed on the server since the last pullstorymaps push --force
storymaps diff
Compares a file with its story map, or with another file, or every story map in a project with the server. See See what changed in a story map.
Syntax
storymaps diff [source] [target] [--full] [--dir <folder>]
Options
| Option | What it does |
|---|---|
source | The file to compare, or a link or ID to compare your file of that story map. storymap.yml if left out, or the whole project in a project folder. |
target | A second file. Left out, it compares with the story map on the server. |
--full | Show the changed lines, not only a summary. |
--dir <folder> | The project folder. storymaps if left out. |
Examples
# Summarise what you changed, before a pushstorymaps diff # Show the changed linesstorymaps diff --full # Compare two filesstorymaps diff before.yml after.yml
storymaps status
Shows progress overall, by slice and by status, and the cards that are blocked. In a project, a line for each story map with its lock, and a total. See Check story map progress.
Syntax
storymaps status [target] [-f <path>] [--dir <folder>]
Options
| Option | What it does |
|---|---|
target | A story map or a project on the server, or a file. |
-f, --file <path> | The file to read, for one story map. |
--dir <folder> | The project folder. storymaps if left out. |
Examples
# Progress of the story map in storymap.yml, or of the whole projectstorymaps status # Progress of any story map, without pulling itstorymaps status storymaps.io/abc12345
storymaps log
Shows the activity log of one story map, newest first. See Read the activity log.
Syntax
storymaps log [target] [-f <path>]
Options
| Option | What it does |
|---|---|
-f, --file <path> | The file to read the story map from. storymap.yml if left out. |
Examples
# The activity log, newest firststorymaps log # The log of any story mapstorymaps log storymaps.io/abc12345
storymaps lock
Locks one story map with a password of at least 4 characters, asked for twice. See Lock and unlock a story map.
Syntax
storymaps lock [target] [-f <path>]
Options
| Option | What it does |
|---|---|
-f, --file <path> | The file to read the story map from. Needed in a project folder. |
Examples
# Lock the story map. It asks for the password twicestorymaps lock
storymaps unlock
Checks the password and saves a hash of it on this computer, never the password itself, so pushes and backups work. The story map stays locked for everyone else.
Syntax
storymaps unlock [target] [-f <path>] [--remove]
Options
| Option | What it does |
|---|---|
-f, --file <path> | The file to read the story map from. Needed in a project folder. |
--remove | Take the lock off for everyone. |
Examples
# Unlock it for yourself, so pushes workstorymaps unlock # Take the lock off for everyonestorymaps unlock --remove
storymaps backup
Backs up the story map on the server, or every story map in a project with the same note. Makes no new backup if nothing changed since one of them. See Back up and restore from the terminal.
Syntax
storymaps backup [target] [-f <path>] [--dir <folder>] [-m <note>]
Options
| Option | What it does |
|---|---|
-f, --file <path> | The file to read the story map from, for one story map. |
--dir <folder> | The project folder. storymaps if left out. |
-m, --message <note> | A note, to tell the backup apart later. |
Examples
# Back up the story map, or every story map in a projectstorymaps backup # Back up with a note to find it by laterstorymaps backup -m "Before the release"
storymaps backups
Lists the backups of the story map, newest first, with the ID to restore each one by. In a project, the newest backup of each story map.
Syntax
storymaps backups [target] [-f <path>] [--dir <folder>]
Options
| Option | What it does |
|---|---|
-f, --file <path> | The file to read the story map from, for one story map. |
--dir <folder> | The project folder. storymaps if left out. |
Examples
# List the backups, newest firststorymaps backups
storymaps restore
Puts one story map back to a backup, after backing it up as it is now. Changes the story map, not your file, so pull afterwards. In a project folder, the backup ID says which story map.
Syntax
storymaps restore <backup-id> [target] [-f <path>] [--dir <folder>] [--force]
Options
| Option | What it does |
|---|---|
backup-id | The ID of the backup, from storymaps backups. |
-f, --file <path> | The file to read the story map from. |
--dir <folder> | The project folder. storymaps if left out. |
--force | Restore without asking first. |
Examples
# Put the story map back to a backup, from its ID in storymaps backupsstorymaps restore 2d61dc7cf364
storymaps validate
Checks a YAML or JSON story map file, or every story map file in a folder, without the server. See Validate and convert story map files.
Syntax
storymaps validate <file or folder>
Examples
# Check a filestorymaps validate storymap.yml # Check every story map file in a folderstorymaps validate storymaps
storymaps convert
Turns a story map file from YAML into JSON, or from JSON into YAML.
Syntax
storymaps convert <file> [--from <format>] [--to <format>] [--out <file>]
Options
| Option | What it does |
|---|---|
--from <format> | yaml or json. Worked out from the file name if left out. |
--to <format> | yaml or json. yaml if left out. |
--out <file> | The file to write. Prints in the terminal if left out. |
Examples
# Print a YAML file as JSONstorymaps convert storymap.yml --to json # Write a JSON file as YAMLstorymaps convert coffee.json --out coffee.yml
storymaps project init
Starts a project, with a first story map or one from each file, written to the storymaps folder. See Start a project from the terminal.
Syntax
storymaps project init [--name <name>] [files...] [--dir <folder>] [-s <site>]
Options
| Option | What it does |
|---|---|
--name <name> | The project name. Untitled project if left out. |
files | Story map files to start from. They're left as they are. |
--dir <folder> | Where to write the story maps. storymaps if left out. |
-s, --site <site> | The server to make it on. storymaps.io if left out. |
Examples
# Start a project with a first story mapstorymaps project init --name "Coffee shop" # Start a project from story map files you already havestorymaps project init --name "Coffee shop" app.yml barista.yml
storymaps project add
Adds a story map to the project: a new one, one from a file, or one that already exists. Works offline: the next push creates it.
Syntax
storymaps project add [file or link] [--name <name>] [--dir <folder>] [--project <link>]
Options
| Option | What it does |
|---|---|
file or link | A story map file, or a story map by its link or ID. A new blank story map if left out. |
--name <name> | The name of a new story map. My Story Map if left out. |
--dir <folder> | The project folder. storymaps if left out. |
--project <link> | The project, when there's no project folder yet. |
Examples
# Add a new story map to the projectstorymaps project add --name "Barista Screen" # Add a story map that already existsstorymaps project add storymaps.io/abc12345
storymaps project lock
Locks the project, or the project and its story maps, the same two choices as in the app. See Lock and unlock a project.
Syntax
storymaps project lock [--maps] [--yes] [--dir <folder>] [--project <link>]
Options
| Option | What it does |
|---|---|
--maps | Lock the story maps that aren't locked too, without asking. On a locked project, lock only those. |
-y, --yes | Take the usual answer: the project alone. |
--dir <folder> | The project folder. storymaps if left out. |
--project <link> | The project, when there's no project folder. |
Examples
# Lock the project. It asks what to lock and for the passwordstorymaps project lock # Lock the project and its story maps without askingstorymaps project lock --maps
storymaps project unlock
Unlocks the project for you alone, or takes its lock off for everyone.
Syntax
storymaps project unlock [--remove] [--maps] [--yes] [--dir <folder>] [--project <link>]
Options
| Option | What it does |
|---|---|
--remove | Take the lock off for everyone. |
--maps | Also unlock the story maps that use the project password, or with --remove, take their locks off. |
-y, --yes | Take the usual answers: the project only, and the story map locks kept. |
--dir <folder> | The project folder. storymaps if left out. |
--project <link> | The project, when there's no project folder. |
Examples
# Unlock the project for yourselfstorymaps project unlock # Take the lock off the project and its story maps for everyonestorymaps project unlock --remove --maps