Use the CLI with your own server
On this page
The CLI works with any Storymaps.io server, such as one your company runs. It goes to storymaps.io unless it's told otherwise.
Name the server in the link
Every command that takes a link takes one on your server:
storymaps pull storymaps.yourcompany.com/abc12345
The pulled file says where it came from, in its site line, so pull, push and the rest go back to the same server without the link:
name: Coffee Appid: abc12345site: storymaps.yourcompany.com
A new story map
--site makes the new story map on your server:
storymaps init --site storymaps.yourcompany.com
A server on your computer
A server on your own computer always names its port, such as localhost:3000. It's reached over http:
storymaps init --site localhost:3000Created storymap.yml (map ID: abc12345)http://localhost:3000/abc12345
The file then says site: localhost:3000, so every command finds the server. localhost on its own stops with a message asking for the port, so a command never goes to a port you didn't choose.
Any other address
Give the whole address, such as --site http://192.168.0.20:8080 or --site https://localhost:8443. The file names it in full, so every command after it uses the same address.
In the server logs
Each request from the CLI names it and its version, such as storymaps-cli/1.4.2, so the server logs can tell the CLI apart from other scripts.