Skip to main content

How to create a study using the Prolific CLI

Instead of building a study manually in the app, you can create one from a YAML or JSON configuration file using the Prolific CLI (command-line interface). This is especially useful if you want to script the creation of many studies at once.

Before you start, install the CLI and set up authentication. Follow the steps in How to install the Prolific CLI and How to get started with the Prolific CLI.

Create a study from a file

  1. Write your study configuration in a YAML or JSON file. Use the example configs as a starting point.

  2. Run the create command, pointing at your file:

prolific study create -t docs/examples/standard-sample.yaml

Publish while you create

Add the -p (--publish) flag to publish the study at the same time it's created, if you have enough funds in your workspace.

If you're scripting the creation of many studies at once, add -s (--silent) too, so the CLI doesn't render each study after creating it:

prolific study create -t docs/examples/standard-sample.yaml -p -s

Learn more

  • Browse the CLI wiki for tips and tricks, including how to script multiple studies at once

  • Read the Contributing Guide if you'd like to help improve the CLI

Did this answer your question?