Commands
Here’s a quick overview of the main commands you can use with Bogus.CLI:
list-locales
Lists all available locales supported by Bogus.
Usage:
bogus list-locales
list-datasets
Lists all available datasets that can be used to generate fake data.
Usage:
bogus list-datasets
You can also specify a dataset name to list all properties available within that dataset:
bogus list-datasets <datasetName>
For example, to list all properties of the name dataset:
bogus list-datasets name
dataset
The most powerful and flexible command, allowing you to generate various types of fake data. You can specify datasets and properties, and even customize data generation with parameters.
bogus dataset <category>.<property>(param1=value1, param2=value2)
Examples:
- Generate random names:
bogus dataset name.fullname
- Generate emails with a custom provider:
bogus dataset internet.email(provider=example.com)
- Generate past dates within the last year:
bogus dataset date.past(years=1)
For a detailed explanation of all available datasets and their parameters, visit the Datasets page.
Explore each command in depth by clicking the links above, and start generating realistic data quickly and efficiently!
| Previous: Quick Start | Next: Datasets |