Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@forestryio/cli

Package Overview
Dependencies
Maintainers
12
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forestryio/cli

  • 0.2.17
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16
increased by700%
Maintainers
12
Weekly downloads
 
Created
Source

CLI

The CLI can be used to setup your local site with Forestry.io configuration.

Getting started

Npm:

npm install --save-dev @forestryio/cli

Yarn:

yarn add --dev @forestryio/cli

Usage

Arguments wrapped in [] in the command name are optional.

Help

You can get help on any command with -h or --help.

e.g:

yarn forestry schema:gen-query --help

This will describe how to use the schema:gen-query command.

Commands

forestry schema:gen-query [options]

Generate a GraphQL query for your site's schema

Options

--typescript Include this option to also generate typescript types for your schema

forestry schema:audit [options]

Check for .forestry/front_matter/templates folder for any issues.

Options

--path Specify a relative path to the .forestry folder (eg. my-site)

forestry server:start [options]

Start a GraphQL server using your Filesystem's content as the datasource.

Options

--port Specify a port to run the server on. (default 4001)

Development

To run this project locally in another directory, you can create a symlink by running

npm link

Then Forestry can be run in another directory by running:

forestry <commands>

Alternatively, the CLI can be added to a project instead of being used globally.

To run the command locally in this project directory, you can run:

yarn forestry <commands>

.env

To access some third party services, you will need to add a .env file. Use the .env.example to fill in the example keys.

FAQs

Package last updated on 28 Jul 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc