Example GR

Command Line Interface

Manage your Greek cultural heritage projects using our powerful command-line tools

Get Started with CLI

Installation

1. Install CLI

Install the CLI globally via npm or our provided binaries:

                                npm install -g @examplegr/cli
                            

2. Login

Authenticate with your API token:

                                examplegr login --token YOUR_API_KEY
                            

Available Commands

examplegr init

Initialize a new project workspace with template files

                            examplegr init --project "Historical Athens"
                        

examplegr import

Import historical metadata from CSV or JSON files

                            examplegr import --file "artifacts.csv"
                        

examplegr export

Export historical records in various formats

                            examplegr export --format PDF
                        

examplegr search

Query historical records in the database

                            examplegr search --query "Byzantine artifacts"
                        

Usage Example

Project Workflow

Initialize and manage a historical site documentation project:

                            examplegr init
                            examplegr import --file "ancient_data.json"
                            examplegr search --type "archaeological"
                        
                            examplegr export --format PDF
                            examplegr export --format CSV
                        

Troubleshooting

Authentication Errors

If you receive "Invalid API key" errors:

                            examplegr login --token YOUR_API_KEY
                        

Ensure you're using the latest API token from your dashboard

Missing Import Formats

Supported import formats: CSV, JSON, XML

                            examplegr import --file "data.xml"
                        

Contact support@example.gr for additional format support