Files
website/apps/docs/content/docs/cli/authentication.mdx
2026-05-30 17:50:36 +02:00

30 lines
903 B
Plaintext

---
title: Authentication
description: A guide to authenticating with the Dokploy CLI
---
The Dokploy CLI uses a token-based authentication system. To authenticate, you'll need to create an access token and store it securely.
## Creating an Access Token
To create an access token, first you need to have permissions if you are admin you don't need permissions.
by default access token never expires.
You can go to `dashboard/settings/profile` and click on the `Generate` button.
<ImageZoom src="/assets/cli/token.png" width={800} height={630} alt='home og image' className="rounded-lg" />
## Storing the Access Token
Dokploy when you create an access token automatically will generate a config.json with the access token and the server url.
## Commands
1. `dokploy auth -u <host> -t <token>` - Authenticate with the Dokploy CLI.
2. `dokploy verify` - Verify if the access token is valid.