def create_command(app, conf):
    """Create the app creation command.

    Parameters
    ----------
    app : `str`
        The name of the app to create.
    conf : `SimpleNamespace`
        The options for the app.

    Returns
    -------
    `list` of `str`
        The assembled command line to run.
    """
    if app == "csc-cluster-config":
        app_dir = app.replace("csc-", "")
    else:
        app_dir = app

    cmd = [
        "argocd",
        "app",
        "create",
        f"{app}",
        "--dest-namespace",
        "argocd",
        "--dest-server",
        "https://kubernetes.default.svc",
        "--repo",
        "https://github.com/lsst-ts/argocd-csc.git",
        "--revision",
        f"{conf.revision}",
        "--path",
        f"apps/{app_dir}",
        "--values",
        f"values-{conf.env}.yaml",
    ]
    if conf.use_port_forward:
        cmd.append("--port-forward")
        cmd.append("--port-forward-namespace")
        cmd.append("argocd")

    return cmd