# scrippets

> Save and execute your favorite terminal scripts easily

Latest version **0.0.11** (published 2016-06-25) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install scrippets
pnpm add scrippets
yarn add scrippets
bun add scrippets
```

Provides the command `scrippets`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.11 |
| Published | 2016-06-25 |
| First published | 2016-06-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Nir Elbaz |
| Maintainers | nire0510 |
| Keywords | shell, terminal, cmd, node, snippets, scripts, bash |

## Links

- npm: https://www.npmjs.com/package/scrippets
- Repository: https://github.com/nire0510/scrippets
- Homepage: https://github.com/nire0510/scrippets#readme
- Issues: https://github.com/nire0510/scrippets/issues
- npm.io page: https://npm.io/package/scrippets

## Dependencies (5)

- [colors](https://npm.io/package/colors.md) ^1.1.2
- [inquirer](https://npm.io/package/inquirer.md) ^1.0.3
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [string-argv](https://npm.io/package/string-argv.md) 0.0.2
- [node-persist](https://npm.io/package/node-persist.md) 0.0.11

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.11 (latest) — 2016-06-25
- 0.0.10 — 2016-06-24

## README

# Scrippets

###### Save and execute your favorite terminal scripts easily

Do you find yourself searching the web again and again for the command format of one of the dozens 
CLI tools out there? _then search no more!_  
**Scrippets** is a simple CLI tool itself, which allows you to store your frequently used commands
locally on your file system, assign a friendly alias and execute whenever needed.

### Installation
`npm install -g scrippets`

### Usage
`Usage: scrippets [options] [command]`

### Commands
* `upsert|set [options] <command>`         add a new scrippet or update existing one  
* `move|mv [options] <from> <to>`      rename a scrippet and optionally update its description
* `remove|rm [options] [alias...]`  remove a one or more scrippets  
* `list|ls [options] [filter]`   show all scrippets with optional filter  
* `execute|x <alias>`              execute a scrippet

### Options
`-h, --help`          output usage information  
`-V, --version`       output the version number  
`-C, --chdir <path>`  change the working directory  

### Cues
* `<...>` - mandatory value
* `[...]` - optional value

### Examples
* `scrippets upsert -n my-ip -d "get my public ip address" "curl http://ifconfig.me/ip"` - adds a new scrippet
  with predefined alias **my-ip** and description
* `scrippets ls ip` - searches for all scrippets which contains **ip** in their alias or description
* `scrippets x my-ip` - execute a scrippet with alias **my-ip**
* `scrippets rm -rf` - removes all scrippets
* `scrippets --chdir /Users/nir/Dropbox/scrippets` - changes scrippets directory to `/Users/nir/Dropbox/scrippets`

### Tips & Tricks
* Call any of the commands with `-h` parameter to see its help
* Always use absolute paths  (avoid shortcuts symbols such as ~, .. etc)
* Assign a shorter alias to `scrippets` command (e.g. `alias sc=scrippets`)
* You do not have to remember the command's exact alias. If no scrippets found with the exact alias, similar options
will be displayed
* Change scrippets directory to Dropbox, Google Drive or other online storage service, to have your scrippets on all 
of your workstations
* If you get **EACCES: permission denied** error on first run, either run as sudo (only once),
or change your global `node_modules` directory to a path you have **write** access to
* If you get **Permission denied (publickey)** error while running ssh scrippet, make sure your public key path is
absolute (i.e. do not start path with tilde ~)

---
_Source: https://npm.io/package/scrippets · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
