• Document Up to Date
  • Since 4.0.0

list-sites


List the sites that the current user can access


Note

The connection to CrafterCMS needs to be setup via the add-environment command before using the command listed here.

Usage

crafter-cli list-sites [--config=path] -e=<environment> [-p=<profile>]

Options

    --config=path         The folder to store configurations
-e, --environment=<environment>
                         The name of the environment
-p, --profile=<profile>   The name of the profile (a label to group related configurations)

Example

  ./crafter-cli list-sites -e local
foo (another-hello)
hello (hello)
mysite (mysite)

Output

list-sites outputs a list of sites in the following format:

<site_name> (site_id)

where:

  • site_name is the friendly name of the site

  • site_id is the ID of the site