# Kiro IDE Terminal Setup Guide
This guide helps you set up Kiro IDE to launch from the terminal similar to how VS Code can be launched with the `code` command.
## Step 1: Check Kiro IDE installation location
```bash
find /Applications -name "Kiro*.app" 2>/dev/null
```
Result: Kiro IDE is installed at `/Applications/Kiro.app`
## Step 2: Check application structure
```bash
ls -la /Applications/Kiro.app/Contents/
ls -la /Applications/Kiro.app/Contents/MacOS/
```
Result: Kiro IDE doesn't have a built-in command-line tool like VS Code.
## Step 3: Check current shell
```bash
echo $SHELL
```
Result: `/bin/zsh` (you're using zsh shell)
## Step 4: Check zsh configuration file
```bash
ls -la ~/.zshrc
```
Result: The zsh configuration file exists at `~/.zshrc`
## Step 5: Add alias to .zshrc file
```bash
echo '
# Alias to launch Kiro IDE from terminal
alias kiro="open -a Kiro"' >> ~/.zshrc
```
## Step 6: Create launch script in /usr/local/bin
```bash
cat << 'EOF' > /tmp/kiro
#!/bin/bash
open -a Kiro "$@"
EOF
chmod +x /tmp/kiro
sudo mv /tmp/kiro /usr/local/bin/kiro
```
## Usage
### Method 1: Using the alias
1. Activate the alias immediately:
```bash
source ~/.zshrc
```
2. Launch Kiro IDE:
```bash
kiro
```
3. Open a specific file or directory:
```bash
kiro path/to/file-or-directory
```
### Method 2: Using the script in /usr/local/bin
1. Launch Kiro IDE:
```bash
kiro
```
2. Open a specific file or directory:
```bash
kiro path/to/file-or-directory
```
## Important Notes
- The alias will be automatically loaded when you open a new terminal
- If you encounter permission issues when creating the script in /usr/local/bin, you can just use the alias method
- Both methods allow you to pass a path to a file or directory you want to open with Kiro IDE