---
title: Ysra CLI on Windows
description: Install the Ysra CLI on Windows with PowerShell, how commands are approved there, and how to run them contained with WSL.
sidebar_title: Windows
---

The CLI runs on Windows from version 1.1.0.

## Install

In PowerShell:

```powershell
irm https://ysra.ai/install.ps1 | iex
```

- No administrator rights are needed.
- The download is checked against its published checksum before it is
  installed.
- `ysra.exe` goes into `%LOCALAPPDATA%\Ysra\bin`, which is added to your
  `PATH`. Open a new terminal afterwards.

Then:

```powershell
ysra login
cd C:\code\billing-service
ysra
```

Your sign-in is stored encrypted for your Windows account. `ysra update` and
`ysra uninstall` work as on other systems.

--8<-- "windows-commands.md"

## Turn WSL on or off

```powershell
ysra wsl        # run commands contained inside WSL
ysra wsl off    # back to asking before each command
```

`ysra doctor` shows which one is in effect on its `commands` line.
