https://github.com/Watfaq/PowerSession
Record a Session in PowerShell
https://github.com/Watfaq/PowerSession
asciinema conpty powersession powershell
Last synced: about 2 months ago
JSON representation
Record a Session in PowerShell
- Host: GitHub
- URL: https://github.com/Watfaq/PowerSession
- Owner: Watfaq
- License: mit
- Created: 2019-09-26T14:53:59.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-08T09:04:02.000Z (over 2 years ago)
- Last Synced: 2024-08-03T22:17:58.620Z (11 months ago)
- Topics: asciinema, conpty, powersession, powershell
- Language: C#
- Homepage:
- Size: 250 KB
- Stars: 154
- Watchers: 5
- Forks: 9
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - Watfaq/PowerSession - Record a Session in PowerShell (C# #)
README
# PowerSession
> Record a Session in PowerShell.
**‼️ DEPRECATED Checkout the brand new Rust implementation: https://github.com/Watfaq/PowerSession-rs ‼️**
PowerShell version of [asciinema](https://github.com/asciinema/asciinema) based on [Windows Pseudo Console(ConPTY)](https://devblogs.microsoft.com/commandline/windows-command-line-introducing-the-windows-pseudo-console-conpty/)
## Checkout A Demo
[](https://asciinema.org/a/272866)
## Compatibilities
* The output is comptible with asciinema v2 standard and can be played by `ascinnema`.
* The `auth` and `upload` functionalities are agains `asciinema.org`.## Installation
### using dotnet tool
```
> dotnet tool install --global PowerSession
```### Using [Scoop](https://scoop.sh)
```
> scoop install PowerSession
```### Manual Download
Download `PowerSession.exe` at Release Page https://github.com/ibigbug/PowerSession/releases
## Usage
### Record
```PowerShell
$ PowerSession.Cli.exe rec a.txt
```### Play
```PowerShell
$ PowerSession.Cli.exe play a.txt
```### Auth
```PowerShell
$ PowerSession.Cli.exe auth
```### Upload
```PowerShell
$ PowerSession.Cli.exe upload a.txt
```### Get Help
```PowerShell
$ PowerSession.exe rec -hrec:
Record and save a sessionUsage:
PowerSession rec [options]Arguments:
The filename to save the recordOptions:
-c, --command The command to record, default to be powershell.exe
```## Supporters
- [GitBook](https://www.gitbook.com/) Community License