Skip to content

Commit cd38d3e

Browse files
committed
cli: add windows command to readme
wow this was a pain to write
1 parent 8e51b3f commit cd38d3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Download the "Linux x86_64" or "Linux ARM64" file from [fh.novatea.dev/cli](http
1919
### macOS
2020
Download the `Apple Silicon` or `Intel Macs` version (depending on which type of Mac you have) from [fh.novatea.dev/cli](https://fh.novatea.dev/cli)! Open a terminal and run the following command, filling in the version and architecture placeholders first: `sudo mv ~/Downloads/folderharbor-cli-<version>-macos-<arch> /usr/bin/folderharbor && chmod +x /usr/bin/folderharbor`. Then, open a terminal and run `folderharbor --help`! If you see a help prompt, the installation was successful! Go on to running `folderharbor auth login` or `folderharbor auth register` :3
2121
### Windows
22-
Download the `Windows` file from [fh.novatea.dev/cli](https://fh.novatea.dev/cli)! Open PowerShell and run the following command, filling in the blank for version: `Move-Item -Path "$env:USERPROFILE\Downloads\folderharbor-cli-<version>-windows-amd64.exe" -Destination "C:\Program Files\folderharbor.exe"`. Restart PowerShell, then run `folderharbor --help`! If you see a help prompt, the installation was successful! Go on to running `folderharbor auth login` or `folderharbor auth register` :3
22+
Download the `Windows` file from [fh.novatea.dev/cli](https://fh.novatea.dev/cli)! Open an Administrator PowerShell and run the following command: `New-Item -Path "C:\Program Files\FolderHarbor" -ItemType Directory ; Move-Item -Path "$env:USERPROFILE\Downloads\folderharbor-cli-*-windows-amd64.exe" -Destination "C:\Program Files\FolderHarbor\folderharbor.exe" ; [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\FolderHarbor", [EnvironmentVariableTarget]::Machine)`. Restart PowerShell, then run `folderharbor --help`! If you see a help prompt, the installation was successful! Go on to running `folderharbor auth login` or `folderharbor auth register` :3
2323
## Commands
2424
I might add more commands in the future, but here's a guide to some key commands:
2525
- `folderharbor --help`: Get a list of commands! You can add `--help` to any command to see information about it.

0 commit comments

Comments
 (0)