Installation ​
Install the Asena CLI globally to access the asena command from anywhere on your system.
Prerequisites ​
Required:
- Bun runtime v1.2.8 or higher
Verify Bun installation:
bash
bun --versionIf Bun is not installed, install it:
bash
# macOS, Linux, and WSL
curl -fsSL https://bun.sh/install | bash
# Windows (PowerShell)
powershell -c "irm bun.sh/install.ps1 | iex"Install Asena CLI ​
Install globally using Bun:
bash
bun install -g @asenajs/asena-cliVerify Installation ​
Check that the CLI is installed correctly:
bash
asena --versionYou should see the version number (e.g., 0.2.0).
View available commands:
bash
asena --helpUpdate Asena CLI ​
To update to the latest version:
bash
bun install -g @asenajs/asena-cli@latestUninstall ​
To remove the CLI:
bash
bun remove -g @asenajs/asena-cliTroubleshooting ​
Command Not Found ​
If you see asena: command not found, make sure Bun's global bin directory is in your PATH:
Check your PATH:
bash
echo $PATHAdd Bun's bin directory to your PATH (if needed):
bash
# For bash
echo 'export PATH="$HOME/.bun/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# For zsh
echo 'export PATH="$HOME/.bun/bin:$PATH"' >> ~/.zshrc
source ~/.zshrcPermission Errors ​
If you encounter permission errors during installation:
bash
# On Linux/macOS, you may need sudo
sudo bun install -g @asenajs/asena-cliVersion Mismatch ​
If you have an old version installed, force reinstall:
bash
bun remove -g @asenajs/asena-cli
bun install -g @asenajs/asena-cliNext Steps ​
Now that the CLI is installed:
Related Documentation: