console command to fetch publications