run-task - Cloud Foundry CLI Reference Guide


NAME

run-task - Run a one-off task on an app

USAGE

cf run-task APP_NAME COMMAND [-k DISK] [-m MEMORY] [--name TASK_NAME]

TIP

Use 'cf logs' to display the logs of the app and all its tasks. If your task name is unique, grep this command's output for the task name to view task-specific logs.

EXAMPLES

cf run-task my-app "bundle exec rake db:migrate" --name migrate

ALIAS

rt

OPTIONS

-k

Disk limit (e.g. 256M, 1024M, 1G)

-m

Memory limit (e.g. 256M, 1024M, 1G)

--name

Name to give the task (generated if omitted)

SEE ALSO

logs, tasks, terminate-task