Aisha is a command-line tool that uses AI to convert natural language descriptions into PowerShell or DOS commands. It leverages the Claude AI model to generate accurate commands based on user input.
- for example, run
aisha list files by size
- it will show you the Powershell command, and also copy it to clipboard
- Just hit
Ctrl + V
to paste it in your terminal and hit enter to run it
-
Download the
aisha.exe
file from the latest release. -
Choose a permanent location for
aisha.exe
. For example:C:\Users\YourUsername\Tools
orC:\Program Files\Aisha
-
Add the chosen directory to your system's PATH:
- Press Win + X and select "System"
- Click on "Advanced system settings"
- Click the "Environment Variables" button
- In the "System variables" section, find and select the "Path" variable, then click "Edit"
- Click "New" and add the full path to the folder containing aisha.exe
- Click "OK" on all dialogs to save your changes
-
Restart any open command prompts or PowerShell windows for the changes to take effect.
aisha <natural language command>
This will generate a PowerShell command based on your natural language input.
-dos
: Generate a DOS command instead of PowerShellaisha -dos <natural language command>
To set up your Claude API key:
aisha config
This will prompt you to enter your API key, which will be securely stored for future use.
-
Generate a PowerShell command:
aisha list all files in the current directory Returns: PowerShell command: Get-ChildItem Command copied to clipboard. aisha sum of size of all files in this folder Returns: PowerShell command: (Get-ChildItem -File | Measure-Object -Property Length -Sum).Sum Command copied to clipboard. aisha sum of size of all files in this folder. make the result human readable with commas Returns: PowerShell command: (Get-ChildItem -File | Measure-Object -Property Length -Sum).Sum | ForEach-Object { "{0:N0}" -f $_ } Command copied to clipboard.
-
Generate a DOS command:
aisha -dos list all files in the current directory
-
Configure the API key:
aisha config
- Converts natural language to PowerShell or DOS commands
- Securely stores your Claude API key
- Automatically copies the generated command to your clipboard
- Works from any directory once added to PATH
If you encounter any issues:
- Ensure your API key is correctly configured using
aisha config
- Check your internet connection, as Aisha requires online access to the Claude API
- If the command isn't recognized, make sure you've added Aisha to your PATH correctly and restarted your terminal
Contributions to Aisha are welcome! Please feel free to submit pull requests or create issues for bugs and feature requests.
[Specify your license here]
This tool uses AI to generate commands. While it strives for accuracy, always review the generated commands before execution, especially for critical or sensitive operations.