### Install DataZar CLI via npm, pnpm, or yarn Source: https://github.com/nitzano/datazar/blob/main/README.md Instructions for installing and running the DataZar CLI using package managers like npm, pnpm, or yarn. This allows users to execute the anonymization commands directly. ```bash # npm npx datazar-cli [options] # pnpm pnpm dlx datazar-cli [options] # yarn yarn dlx datazar-cli [options] ``` -------------------------------- ### Anonymize PostgreSQL 'firstName' column with Mask Source: https://github.com/nitzano/datazar/blob/main/README.md Example of using DataZar CLI to mask the 'firstName' column in a PostgreSQL table named 'users'. It specifies the database connection URI, database name, table name, and the target column, then applies the 'mask' anonymizer. ```bash npx datazar-cli anon-col postgres \ --uri postgresql:/localhost \ --database test \ --table users \ --column firstName \ mask // { "firstName": "John" } => { "firstName": "****" } ``` -------------------------------- ### Anonymize CSV 'email' column with Fake Source: https://github.com/nitzano/datazar/blob/main/README.md Example of using DataZar CLI to replace the 'email' column in a CSV file with fake email addresses. It requires the file path, column name, and the 'fake email' anonymizer command. ```bash npx datazar-cli anon-col csv \ --file /home/file.csv \ --column email \ fake email ``` -------------------------------- ### Anonymize SQLite 'firstName' column with Mask Source: https://github.com/nitzano/datazar/blob/main/README.md Shows how to use DataZar CLI to mask the 'firstName' column in a SQLite database file. The command specifies the path to the database file, the table, the column, and applies the 'mask' anonymizer. ```bash npx datazar-cli anon-col sqlite \ --uri /home/dev.db \ --table users \ --column firstName \ mask ``` -------------------------------- ### Anonymize MongoDB 'lastName' column with Scramble Source: https://github.com/nitzano/datazar/blob/main/README.md Demonstrates DataZar CLI usage for scrambling the 'lastName' column in a MongoDB 'users' table. It includes connection details for MongoDB, specifying the database, table, column, and the 'scramble' anonymizer. ```bash npx datazar-cli anon-col mongo \ --uri mongodb://localhost \ --database test \ --table users \ --column lastName \ scramble // { "lastName": "Smith" } => { "lastName": "hSmti" } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.