npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

forest-cli

v5.2.0

Published

The Lumberjacks' toolbelt is the Forest CLI which makes easy to manage your back office application directly from the terminal.

Downloads

16,348

Readme

Forest Admin CLI

npm package Build Status Test Coverage semantic-release

The Lumberjacks' toolbelt is the Forest Admin CLI which makes easy to manage your back office application directly from the terminal.

Install

$ npm install -g forest-cli

Commands

$ forest [command]

General

  • user display the current logged in user.
  • login sign in to your Forest Admin account.
  • logout sign out of your Forest Admin account.
  • help [cmd] display help for [cmd].

Projects

Manage Forest Admin projects.

  • projects list your projects.
  • projects:create <appName> generate a backend application with an ORM/ODM configured.
  • projects:get get the configuration of a project.

Environments

Manage Forest Admin environments.

  • environments list your environments.
  • environments:get get the configuration of an environment.
  • environments:create create a new environment.
  • environments:delete delete an environment.

Without the Development Workflow experience.

  • environments:copy-layout copy the layout from one environment to another.

With the Development Workflow activated.

  • init set up your development environment in your current folder.
  • branch create a new branch or list your existing branches.
  • switch switch to another branch in your local development environment.
  • push push layout changes of your current branch to a remote environment.
  • deploy deploy layout changes of an environment to the reference one.
  • environments:reset reset a remote environment by removing all layout changes.

Schema

Manage Forest Admin schema.

  • schema:apply apply the current schema of your repository to the specified environment (using your .forestadmin-schema.json file).
  • schema:diff allow to compare two environment schemas.
  • schema:update refresh your schema by generating files that do not currently exist.

Docker

ENV variables

  • DATABASE_SCHEMA the schema used by the database. (not for all commands)
  • DATABASE_URL the connection string. (not fot all commands)
  • FOREST_ENV_SECRET the env secret token used to access your Forest Admin environment.
  • SILENT used to not log commands results. (optional)
  • TOKEN_PATH path where store the session token. (need to be "/usr/src/cli" to work with the docker image)

If you have an .env file in you current folder docker should take it to run commands. So you can define the missing ENV variable inside. Otherwise you should pass all env variable you need in the docker run command, eg: -e TOKEN_PATH="/usr/src/app".

Using Forest Admin CLI

  • TOKEN_PATH="/usr/src/cli"
docker run --rm --init -it -v `pwd`:/usr/src/app -v ~/.forest.d:/usr/src/cli/.forest.d -e TOKEN_PATH="/usr/src/cli" forestadmin/toolbelt:latest [command]

Community

👇 Join our Developers community for support and more

Discourse developers community