Shipslip creates a verified Laravel project, optionally publishes it to GitHub, and runs a configured deploy recipe over SSH. Each stage shows a preview and asks for confirmation. Production deploys require typing the environment name.
First time? Try Shipslip walks through a first staging deploy in about 15 minutes. New teammate? Follow the staging setup guide for installation, SSH access, project configuration, deployment, and recovery.
Quick start
Install the CLI:
|
Open a new terminal, then check it with slip --version. The installer puts
slip in ~/.local/bin. With Rust 1.88 or newer, cargo install shipslip --locked also works.
Shipslip runs on macOS (primary) and Linux (supported, less tested). Windows is not supported yet.
Project creation and GitHub publishing require Shipslip 0.3.0 or newer;
slip doctor, slip setup, and in-place repair require 0.4.0 or newer;
slip receipts requires 0.5.0 or newer; slip status requires 0.6.0
or newer.
Run the GitHub installer above to upgrade, or use the
local build instructions.
Check your machine first. Doctor is read-only:
It lists every tool, PHP extension, Git identity, and GitHub login that
creation and publishing need, then exits 0 when ready or 3 when something is
missing. On macOS with Homebrew, slip setup fixes what it can: it shows the
exact commands, asks once, runs them, and checks again. See
check and fix your machine.
Create a project from a directory outside any existing Git checkout:
Open the local URL printed by Artisan. Shipslip asks for any missing choices,
checks your installed tools, and previews the destination and exact installer
command. If a tool is missing, it shows only what needs attention and offers
the same reviewed plan as slip setup; after one confirmation it continues
with your answers. Child commands use the tool executables shown in that preview, even
when multiple versions are installed. After confirmation, it installs
dependencies, builds assets, runs
php artisan test, and offers an initial commit after showing the files to
include. Git needs your user.name and user.email configured. Declining the
commit leaves the verified project and staged files local.
Project creation needs local PHP, Composer, Laravel installer 5.31.1 or
newer, Node.js, npm, and Git; see prerequisites.
Starter kits are none, react, vue, svelte, and livewire. Kits support
Laravel authentication or --auth none; plain Laravel (--starter-kit none)
uses no authentication. SQLite, Pest, and branch main are the defaults.
Laravel Boost is recommended: its setup prompt defaults to Yes. Pass --boost
to enable it without the prompt, or --no-boost to skip it. WorkOS, community kits, teams,
and package managers other than npm are not supported.
Boost configures the AI clients it detects. To choose or add a client after
creation, run php artisan boost:install from the new app.
slip new . creates in the current directory only when it is completely empty,
including hidden files. Both creation modes refuse symlink destinations and
destinations inside another Git checkout. There is no force or overwrite
option. A failed installation keeps its operation-owned staging directory and
reports its path; the scaffold is its project/ child. Cleanup removes only
that operation's staging directory and retains the private operation record.
If the destination changes before the move, staging is retained for inspection
and the conflicting entry is never replaced.
Publish when you are ready:
GitHub CLI (gh) is needed only for publishing. Shipslip shows the
authenticated account, owner, repository name, visibility, commit count, and
HEAD before a separate confirmation. Repositories default to private; use
--owner OWNER --repo NAME --visibility public to request other settings.
Publishing scans the entire history being pushed for sensitive filenames,
including .env, auth.json, and private keys; .env.example is allowed.
An existing origin must point to the selected repository. Shipslip never
overwrites it or force-pushes. It verifies that the remote branch matches local
HEAD, and an interrupted publication can resume by running the command again.
The preview uses an existing origin's actual transport. If the remote repository's
visibility differs from your reviewed choice, publication stops before pushing.
An ambiguous existing repository requires choosing another name.
Creation offers publishing after the initial commit and deploy configuration
at the end. You can decline either and run slip publish github or slip init
later. When you accept both offers during slip new, Shipslip shows the new
config's diff and offers a separate config-only commit, followed by another
publication preview and confirmation. Other changes are not included.
Configure deployment only after the server has an existing checkout of the project. Shipslip does not clone an empty server destination or provision PHP, databases, a web server, or a VPS. Server bootstrap is planned separately.
From your Laravel project's Git repository, run slip init. It asks for the
environment name, SSH host alias, server path, branch, whether the environment
is production, maintenance mode, and an optional smoke URL, then writes
.shipslip.toml at the repository root. It never replaces an existing file.
For projects with package-lock.json and an npm build script, the newly
generated recipe includes npm ci and npm run build after Composer and
before Artisan optimization. Other package-manager lockfiles produce a
warning without adding build steps. If the frontend manifest or lockfiles
change during setup, restart slip init to review the updated recipe. Existing
configs are unchanged.
Or write the file yourself:
[]
= "my-app"
= "laravel"
[]
= "my-app-staging"
= "/srv/my-app"
= "main"
= false
= true
= "https://staging.example.com/health"
[]
= "my-app-production"
= "/srv/my-app"
= "main"
= true
= true
= true
= "https://example.com/health"
[]
= [
"composer install --no-interaction --no-dev --prefer-dist",
"php artisan migrate --force",
"php artisan config:cache",
]
ssh must name a host alias in your OpenSSH config, usually ~/.ssh/config.
path is the absolute server path. production is required for every
environment. steps are shell commands run in order; if [recipe.deploy] is
omitted, Shipslip announces and uses its Laravel default recipe. When
maintenance = true, Shipslip runs php artisan down before the run and
php artisan up after all steps succeed.
Shipslip watches storage/logs/laravel.log by default. Set log to another
path. With log_daily = true, log is a directory and prefix (default
storage/logs/laravel), and Shipslip follows the newest laravel-*.log.
An optional smoke_url is requested from your Mac after the deploy steps.
From anywhere in the Laravel project repository, review and approve the config before the first run:
Install slip first using the setup guide.
Shipslip searches from the current directory to the Git root for
.shipslip.toml. --config FILE selects a specific file; SHIPSLIP_CONFIG
sets a default override.
Try project creation from this checkout
To test this source checkout, build the local binary first. Run creation from a normal non-Git directory, not from inside the Shipslip source checkout:
slip_binary="/target/debug/slip"
Use a new app name on subsequent runs. To publish this app with the same build,
run "$slip_binary" publish github from its directory. To configure deployment,
run "$slip_binary" init after preparing an existing server checkout. The
installed binary can be checked with slip --version; creation and publishing
require 0.3.0 or newer.
Check Laravel installer compatibility
From this source checkout, run the script regressions and real installer matrix:
The matrix creates eleven temporary apps: nine starter-kit/auth combinations without Boost, plus plain Laravel and React with Boost. It runs application checks, moves each scaffold to a path containing spaces, and rebuilds assets. Boost cases also initialize MCP and list tools after relocation. The report retains every result and per-case logs on failure. This takes longer than unit tests and downloads Composer/npm dependencies; it does not create GitHub repositories. Weekly/manual CI runs the same matrix on macOS and Linux.
Use a local GitHub token
If the server has no GitHub credentials, use a token from your laptop for the preflight fetch:
Shipslip first inspects the server's repository, then asks for a token with
hidden input. It checks the token's GitHub account and repository visibility,
shows the username and OWNER/REPO, and lets you continue, enter another
token, or cancel. The server's fetch verifies actual read access; the normal
deploy preview and production confirmation still follow. Your SSH identity
and personal GitHub CLI login do not select the account for this token.
Need a token? The prompt includes a GitHub creation link with the repository owner and read permissions prefilled. Select the target repository and Contents: Read-only, choose an expiry, and obtain any required organization approval. Classic tokens may need SSO authorization. Follow your organization's token policy; a personal account can be used if it has the required access.
Other credential sources must be selected explicitly:
--github-token always prompts, even if an environment token or GitHub CLI
login exists. Token flags accept a source name, never a token value. Hidden
entry requires an interactive terminal. Scripts must choose env or gh
explicitly and still answer the account and deploy confirmation prompts.
Temporary authentication supports standard github.com HTTPS and SSH origins.
It fetches over HTTPS without changing the saved origin; embedded credentials,
other hosts, Git URL rewrites and redirects are refused. The repository is
pinned to the one shown at account confirmation. The trusted server receives
the token briefly in process memory over SSH. Shipslip does not save it on
either machine or include it in receipts, detached step scripts or output;
existing server credential helpers cannot save it. Existing gh credentials
stay managed by GitHub CLI. The token is used only for this fetch, not for
Composer, submodules or recipe steps. Local curl is required for account
validation. Without a token flag, server authentication works as before.
Run plans
deploy is the only plan that changes the server checkout. Reruns require the
server to already be on the clean target commit. Recipe steps are numbered
starting at 1; the built-in Git fast-forward is step 0 and is not selectable.
Read logs
logs discovers storage/logs/*.log and reads the configured log /
log_daily files over SSH. A final -YYYY-MM-DD.log suffix identifies a daily
channel; other .log files are single channels. Single and daily files with
the same name merge into one channel. It needs no Laravel package, runs no PHP or recipe steps, and leaves app files, deploy
locks, receipts and signature history unchanged. The summary groups entries
by exception class and app file, including recurring errors. Copy a group's
ID to open its latest entry and stack trace; row numbers also work, but can
move between invocations. The first 20 groups are shown unless you use --all.
The default window starts at the latest verified Shipslip run (deploy, rerun
or from-step). During a run, the header says deploy in progress. If the run
marker is missing or stale, the command uses the latest Git checkout change,
then falls back to 24 hours when no reflog is available. The header always
names the anchor; corrupt markers and Git failures are reported. --since
selects your own window instead.
NEW means the group was not found in the bounded logs immediately before
that window. Comparison spans all channels, so an error moving between
channels stays known. ? means there is no usable comparison for that group's
channels. New groups appear first; details also label new and seen message
variants. The summary aligns IDs, counts and status (NEW, seen or ?),
with the application file, channels and message on separate lines. Baseline
coverage and channels without a baseline are disclosed;
NEW is limited to that readable span, rather than the app's entire history.
A partly recognized baseline can confirm known errors, but gives ? for
otherwise unseen groups because its unparsed output is not a usable comparison.
--level includes that level and anything more severe; it defaults to error
for groups and debug for --raw. --grep matches text without regard to
case. --since accepts 30m, 6h, 7d, YYYY-MM-DD or
"YYYY-MM-DD HH:MM", up to 30 days back. Set timezone = "Asia/Kolkata"
in the environment table if Laravel writes times in that zone; the default
is UTC. Clock times are interpreted in that zone. Raw output warns when a
clock change makes ordering across files approximate.
The default read limits are 4 MiB of uncompressed log per channel and 12 MiB
total. Channels share the total fairly, with unused shares redistributed;
quiet channels get their whole file when it fits. --max-bytes replaces the
total and per-channel window limits (k, m and g use binary units).
The comparison has a separate 2 MiB per-channel / 6 MiB total limit, shared
fairly. It walks backward from the anchor through up to seven earlier daily
files; --channels includes its coverage. At most
20 channels and 50 files are selected per snapshot; omissions are reported.
Partial coverage is printed in the header and affected counts use ≥. Use
--channels to inspect each channel's files, total size, last write, format and
coverage. Files that rotate or are truncated during the snapshot are reported as changed. Individual entries
are limited to 256 KiB, with a note in the detail view when truncated.
Files resolving under storage/logs, including shared storage symlinks, need
no config approval. Reading another configured path requires slip trust ENV.
The server needs Linux with /proc, bash, GNU coreutils, gzip and tzdata.
Log output can contain secrets; treat it as private.
Deploys atomically record <git dir>/shipslip.last-run at run start and update
it before releasing the owned lock. Attach completion updates the same run.
Marker failures warn in output and receipts and never fail a deploy. The
reader uses inode, size and checksum checks to validate recorded byte
positions; rotation or copytruncate falls back to timestamps with a note.
A later checkout invalidates the run anchor, even if HEAD returns to the same
commit. An abandoned run or failed end update can show outcome unknown.
Override channels by their original name in config:
[]
= true
[]
= "billing"
[]
= "storage/logs/audit-output.txt"
hide excludes a channel before reading; rename changes its display name.
path adds a channel, or replaces the discovered files for that name. A missing
pinned path remains visible in --channels. Hidden channels cannot also set
rename or path.
Laravel headers and stack-trace lines identify recognized formats. Small
files need only one valid header. Mixed output keeps valid Laravel entries
in groups and reports the percentage recognized. JSON and other unsupported
formats are labeled and appended as file blocks by --raw. These blocks
retain file order and bypass --level and timestamp filtering; --grep
filters their lines. All output escapes terminal control characters. If no
file was written in the window, a hint explains that stderr, syslog and
service channels are invisible to this file reader.
Receipts and recovery
Each CLI run saves a local receipt before it starts a remote command. On macOS,
receipts live under ~/Library/Application Support/Shipslip/receipts/ in a
directory for the project and environment. The receipt records the approved
plan, exact commits, step results, recent step output, log watch, smoke result,
and final outcome. New receipts also record who started the run: the local
user and the checkout's Git name and email.
Treat receipts as private: command output can contain secrets.
List and read receipts without contacting the server:
Each row shows the outcome with flags for anything that needs a look:
⚠ N new error groups, ⚠ smoke 500, ⓘ log not fully observed,
ⓘ log not recorded, ⓘ smoke not recorded, and ⛔ app in maintenance mode.
A run that never finished reads Unfinished (last recorded: …), never as its
saved outcome. show prints the steps (including maintenance on/off) with exit
codes and saved output, the log watch and smoke results, and what to check
next. It only states what the receipt recorded. After a failed step, or one
whose result is unknown, Shipslip reads the server's commit and whether the
checkout has uncommitted changes (read-only, best effort); if that read fails,
show says not recorded.
--md prints Markdown with statuses, exit codes, commits, commands, and error
classes and counts, but no server output, log messages, warnings, or reasons,
and names who started the run without their email address.
--md --with-details adds them; review that output for secrets before sharing
it. Server text is escaped in both the terminal and Markdown.
Ctrl-C at the confirmation prompt cancels the run and releases the deploy lock. During the steps, Ctrl-C starts no new step and stops following the running command. During the post-deploy log watch, it ends the watch early and still finishes the run. While maintenance mode is being turned off, Shipslip finishes that first. Press Ctrl-C again to quit at once.
If slip exits while a command is running, that command continues on the
server. Resume the unfinished run from the same project with:
attach checks the saved config and asks for confirmation. It observes the
active remote command without launching it again, then continues the remaining
steps if the run still owns the deploy lock. It requires the same local receipt
and project checkout. Only one process can use a receipt at a time. If the
server cannot be reached, the receipt stays unfinished so you can try again.
If the result is unknown and the deploy lock becomes stale, first inspect the
server over SSH to confirm no command from the old run is still running. The
receipt's run ID identifies its directory under ~/.shipslip/runs/. Then
clear the stale lock and, if maintenance mode may still be on, bring the app up:
break-lock shows who holds the lock and its run ID, and only clears a lock
whose heartbeat is at least two minutes old; it asks you to type the
environment name. up takes a new deploy lock and runs
php artisan up; it asks for confirmation. Neither command resumes the old
deploy. Check the receipt and server state before choosing a new run plan.
What is on each server
slip status reads every project's receipts and approvals and prints, for each
checkout and environment, the last code they record. It works from any folder,
needs no config, and never contacts a server.
A commit is shown only when a receipt backs it: code at … when the
fast-forward succeeded (deploy incomplete if a later step did not), checked out at start for reruns, and observed … when Shipslip read the server's
commit after a failed step. Otherwise the line says server code not known,
never deployed, or target changed when the environment now points at a
different server or path. Each line also shows the last run and its flags,
and what to do next when that run needs attention. It warns when a newer
receipt could not be read, and when another checkout ran a newer deploy on the
same server path, since that run may have replaced the code. --compare uses your local checkout to count commits and notes an
incomplete deploy or dirty tree on either side.
Post-deploy checks
Shipslip compares log entries against the last 2 MiB of the log and previously observed error signatures. It watches during the deploy and for 120 seconds after the steps finish. The receipt groups new errors by exception class and app file; the displayed line number does not affect the signature. Numbers, UUIDs, and long or spaced quoted values are normalized, so some distinct errors may be grouped together. Short quoted identifiers remain distinct, so request-specific short values may appear as separate variants. "New" means first observed after this deploy, not caused by it.
When a log cannot be observed, the receipt records Partial, Unavailable, or
NoLogSeen rather than reporting zero new errors. The optional smoke check
follows at most three redirects, verifies TLS, and times out after 10 seconds.
Its HTTP status and latency are saved separately from the deploy outcome. A
failed smoke check does not undo a deploy.
Config trust
The first use of an environment, or a change to its SSH alias, path, branch,
production setting, recipe, or other configured settings, blocks deploys
until you review it with slip trust [ENV]. That command shows changes since
the last approval and asks you to type each environment name. Approvals are
stored per Git repository and environment in a local trust.json file under
Shipslip's application support directory. They are not committed to Git.
Shipslip rejects unknown config keys and checks the syntax of each generated
step with local bash -n when it loads the config. The server repeats the
syntax check during preflight, before taking the deploy lock. If local bash is
older than 4, as on stock macOS, steps using bash 4 syntax such as |& are
left to the server's check. A declined
deploy confirmation releases its lock without running recipe steps.