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

     1  ## argocd proj role add-policy
     2  
     3  Add a policy to a project role
     4  
     5  ### Synopsis
     6  
     7  Add a policy to a project role
     8  
     9  ```
    10  argocd proj role add-policy PROJECT ROLE-NAME [flags]
    11  ```
    12  
    13  ### Options
    14  
    15  ```
    16    -a, --action string       Action to grant/deny permission on (e.g. get, create, list, update, delete)
    17    -h, --help                help for add-policy
    18    -o, --object string       Object within the project to grant/deny access.  Use '*' for a wildcard. Will want access to '<project>/<object>'
    19    -p, --permission string   Whether to allow or deny access to object with the action.  This can only be 'allow' or 'deny' (default "allow")
    20  ```
    21  
    22  ### Options inherited from parent commands
    23  
    24  ```
    25        --auth-token string               Authentication token
    26        --client-crt string               Client certificate file
    27        --client-crt-key string           Client certificate key file
    28        --config string                   Path to Argo CD config (default "/home/user/.argocd/config")
    29        --grpc-web                        Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2.
    30        --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.
    31    -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)
    32        --insecure                        Skip server certificate and domain verification
    33        --logformat string                Set the logging format. One of: text|json (default "text")
    34        --loglevel string                 Set the logging level. One of: debug|info|warn|error (default "info")
    35        --plaintext                       Disable TLS
    36        --port-forward                    Connect to a random argocd-server port using port forwarding
    37        --port-forward-namespace string   Namespace name which should be used for port forwarding
    38        --server string                   Argo CD server address
    39        --server-crt string               Server certificate file
    40  ```
    41  
    42  ### SEE ALSO
    43  
    44  * [argocd proj role](argocd_proj_role.md)	 - Manage a project's roles
    45