Start a project from the terminal
On this page
storymaps project init starts a project, and storymaps project add adds user story maps to one. Both write the story maps into the storymaps folder.
Start a project
Give it a name, and the story map files to start from:
storymaps project init [--name <name>] [files...] [--dir <folder>]
storymaps project init --name "Bakery" ordering.yml rewards.ymlCreated project Bakery: https://storymaps.io/p/3hruea4k Ordering https://storymaps.io/p/3hruea4k/8i33s40u Rewards https://storymaps.io/p/3hruea4k/t3qnaj27Wrote storymaps/8i33s40u.yml and storymaps/t3qnaj27.ymlordering.yml and rewards.yml are unchanged. Delete them when you're ready.
Each file becomes a story map in the project. The files you started from are left as they are, so delete them once you've checked the new ones.
With no files, the project starts with one new story map, My Story Map. With no --name, it's called Untitled project, as in the app. Rename either in the app.
Add a new story map
storymaps project add [file or link] [--name <name>] [--project <link>]
storymaps project add --name "Merch"Created Merch: https://storymaps.io/p/k8f2m9xq/zbyf2k7sAdded Merch to Coffee shop.Merch isn't locked, so anyone with its link can edit it.Wrote storymaps/zbyf2k7s.yml
It says the lock the story map has, so you know whether to lock it too. Adding to a locked project asks for the project password.
Add a story map you already have
Give it the file. A story map that's already on the server keeps its ID, its link and its activity log, and joins the project:
storymaps project add storymap.ymlAdded Menu Board to Coffee shop.Menu Board isn't locked, so anyone with its link can edit it.Wrote storymaps/n5b8d2wq.ymlstorymap.yml is unchanged. Delete it when you're ready.
A file that isn't on the server yet, such as one you wrote yourself, becomes a new story map with its content. A story map you haven't pulled can be added by its link instead: storymaps project add storymaps.io/n5b8d2wq.
Add one offline
With no connection, the CLI makes the ID itself, so the file is still named by ID:
storymaps project add --name "Breakfast"Wrote storymaps/iajfqtjq.ymlYou're offline, so Breakfast will be created and added to the project on your next push.
The next push creates it:
storymaps pushChecking 8 maps... iajfqtjq.yml Breakfast new mapCreated Breakfast: https://storymaps.io/p/k8f2m9xq/iajfqtjqAdded Breakfast to Coffee shop.Breakfast isn't locked, so anyone with its link can edit it.Pushed 1 map. 7 unchanged.
If another story map already has that ID, which is very rare, push gives the new one a fresh ID and renames its file to match. That's the one time the CLI renames a file.
Which project
project add adds to the project in the storymaps folder, or in the folder you're in. With no project folder yet, such as on a new computer, name the project with --project storymaps.io/p/k8f2m9xq.
Renaming a project, and reordering, removing and deleting its story maps, stay in the app. See Manage a story map project.