Skip to content

protean shell

The shell command starts an interactive shell with your Protean application pre-loaded. The shell command runs on ipython. If you have used ipython before, the shell works the way you expect. The shell is useful for testing out quick ideas with code and changing data server-side without using an interface.

Usage

protean shell [OPTIONS]

Options

Option Description Default
--domain Sets the domain context for the shell. .
--traverse Auto-traverse domain elements False
--help Shows the help message and exits.

Launching the Shell

To launch the interactive shell with default settings:

protean shell

Specifying a Domain

To launch the shell within a specific domain context, use the --domain option followed by the domain name:

protean shell --domain auth

This command starts the shell in the context of the auth domain, so you can run domain-specific operations more easily. Read Domain Discovery for options to specify the domain.

Traversing subdirectories

By default, the shell loads only the domain and the elements in the specified module into the shell context. If you want to traverse files in the folder and its subdirectories, you can specify the --traverse option.

protean shell --domain auth --traverse