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
Use `skipPrompt: true` to skip interactive prompting for a question entirely. The field is omitted from the answers object unless the user explicitly passes it via a CLI flag. This is useful for fields with backend-managed defaults where the CLI should not prompt, but should still allow overrides.
164
+
165
+
```typescript
166
+
const questions:Question[] = [
167
+
{
168
+
type: 'text',
169
+
name: 'username',
170
+
message: 'Username',
171
+
required: true
172
+
},
173
+
{
174
+
type: 'text',
175
+
name: 'status',
176
+
message: 'Account status',
177
+
skipPrompt: true// Won't prompt, but user can pass --status active
178
+
}
179
+
];
180
+
181
+
const result =awaitprompter.prompt({}, questions);
0 commit comments