You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
###### English version [here](https://github.com/johan-perso/magic-command/blob/main/README.md).
2
+
3
+
# Magic Command
4
+
5
+
Obtenez une commande générée par IA en un instant depuis votre terminal. Utilisez n'importe quel modèle disponible sur [OpenRouter](https://openrouter.ai), **vous aurez besoin de votre propre clé d'API**.
6
+
7
+
8
+
## Installation
9
+
10
+
> Magic Command ne supporte que les versions récentes de NodeJS (v20+).
11
+
12
+
```bash
13
+
# Avec npm
14
+
npm i -g magic-command
15
+
16
+
# Ou avec pnpm
17
+
pnpm i -g magic-command
18
+
```
19
+
20
+
```bash
21
+
$ magiccommand --version
22
+
$ magiccommand --help
23
+
```
24
+
25
+
```bash
26
+
$ magiccommand "Initialise une app Vite"
27
+
28
+
# ╭ Magic Command ────────────────────────╮
29
+
# │ │
30
+
# │ npm init vite@latest │
31
+
# │ │
32
+
# │ Usage: 417 tokens, took 1.10 secs │
33
+
# │ │
34
+
# ╰───────────────────────────────────────╯
35
+
```
36
+
37
+
38
+
## Configuration
39
+
40
+
Vous aurez besoin d'ajouter votre clé d'API [OpenRouter](https://openrouter.ai) dans vos variables d'environnement, cela se fait généralement via le fichier `.bashrc` ou `.zshrc` sur macOS et Linux.
###### Version française [ici](https://github.com/johan-perso/magic-command/blob/main/README.fr.md).
2
+
3
+
# Magic Command
4
+
5
+
Get an AI-generated command instantly from your terminal. Use any model available on [OpenRouter](https://openrouter.ai), **you'll need your own API key**.
6
+
7
+
8
+
## Installation
9
+
10
+
> TeableToJSON only supports recent versions of NodeJS (v20+).
11
+
12
+
```bash
13
+
# With npm
14
+
npm i -g magic-command
15
+
16
+
# Or with pnpm
17
+
pnpm i -g magic-command
18
+
```
19
+
20
+
```bash
21
+
$ magiccommand --version
22
+
$ magiccommand --help
23
+
```
24
+
25
+
```bash
26
+
$ magiccommand "Init Vite App"
27
+
28
+
# ╭ Magic Command ────────────────────────╮
29
+
# │ │
30
+
# │ npm init vite@latest │
31
+
# │ │
32
+
# │ Usage: 417 tokens, took 1.10 secs │
33
+
# │ │
34
+
# ╰───────────────────────────────────────╯
35
+
```
36
+
37
+
38
+
## Configuration
39
+
40
+
You will need to add your [OpenRouter](https://openrouter.ai) API key to your environment variables, this is usually done through the `.bashrc` or `.zshrc` file on macOS and Linux.
0 commit comments