github.com/argoproj/argo-cd@v1.8.7/docs/user-guide/commands/argocd_account_generate-token.md (about)

     1  ## argocd account generate-token
     2  
     3  Generate account token
     4  
     5  ### Synopsis
     6  
     7  Generate account token
     8  
     9  ```
    10  argocd account generate-token [flags]
    11  ```
    12  
    13  ### Examples
    14  
    15  ```
    16  # Generate token for the currently logged in account
    17  argocd account generate-token
    18  
    19  # Generate token for the account with the specified name
    20  argocd account generate-token --account <account-name>
    21  ```
    22  
    23  ### Options
    24  
    25  ```
    26    -a, --account string      Account name. Defaults to the current account.
    27    -e, --expires-in string   Duration before the token will expire. (Default: No expiration) (default "0s")
    28    -h, --help                help for generate-token
    29        --id string           Optional token id. Fallback to uuid if not value specified.
    30  ```
    31  
    32  ### Options inherited from parent commands
    33  
    34  ```
    35        --auth-token string               Authentication token
    36        --client-crt string               Client certificate file
    37        --client-crt-key string           Client certificate key file
    38        --config string                   Path to Argo CD config (default "/home/user/.argocd/config")
    39        --grpc-web                        Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2.
    40        --grpc-web-root-path string       Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2. Set web root.
    41    -H, --header strings                  Sets additional header to all requests made by Argo CD CLI. (Can be repeated multiple times to add multiple headers, also supports comma separated headers)
    42        --insecure                        Skip server certificate and domain verification
    43        --logformat string                Set the logging format. One of: text|json (default "text")
    44        --loglevel string                 Set the logging level. One of: debug|info|warn|error (default "info")
    45        --plaintext                       Disable TLS
    46        --port-forward                    Connect to a random argocd-server port using port forwarding
    47        --port-forward-namespace string   Namespace name which should be used for port forwarding
    48        --server string                   Argo CD server address
    49        --server-crt string               Server certificate file
    50  ```
    51  
    52  ### SEE ALSO
    53  
    54  * [argocd account](argocd_account.md)	 - Manage account settings
    55