Skip to content

Installation

Terminal window
curl -fsSL https://raw.githubusercontent.com/mycli-sh/mycli/main/scripts/install.sh | sh

This detects your OS and architecture, downloads the latest release, and installs the my binary to /usr/local/bin (or ~/.local/bin if not writable).

Terminal window
my --help

You should see the top-level help output listing available commands.

Enable tab completion for commands, arguments, and flags by generating a completion script for your shell:

Terminal window
# Bash
my completion bash > /etc/bash_completion.d/my
# Zsh
my completion zsh > "${fpath[1]}/_my"
# Fish
my completion fish > ~/.config/fish/completions/my.fish
# PowerShell
my completion powershell > my.ps1

After installing the script, restart your shell (or source the file) to activate completions. Tab completion works for command names, subcommands, and arguments like command slugs, library names, and source names.

To update mycli to the latest version:

Terminal window
my cli update

mycli also checks for updates automatically and notifies you when a new version is available.