MCPcopy Index your code
hub / github.com/burgerbuds/swiff

github.com/burgerbuds/swiff @v.1.5.10

Chat with this repo
repository ↗ · DeepWiki ↗ · release v.1.5.10 ↗ · + Follow
53 symbols 173 edges 12 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Swiff

npm version

Swiff saves you time with common SSH tasks during the development of websites/apps

🚀 Folder push and pull

Keep folders in sync between servers

💫 Database push and pull

Manage the database between servers (auto backup)

🎩 Composer file push and pull

Move composer files between servers (auto backup)

💻 Remote terminal connection

Launch a SSH session directly into the remote site/app folder

Getting started

  1. Install Swiff globally with npm:

npm install --global swiff

  1. Run swiff within a project folder to start the task interface

Run swiff --help for a list of flags to run a specific task

Additional features

  • Custom SSH identity: Swiff will attempt to use your identity located at: /Users/[currentUser]/.ssh/id_rsa

You can specify a custom SSH key path in your .env file with:

SWIFF_CUSTOM_KEY="/Users/[your-user]/.ssh/[key-filename]" - Gzipped backups: Your files and database get backed up and gzipped whenever they change - Disable specific tasks: Specify the tasks to disable with a config setting

Requirements

Swiff requires MySQL to use the database features. We recommend using MariaDB, an enhanced, drop-in replacement for MySQL. brew install mariadb@10.2 (latest as of April 2019)

For the Database & Composer tasks, a PEM format SSH key is required

Read about how to create and add a new SSH key

Running Windows or Linux? Swiff has been tested on macOS so issues are likely on other operating systems

Technology

  • Node.js - A JavaScript runtime built on Chrome's V8 JavaScript engine
  • Ink 2 - React for interactive command-line apps
  • Babel - JavaScript transpiling
  • Prettier - Code cleaning

Credits

Sounds by Emoji Sounds

Created by @benrogerson and Sam Stevens

Swiff has been agency battletested by Simple who specialise in Craft CMS websites

Core symbols most depended-on inside this repo

colourNotice
called by 26
src/palette.js
colourHighlight
called by 25
src/palette.js
colourAttention
called by 19
src/palette.js
executeCommands
called by 9
src/utils.js
colourMuted
called by 7
src/palette.js
doesFileExist
called by 6
src/utils.js
getSshFile
called by 5
src/ssh.js
isTaskRunning
called by 4
src/Swiff.js

Shape

Function 52
Class 1

Languages

TypeScript100%

Modules by API surface

src/database.js12 symbols
src/ssh.js11 symbols
src/utils.js9 symbols
src/palette.js5 symbols
src/env.js5 symbols
src/Swiff.js5 symbols
src/config.js4 symbols
src/index.js2 symbols

For agents

$ claude mcp add swiff \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact