LinuxCommandLibrary

faker

localized fake data generation library CLI

TLDR

Generate fake name

$ faker name
copy
Generate fake email
$ faker email
copy
Generate with locale
$ faker -l [de_DE] address
copy
Multiple outputs
$ faker -r [10] name
copy
Generate specific type
$ faker phone_number
copy

SYNOPSIS

faker [options] provider [method]

DESCRIPTION

faker is a command-line tool for generating fake data like names, addresses, emails, and phone numbers. It's part of the Faker Python library and supports localized data for many countries.
The tool provides numerous data providers covering personal information, company details, internet data, dates, and more. Localization ensures generated data matches regional formats and naming conventions.
faker is widely used for testing, database seeding, and development when realistic but non-sensitive data is needed.

PARAMETERS

PROVIDER

Data provider: name, address, email, phone_number, etc.
-l LOCALE, --locale LOCALE
Locale for generated data (e.g., enUS, deDE, ja_JP).
-r COUNT, --repeat COUNT
Number of values to generate.
-s SEED, --seed SEED
Random seed for reproducibility.
-o FORMAT, --output FORMAT
Output format: csv, json, tab.
--help
Display help information.

CAVEATS

Generated data may accidentally match real information. Quality varies by locale. Some providers may be incomplete for certain regions.

HISTORY

Faker originated as a PHP library inspired by Perl's Data::Faker. The Python version by joke2k became widely popular, providing the faker CLI and extensive provider ecosystem for test data generation.

SEE ALSO

python(1), mimesis(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community