diff --git a/docs/documentation/community/faq.mdx b/docs/documentation/community/faq.mdx index c55bf15..706b806 100644 --- a/docs/documentation/community/faq.mdx +++ b/docs/documentation/community/faq.mdx @@ -12,7 +12,7 @@ Check out the answers to the most frequently asked questions about Relay. If you - Install the CLI with `pip install relaycli`, then run `relay account add` to connect your first email account. + Install the CLI with `pip install relaycli`, then run `relay accounts add` to connect your first email account. The [quickstart guide](/documentation/getting-started/quickstart) walks you through the entire setup in under 5 minutes. @@ -43,7 +43,7 @@ Check out the answers to the most frequently asked questions about Relay. If you - Yes! Connect unlimited email accounts with `relay account add` and switch between them or manage them all simultaneously. + Yes! Connect unlimited email accounts with `relay accounts add` and switch between them or manage them all simultaneously. Each account gets its own secure credential storage. diff --git a/docs/reference/cli/accounts.mdx b/docs/reference/cli/accounts.mdx index c335561..659d5d8 100644 --- a/docs/reference/cli/accounts.mdx +++ b/docs/reference/cli/accounts.mdx @@ -89,10 +89,10 @@ For Gmail, you'll need to use an App Password instead of your regular password. Display all configured email accounts in a formatted table. ```shell -relay account list +relay accounts list ``` -**Alias:** `relay account ls` +**Alias:** `relay accounts ls` The output shows: - Account name @@ -112,7 +112,7 @@ Remove an account and its stored credentials from your system. ```shell -relay account remove work +relay accounts remove work ``` The CLI will ask for confirmation before removing the account. @@ -120,7 +120,7 @@ The CLI will ask for confirmation before removing the account. ```shell -relay account remove work --force +relay accounts remove work --force ``` **Aliases:** `--force`, `-f`, `-y` @@ -138,7 +138,7 @@ This action is irreversible. You'll need to re-add the account if you want to us Verify that your account credentials are working and the server is reachable. ```shell -relay account test work +relay accounts test work ``` This command will: diff --git a/relay/cli/commands/messages.py b/relay/cli/commands/messages.py index 409a4de..089d86a 100644 --- a/relay/cli/commands/messages.py +++ b/relay/cli/commands/messages.py @@ -49,7 +49,7 @@ def _get_account_manager_and_client(account: str) -> tuple[AccountManager, Any, if not account: accounts = manager.list_accounts() if not accounts: - console.print("[red]✗ No accounts configured. Use 'relay account add' to add an account.[/red]") + console.print("[red]✗ No accounts configured. Use 'relay accounts add' to add an account.[/red]") raise typer.Exit(1) account = accounts[0].name console.print(f"[dim]Using account: {account}[/dim]") @@ -73,7 +73,7 @@ def wrapper(*args, **kwargs): return func(*args, **kwargs) except AccountNotFoundError as e: console.print(f"[red]✗ {e}[/red]") - console.print("[dim]Use 'relay account list' to see available accounts[/dim]") + console.print("[dim]Use 'relay accounts ls' to see available accounts[/dim]") raise typer.Exit(1) except AuthenticationError as e: console.print(f"[red]✗ {e}[/red]") diff --git a/scripts/install.sh b/scripts/install.sh index 000946d..062de93 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -108,7 +108,7 @@ main() { log "" log "🎉 Relay CLI installed successfully!" - log "Run 'relay account add' to get started" + log "Run 'relay accounts add' to get started" log "Documentation: https://docs.relaycli.com" }