diff --git a/django_peeringdb/management/commands/pdb_sync.py b/django_peeringdb/management/commands/pdb_sync.py
index <HASH>..<HASH> 100644
--- a/django_peeringdb/management/commands/pdb_sync.py
+++ b/django_peeringdb/management/commands/pdb_sync.py
@@ -51,6 +51,7 @@ class Command(BaseCommand):
             help='only process this table'),
         make_option('--id',
             action='store',
+            default=0,
             help='only process this id'),
         )
 # progress
diff --git a/tests/test_sync.py b/tests/test_sync.py
index <HASH>..<HASH> 100644
--- a/tests/test_sync.py
+++ b/tests/test_sync.py
@@ -88,3 +88,6 @@ class SyncTests(TestCase):
             assert 0 != cls.objects.all().count()
             print(cls.objects.all().count())
 
+    def test_sync_call_command(self):
+        call_command('pdb_sync', interactive=False)
+
fix sync via call_command, fixes #6