https://github.com/bopdesign/terminus-scripts
This is a project meant to help with everyday work with terminus using command line only.
https://github.com/bopdesign/terminus-scripts
Last synced: about 2 months ago
JSON representation
This is a project meant to help with everyday work with terminus using command line only.
- Host: GitHub
- URL: https://github.com/bopdesign/terminus-scripts
- Owner: bopdesign
- License: gpl-3.0
- Created: 2017-03-22T23:27:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-23T21:52:34.000Z (about 8 years ago)
- Last Synced: 2025-02-04T18:43:33.569Z (4 months ago)
- Language: Shell
- Size: 19.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Terminus Scripts
This is a project for the [Pantheon](https://pantheon.io/) clients, who want to utilize it's command line interface, [Terminus](https://pantheon.io/docs/terminus/).
The scripts are meant to ease the everyday work with Terminus, so you don't have to remember all the commands and parameters.## Requirements
**This project uses shell aliases to call scripts as commands, however it's not required.** So you can call a script using the syntax:
```bash
$ sh terminus-scripts/[script-name].sh command options
```If you have not worked with a shell files before, I would recommend reading [The Bash Shell Startup Files](http://www.linuxfromscratch.org/blfs/view/7.6/postlfs/profile.html), a post that explains what you need to know.
Most crucial files to setup would be - `/etc/profile`, `~/.bash_profile` and `~/.bashrc`.## Quickstart
### 1. Enter a folder to clone the repository to:
```bash
$ cd my-working-folder/
$ git clone https://github.com/bopdesign/terminus-scripts.git
```### 2. While you're working on your project, run:
```bash
$ sh path-to-scripts/terminus-scripts/connection-set.sh sftp -s yoursite -e dev
```
This will set `yoursite` connection of `dev` environment to `sftp` mode (excludes Test and Live)If you have an alias called `mode`, which runs the `connection-set.sh` script, you can alternatively type this:
```bash
$ mode sftp -s yoursite -e dev
```## Contents
This is the list of currently available script files.
Each script contains documentation on how to use it, which can be accessed by calling a script with the standard flag `-h` or `--help`* `multidev-create.sh` - creates a multidev environment
* `connection-set.sh` - sets Git or SFTP connection mode on a development environment (excludes Test and Live)
* `env-clone-content.sh` - clones from one environment to the other on a specified site
* `env-clear-cache.sh` - clears cache on an environment