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

super-contentful

v0.12.3

Published

Command line management tool for Contentful.

Downloads

1

Readme

Super Contentful

Command line management tool for Contentful.

Installation

To install Super Contentful with Yarn, type in the following command on the terminal:

yarn add super-contentful

To install Super Contentful with NPM, type in the following:

npm install super-contentful

Usage

Once you installed Super Contentful, a global scf command should be available for use(scf stands for Super Contentful).

The tool follows a workflow for working with Environments and Spaces in Contentful with management commands(and sub-commands).

See Workflow for a description on how to use to migrate data and test new features using Contentful.

Exploring scf

First things first, you are free to sneak into Super Contentful using the help flag.

Type in the following in your terminal:

scf --help

scf --help will print a message listing all available commands, with a description for each:

scf <cmd> [args]

Management commands for Contentful

Commands:
  scf export [args]                 Export Space entries and assets to a JSON
                                    file
  scf import [args]                 Import content models, entries and assets
                                    from a JSON file
  scf generate [args] <name>        Generate migration file for the content
                                    model of a Space              [aliases: gen]
  scf make-migration [args] <name>  Create an empty migration file
  scf migrate [args]                Parses and runs a migration script on given
                                    Environment
  scf environment <cmd> [args]      Management commands for Contentful
                                    Environmets                   [aliases: env]
  scf space <cmd> [args]            Management commands for Contentful Spaces
  scf organization <cmd> [args]     Management commands for Contentful
                                    Organizations                 [aliases: org]

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

From there you can explore sub command of scf by typing scf <sub-command> --help. For example:

$ scf export --help

Export Space entries and assets to a JSON file

Options:
  --help                 Show help                                     [boolean]
  --version              Show version number                           [boolean]
  --spaceId, -s          Contentful Space ID                            [string]
  --envFile, -f          Location of a .env file       [boolean] [default: true]
  --managementToken, -t  Contentful management token                    [string]
  --contentOnly, -o      Only export entries and assets                [boolean]
  --fromDate, -d         An RFC 2822 or ISO 8601 date time string - When
                         specified this commanmd will only export content and
                         assets that were created since the specified date and
                         time                                           [string]

Examples:
  scf export                                Export the entries and assets of the
                                            default Space
  scf export -s 7fc67add                    Export the entries and assets of
                                            Space "7fc67add"
  scf export --envFile                      Load environment variables from
                                            <project_dir>/.env, then export the
                                            entries and assets of the default
                                            Space
  scf export --fromDate "2018-06-01 10:00"  Export the entries and assets which
                                            have been updated since(including) 1
                                            June 2018, 10AM

Workflow

The set of commands provided by Super Contentful implement the workflow described below for both Spaces and Environments in Contentful, thus it can work with both the new subscription(which limit number of Spaces a user can create in favor Sandbox Environments) and legacy subscriptions(which doesn't have Sandbox Environments).

Workflow diagram