https://github.com/anyshortcut/anyshortcut-cli
CLI (Commnad line interface) version of Anyshortcut
https://github.com/anyshortcut/anyshortcut-cli
cli command-line-app command-line-tool productivity-tools rust shortcuts
Last synced: 17 days ago
JSON representation
CLI (Commnad line interface) version of Anyshortcut
- Host: GitHub
- URL: https://github.com/anyshortcut/anyshortcut-cli
- Owner: anyshortcut
- License: apache-2.0
- Created: 2018-04-03T09:02:27.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-17T12:35:37.000Z (over 4 years ago)
- Last Synced: 2025-03-01T21:03:26.878Z (about 1 month ago)
- Topics: cli, command-line-app, command-line-tool, productivity-tools, rust, shortcuts
- Language: Rust
- Homepage: https://anyshortcut.com
- Size: 139 KB
- Stars: 93
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- jimsghstars - anyshortcut/anyshortcut-cli - CLI (Commnad line interface) version of Anyshortcut (Rust)
README

# Anyshortcut Command Line Interface[](https://travis-ci.com/anyshortcut/anyshortcut-cli)
[](https://github.com/anyshortcut/anyshortcut-cli/blob/master/LICENSE-MIT)
[](https://github.com/anyshortcut/anyshortcut-cli/blob/master/LICENSE-APACHE)
[](https://crates.io/crates/anyshortcut)A blaze fast way to launch your favorite website in Terminal.
## Installation
#### Cargo
`cargo install anyshortcut`
#### Homebrew
`brew install anyshortcut`
> Unmerged: https://github.com/Homebrew/homebrew-core/pull/33198
#### Install binary file from Github release
https://github.com/anyshortcut/anyshortcut-cli/releases
**Recommend**
> Give it an alias name such as **as** by adding following line to your
> **.bashrc** or **.zshrc** file:
>
> ```shell
> alias as=$(which anyshortcut)
> ```
>
> then source your profile to make it works.## Usage
```
$ anyshortcut
A blaze fast way to launch your favorite website in Terminal.USAGE:
anyshortcut [ARGS] [SUBCOMMAND]ARGS:
Using primary shortcut key (A~Z|0~9) or compound shortcut key (AA~ZZ) to open the url.
Use secondary shortcut key (A~Z|0~9) to open the url.SUBCOMMANDS:
list List shortcuts.
login Login with the token.
logout Logout and clean local data.
sync Sync all shortcuts after login.```
- `as `
Using the primary shortcut to launch the website.
**PRIMARY_KEY** is in the form of a case-insensitive alphanumeric letter range **A ~ Z** or **0 ~ 9**.
For example:
```
$ as g
Url: https://www.google.com/
```- `as `
Using the compound shortcut to launch the website.
**COMPOUND_KEY** is in the form of two case-insensitive alphabet letters range **AA ~ ZZ**.
For example:
```
$ as db
Url: https://www.dropbox.com/
```- `as | `
Using the secondary shortcut to launch the website.
**SECONDARY_KEY** is in the form of an case-insensitive alphanumeric letter range **A ~ Z** or **0 ~ 9**.
For example:
```
$ as g t
Url: https://translate.google.com/
```- `as login [TOKEN]` or `as login` to prompt input `TOKEN`
Login with access token then sync your shortcuts automatically. You can find the access token at
official website [Account Profile](https://anyshortcut.com/account#/profile/) -> **API Access**.- `as sync`
Sync your shortcuts to local manually.
```
$ as sync
Syncing your shortcut data...Shortcuts synced success!
Primary shortcut number: 120
Secondary shortcut number: 150All your data stored at ~/.anyshortcut directory.
```- `as list`
List your shortcuts.
```
USAGE:
anyshortcut list [OPTIONS]OPTIONS:
-c, --compound List all compound shortcuts.
-p, --primary List all primary shortcuts.
-s, --secondary List all secondary shortcuts.
```- `as logout`
Logout and all local data will be cleaned.
## Future plans
- [ ] Support bind shortcut
- [ ] Support delete shortcut