
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
@forestryio/cli
Advanced tools
The CLI can be used to setup your local site with Forestry.io configuration.
Npm:
npm install --save-dev @forestryio/cli
Yarn:
yarn add --dev @forestryio/cli
Arguments wrapped in []
in the command name are optional.
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.
Generate a GraphQL query for your site's schema
--typescript Include this option to also generate typescript types for your schema
Check for .forestry/front_matter/templates folder for any issues.
--path Specify a relative path to the .forestry folder (eg. my-site)
Start a GraphQL server using your Filesystem's content as the datasource.
--port Specify a port to run the server on. (default 4001)
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>
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
Unknown package
We found that @forestryio/cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 14 open source maintainers collaborating on the project.
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.