Clone the repo or otherwise download the code to your machine and change into the directory.
- Create new virtual environment
python3 -m venv venv
- Activate virtual environment
source venv/bin/activate
- Install modules and cli
pip install --editable .
- Copy .env.default file to .env and populate values
- Run executable to test connectivity to Netbox. It should start printing out a list of device names from Netbox. Hit ctrl+C to cancel.
netbox-device-importer test-netbox
- Prepare CSV using sample.csv file.
- Import devices
netbox-device-importer import-csv --file sample.csv