NAME

krang_create_story - Create a story via the command line


SYNOPSIS

  $ bin/krang_create_story --type="article" --title="..." --slug="..."


DESCRIPTION

This script creates a story in Krang and publishes it.

When the script succeeds it will print a single line and exit

  OK ID URL

The ID and URL is the URL of the published form. Errors will result in a non-zero exit and an error message on STDERR.

For example, calling:

    bin/krang_create_story --type="article" \
                          --title="Test Article" \
                          --slug="test_arcticle" \
                          --element paragraph='some text' \
                          --element metadata_title='some more text'

Might result in:

    OK 10 mysite.com/test_article FA47EA5C-0F23-11DE-9999-71D3CB6E427A


OPTIONS