photoprism: github.com/photoprism/photoprism/internal/commands Index | Files

package commands

import "github.com/photoprism/photoprism/internal/commands"

Package commands contains commands and flags used by the photoprism application.

Additional information concerning the command-line interface can be found in our Developer Guide:

https://github.com/photoprism/photoprism/wiki/Commands

Index

Package Files

commands.go config.go convert.go copy.go import.go index.go migrate.go moments.go passwd.go purge.go resample.go start.go status.go stop.go version.go

Variables

var ConfigCommand = cli.Command{
    Name:   "config",
    Usage:  "Displays global configuration values",
    Action: configAction,
}

ConfigCommand is used to register the display config cli command

var ConvertCommand = cli.Command{
    Name:   "convert",
    Usage:  "Converts originals in other formats to JPEG",
    Action: convertAction,
}

ConvertCommand is used to register the convert cli command

var CopyCommand = cli.Command{
    Name:    "copy",
    Aliases: []string{"cp"},
    Usage:   "Copies files to originals folder, converts and indexes them as needed",
    Action:  copyAction,
}

CopyCommand is used to register the copy cli command

var ImportCommand = cli.Command{
    Name:    "import",
    Aliases: []string{"mv"},
    Usage:   "Moves files to originals folder, converts and indexes them as needed",
    Action:  importAction,
}

ImportCommand is used to register the import cli command

var IndexCommand = cli.Command{
    Name:   "index",
    Usage:  "Indexes media files in originals folder",
    Flags:  indexFlags,
    Action: indexAction,
}

IndexCommand is used to register the index cli command

var MigrateCommand = cli.Command{
    Name:   "migrate",
    Usage:  "Automatically initializes and migrates the database",
    Action: migrateAction,
}

MigrateCommand is used to register the migrate cli command

var MomentsCommand = cli.Command{
    Name:   "moments",
    Usage:  "Creates albums based on popular locations, dates and labels",
    Action: momentsAction,
}

MomentsCommand is used to register the index cli command

var PasswdCommand = cli.Command{
    Name:   "passwd",
    Usage:  "Changes the admin password",
    Action: passwdAction,
}

PasswdCommand updates a password.

var PurgeCommand = cli.Command{
    Name:   "purge",
    Usage:  "Removes missing files from search results",
    Flags:  purgeFlags,
    Action: purgeAction,
}

PurgeCommand is used to register the index cli command

var ResampleCommand = cli.Command{
    Name:    "resample",
    Aliases: []string{"thumbs"},
    Usage:   "Pre-renders thumbnails (significantly reduces memory and cpu usage)",
    Flags: []cli.Flag{
        cli.BoolFlag{
            Name:  "force, f",
            Usage: "re-create existing thumbnails",
        },
    },
    Action: resampleAction,
}

ResampleCommand is used to register the thumbs cli command

var StartCommand = cli.Command{
    Name:    "start",
    Aliases: []string{"up"},
    Usage:   "Starts web server",
    Flags:   startFlags,
    Action:  startAction,
}

StartCommand is used to register the start cli command

var StatusCommand = cli.Command{
    Name:   "status",
    Usage:  "Performs a server health check",
    Action: statusAction,
}

StatusCommand performs a server health check.

var StopCommand = cli.Command{
    Name:    "stop",
    Aliases: []string{"down"},
    Usage:   "Stops web server (only in daemon mode)",
    Action:  stopAction,
}

StopCommand is used to register the stop cli command

var VersionCommand = cli.Command{
    Name:   "version",
    Usage:  "Shows version information",
    Action: versionAction,
}

VersionCommand is used to register the version cli command

Package commands imports 25 packages (graph) and is imported by 1 packages. Updated 2020-07-23. Refresh now. Tools for package owners.