-
Notifications
You must be signed in to change notification settings - Fork 38
Feature/cross platform installation scripts #351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 10 commits
bd82371
5b625cf
67a58ba
fd6923b
b9aa430
2fe3b41
edc982f
db83732
b263422
6f49ab1
8e7d159
f5f9503
cfc3841
4034f17
3f457ac
5bfa8af
927a234
de7d866
0143854
1e3956b
d7afe69
d5bed75
394d274
9f0c329
0bf485f
2ca25d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ | |
| </p> | ||
|
|
||
| ##### <p align="center"> [Website](https://pieces.app/) • [PiecesOS Documentation](https://docs.pieces.app/) • [Pieces CLI Documentation](https://docs.pieces.app/extensions-plugins/cli) | ||
|
|
||
| </p> | ||
|
|
||
| [](https://www.youtube.com/watch?v=kAgwHMxWY8c) | ||
|
|
@@ -30,6 +31,22 @@ To get started with the Pieces Python CLI Tool, you need to: | |
| 1. Ensure PiecesOS is installed and running on your system. | ||
| 2. Install the Python package: | ||
|
|
||
| **Installer Script (Recommended):** | ||
|
|
||
| > **Requirements:** Python 3.11 or higher is required for the installation scripts. | ||
|
|
||
| ```bash | ||
| # macOS/Linux | ||
bishoy-at-pieces marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| curl -fsSL https://raw.githubusercontent.com/pieces-app/cli-agent/main/install_pieces_cli.sh | sh | ||
|
||
| ``` | ||
|
|
||
| ```powershell | ||
| # Windows (PowerShell) | ||
| irm https://raw.githubusercontent.com/pieces-app/cli-agent/main/install_pieces_cli.ps1 | iex | ||
| ``` | ||
|
|
||
| **Package Managers:** | ||
|
|
||
| ```bash | ||
| pip install pieces-cli | ||
| ``` | ||
|
|
@@ -63,26 +80,30 @@ pieces completion [shell] | |
| **Quick setup commands for each shell:** | ||
|
|
||
| - **Bash:** | ||
|
|
||
| ```bash | ||
| echo 'eval "$(pieces completion bash)"' >> ~/.bashrc && source ~/.bashrc | ||
| ``` | ||
|
|
||
| - **Zsh:** | ||
|
|
||
bishoy-at-pieces marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ```zsh | ||
| echo 'eval "$(pieces completion zsh)"' >> ~/.zshrc && source ~/.zshrc | ||
| ``` | ||
|
|
||
| - **Fish:** | ||
|
|
||
| ```fish | ||
| echo 'pieces completion fish | source' >> ~/.config/fish/config.fish && source ~/.config/fish/config.fish | ||
| ``` | ||
|
|
||
| - **PowerShell:** | ||
|
|
||
| ```powershell | ||
| Add-Content $PROFILE '$completionPiecesScript = pieces completion powershell | Out-String; Invoke-Expression $completionPiecesScript'; . $PROFILE | ||
| ``` | ||
|
|
||
| After setup, restart your terminal or source your configuration file. Then try typing `pieces ` and press **Tab** to test auto-completion! | ||
| After setup, restart your terminal or source your configuration file. Then try typing `pieces` and press **Tab** to test auto-completion! | ||
|
|
||
| ## Usage | ||
|
|
||
|
|
@@ -198,7 +219,7 @@ coverage report | |
| To uninstall the project, run the following command: | ||
|
|
||
| ```shell | ||
| pip uninstall pieces-cli | ||
| pieces manage uninstall | ||
| ``` | ||
|
|
||
| Don't forget to remove the virtual environment and dist folder | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.