Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Scotty Laravel Package

spatie/scotty

Scotty is a beautiful SSH task runner for executing scripted tasks on remote servers. Define tasks in a Scotty.sh file (bash with annotations), run them with clear output, and use it as a drop-in, Envoy-compatible alternative for deploys and ops.

View on GitHub
Deep Wiki
Context7

title: Running tasks weight: 4

Running a task or macro

scotty run deploy
scotty run cloneRepository

Scotty shows each task as it runs, with a step counter, elapsed time, and the command that's currently executing:

scotty run deploy

If a task fails, Scotty shows the output and stops. You'll immediately see what went wrong:

Task failure

Pretend mode

Want to see what would happen without actually running anything? Use --pretend:

scotty run deploy --pretend

This shows the SSH commands Scotty would execute, without connecting to any server.

Continue on failure

By default, Scotty stops at the first failed task. If you want it to keep going regardless:

scotty run deploy --continue

Summary mode

If you don't need to see all the output and just want to know whether things passed:

scotty run deploy --summary

This hides task output and only shows results. Failed tasks always show their output, even in summary mode.

Dynamic options

You can pass custom variables from the command line:

scotty run deploy --branch=develop

In the Scotty.sh format, --branch=develop becomes $BRANCH. The key is uppercased and dashes become underscores.

In the Blade format, it becomes available as $branch.

Pause and resume

Sometimes you want to take a quick look at the server halfway through a deploy, or you just want to slow things down and watch each step more carefully. Press p at any point during execution. Scotty finishes the current task and then waits.

Pause and resume

Press Enter to continue with the next task, or Ctrl+C if you want to stop entirely.

Cancelling

You can press Ctrl+C at any time to cancel. Scotty restores the terminal and exits cleanly. Everything that was already output stays in your scrollback, so you can scroll up to see what happened.

Listing tasks

To see all available tasks and macros in your file:

scotty tasks

scotty tasks

SSH into a server

You can quickly SSH into any server defined in your Scotty file:

scotty ssh
scotty ssh remote

If only one server is defined, Scotty connects to it directly. With multiple servers, you'll get a selection prompt.

Creating a new file

scotty init

This prompts you to choose a format (bash or Blade) and a server host, then creates the file for you.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport