Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 2.32 KB

File metadata and controls

45 lines (35 loc) · 2.32 KB

transitland fetch

Fetch GTFS data and create feed versions

Synopsis

Fetch GTFS data and create feed versions

Use after the sync command.

transitland fetch [flags] [feeds...]

Options

      --allow-ftp-fetch                    Allow fetching from FTP urls
      --allow-http-fetch-unfiltered        Disable SSRF protection for http(s) fetches; allow private/loopback/metadata IPs (use only for local CLI runs)
      --allow-local-fetch                  Allow fetching from filesystem directories/zip files
      --allow-partial                      Allow partial feeds missing normally-required files (agency, routes, trips, stop_times, calendar)
      --allow-s3-fetch                     Allow fetching from S3 urls
      --create-feed                        Create feed record if not found
      --dburl string                       Database URL (default: $TL_DATABASE_URL)
      --dmfr string                        Filter by feed IDs in DMFR file; equivalent to specifying feed IDs as arguments
      --dry-run                            Dry run; print feeds that would be imported and exit
      --fail                               Exit with error code if any fetch is not successful
      --feed-url string                    Manually fetch a single URL; you must specify exactly one feed_id
      --fetched-at string                  Manually specify fetched_at value, e.g. 2020-02-06T12:34:56Z
  -h, --help                               help for fetch
      --jobs-file string                   Specify fetch jobs in file, one per line as 'feed_id <tab> url'
      --limit int                          Maximum number of feeds to fetch
      --secret-env stringArray             Specify secret from environment variable as feed_id:ENV_VAR or file.json:ENV_VAR
      --secrets string                     Path to DMFR Secrets file
      --storage string                     Storage destination; can be s3://... az://... or path to a directory (default ".")
      --strict                             Reject feeds with validation errors
      --validation-report                  Save validation report
      --validation-report-storage string   Storage path for saving validation report JSON
      --workers int                        Worker threads (default 1)

SEE ALSO