پرش به مطلب اصلی

arianet auth

این مرجع در هر نسخه به طور خودکار از راهنمای خود CLI ساخته می‌شود، پس همیشه با آخرین نسخه arianet یکی است. متن راهنمای هر دستور همان متن انگلیسی است که arianet <command> --help نشان می‌دهد. برای نصب، تنظیم توکن و شروع کار، صفحه رابط خط فرمان را ببینید.

فلگ‌های سراسری با همه دستورهای این صفحه کار می‌کنند.

arianet auth​

Manage authentication and API tokens

نحوه استفاده

arianet auth <command>

زیردستورها

  • logout: Revoke the current API token
  • tokens: Manage API tokens
  • whoami: Show the current authenticated user

arianet auth logout​

Revoke the current API token

Revokes the current API token on the server and removes it from your local config.

نحوه استفاده

arianet auth logout [flags]

مثال‌ها

arianet auth logout
arianet auth logout --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
-y, --yesboolskip confirmation prompt

arianet auth tokens​

Manage API tokens

نحوه استفاده

arianet auth tokens <command>

زیردستورها

  • list: List all API tokens
  • revoke: Revoke an API token by ID

arianet auth tokens list​

List all API tokens

نحوه استفاده

arianet auth tokens list [flags]

مثال‌ها

arianet auth tokens list
arianet auth tokens list --output json

arianet auth tokens revoke​

Revoke an API token by ID

نحوه استفاده

arianet auth tokens revoke <id> [flags]

مثال‌ها

arianet auth tokens revoke 5
arianet auth tokens revoke 5 --yes

فلگ‌ها

فلگنوعپیش‌فرضتوضیح
-y, --yesboolskip confirmation prompt

arianet auth whoami​

Show the current authenticated user

نحوه استفاده

arianet auth whoami [flags]

مثال‌ها

arianet auth whoami
arianet auth whoami --output json