You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update README with list command, global flags, and config options
- Add `list` command to commands table and full documentation section
- Add `--output, -o` to global flags
- Add `--refresh` to root and env command flags
- Add `--provider` to revoke usage examples
- Add `cache_ttl` to config example and fields
- Add key features: list, JSON output, TTY detection
|`list`| List eligible cloud targets and Entra ID groups without triggering elevation |
107
118
|`login`| Authenticate to CyberArk Identity (auto-configures on first run, MFA handled interactively) |
108
119
|`logout`| Clear cached tokens from keyring |
109
120
|`status`| Show authentication state and active SCA sessions |
@@ -115,6 +126,7 @@ Running `grant` with no subcommand elevates cloud permissions (the core behavior
115
126
### Global Flags
116
127
117
128
-`--verbose, -v` — Enable verbose output, including request/response details and timing
129
+
-`--output, -o` — Output format: `text` (default) or `json` for machine-readable output
118
130
119
131
### configure
120
132
@@ -141,7 +153,24 @@ This command:
141
153
- Outputs only shell `export` statements (no human-readable messages)
142
154
- Designed for AWS elevations — returns an error for Azure (which doesn't return credentials)
143
155
144
-
Supports the same flags as the root command: `--provider`, `--target`, `--role`, `--favorite`.
156
+
Supports the same flags as the root command: `--provider`, `--target`, `--role`, `--favorite`, `--refresh`.
157
+
158
+
### list
159
+
160
+
List eligible cloud targets and Entra ID groups without triggering elevation. Useful for discovering what you can elevate to, and for programmatic consumption via JSON output.
161
+
162
+
```bash
163
+
grant list # all targets and groups
164
+
grant list --provider azure # cloud targets for a specific provider
165
+
grant list --groups # Entra ID groups only
166
+
grant list --output json # machine-readable JSON
167
+
grant list --refresh # bypass eligibility cache
168
+
```
169
+
170
+
**Flags:**
171
+
-`--provider, -p` — Filter by cloud provider: `azure`, `aws`
172
+
-`--groups` — Show only Entra ID groups (mutually exclusive with `--provider`)
173
+
-`--refresh` — Bypass eligibility cache and fetch fresh data
145
174
146
175
### login
147
176
@@ -174,6 +203,7 @@ Running `grant` with no subcommand requests JIT (just-in-time) permission elevat
174
203
-`--favorite, -f` — Use a saved favorite alias (combines provider, target, and role)
175
204
-`--groups` — Show only Entra ID groups in the interactive selector
176
205
-`--group, -g` — Group name for direct group membership elevation
206
+
-`--refresh` — Bypass eligibility cache and fetch fresh data
177
207
178
208
**Target matching:**
179
209
- Matches by workspace name (case-insensitive, partial match)
@@ -236,6 +266,7 @@ Application settings including default provider and favorites.
0 commit comments