# al-cli

> Command line tool to manage aliases

Latest version **1.0.1** (published 2016-11-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install al-cli
pnpm add al-cli
yarn add al-cli
bun add al-cli
```

Provides the command `al`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-11-08 |
| First published | 2016-11-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Mukesh Kumar |
| Maintainers | mukeshkumar |
| Keywords | cli, terminal, path, alias, helper |

## Links

- npm: https://www.npmjs.com/package/al-cli
- Repository: https://github.com/mukesh-kumar1905/al
- Issues: https://github.com/mukesh-kumar1905/al/issues
- npm.io page: https://npm.io/package/al-cli

## Dependencies (1)

- [jsonfile](https://npm.io/package/jsonfile.md) ^2.4.0

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads
- [tg-resolve](https://npm.io/package/tg-resolve.md) — 176 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-11-08
- 1.0.0 — 2016-11-08

## README

# al

al is a CLI helper that makes [aliases](https://en.wikipedia.org/wiki/Alias_(command)) and [path](http://www.linfo.org/path_env_var.html) easy to manage.

## Installing

`npm install -g al-cli`

## Using al

* Go to folder you want to keep your configs and run `al init`. al creates configuration files to manage paths and aliases.
* Generated config file `path.json` is an array of paths of your environment paths. You can use `al addp $PATH` to add a path to config or modify paths manually to `path.json`. eg. `al addp /usr/bin` adds `/usr/bin` to path config.
* Generated config file `alias.json` is a json with key as the alias as value what you want it to alias to. It initially contains all you aliases in `.bash_profile` and `.bashrc`. You can use `al add $ALIAS '$TO'` to add an alias or you can manually edit aliases by editing `alias.json`. eg. `al add ll 'ls -la'` adds alias `ll` for `ls -la` to alias config. 
* Run `al load` to load your changes. al writes to `.bash_profile` (for future terminals) and generates a `.profile` in the current directory which can be run with `source .profile`. We have to do this an node running in a chld process of the terminal cannot modify its parent process' environment.

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