Socket
Socket
Sign inDemoInstall

fulcrum-query-cli

Package Overview
Dependencies
65
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fulcrum-query-cli

Fulcrum query command line tool


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

fq

Fulcrum query CLI

Installation

npm install fulcrum-query-cli -g

Setup

Create a file at ~/.fulcrumrc with your API token in it.

Usage

fq QUERY -f [format] -t [API token]

Supported formats are csv, geojson, and json .

Example

Output a CSV to the console

fq 'SELECT feature_type, COUNT(1) FROM "Park Inventory/park_features" GROUP BY feature_type ORDER BY COUNT(1) DESC' -f csv

Output a CSV file

fq 'SELECT feature_type, COUNT(1) FROM "Park Inventory/park_features" GROUP BY feature_type ORDER BY COUNT(1) DESC' -f csv > park-features-by-type.csv

View GeoJSON features in geojson.io (requires geojsonio-cli package)

fq 'SELECT * FROM "Park Inventory"' -f geojson | geojsonio

Fetch records matching a column value. Here we use double quotes on the query and backslash escape the table name.

fq "SELECT * FROM \"Fire Hydrant Inventory\" WHERE hydrant_type = 'Pillar / Aboveground'" -f geojson | geojsonio

FAQs

Last updated on 12 Mar 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc