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

@fortellis/fortellis-cli

v0.0.1-alpha.10

Published

Command Line for Fortellis API Specs

Downloads

25

Readme

fortellis-cli

Getting started

git clone https://github.com/Fortellis/fortellis-cli.git

cd fortellis-cli

npm install

In order for the "fortellis-cli" command to work on a machine where it is installed, you need to link the command with the following command.

npm link

Command Line for Fortellis API Specs

oclif Version Downloads/week License

Usage

$ npm install -g @fortellis/fortellis-cli
$ fortellis-cli COMMAND
running command...
$ fortellis-cli (-v|--version|version)
@fortellis/fortellis-cli/0.0.1-alpha.9 darwin-x64 node-v10.17.0
$ fortellis-cli --help [COMMAND]
USAGE
  $ fortellis-cli COMMAND
...

Commands

fortellis-cli add FILE

Add an item to the Fortellis repository.

USAGE
  $ fortellis-cli add FILE

ARGUMENTS
  FILE  Path of file to be pushed.

OPTIONS
  -s, --apispec  Add API Spec file to the repostory

DESCRIPTION
  ...
  Add a file to the repository.
  Currently supported file types:
    - API spec files (-s)

See code: src/commands/add.js

fortellis-cli api-lint FILE

Lints OpenAPI 2.0 specifications for correctness and style.

USAGE
  $ fortellis-cli api-lint FILE

ARGUMENTS
  FILE  Path of an Open API 2.0 specificaton file

OPTIONS
  --display-severity=error|warn|info|hint  [default: warn] Show only output greater than the specified severity level

  --safe                                   Check that the API spec has been added to the Fortellis repository before
                                           linting

See code: src/commands/api-lint.js

fortellis-cli api-template

Writes a template Open API 2.0 document to the current directory.

USAGE
  $ fortellis-cli api-template

DESCRIPTION
  ...
  Writes a template Open API 2.0 document to the current directory that the user can then modify for API development.

See code: src/commands/api-template.js

fortellis-cli configure

Configure Fortellis CLI.

USAGE
  $ fortellis-cli configure

OPTIONS
  -p, --password=password  Fortellis password
  -u, --username=username  Fortellis username

DESCRIPTION
  ...
  Set up the credentials and other global settings for 
  the Fortellis CLI in this environment. This will allow it to 
  communicate with Fortellis Platform.

See code: src/commands/configure.js

fortellis-cli help [COMMAND]

display help for fortellis-cli

USAGE
  $ fortellis-cli help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

fortellis-cli init

Create a Fortellis repository in the current directory.

USAGE
  $ fortellis-cli init

OPTIONS
  -f, --force            Initialize directory even if it is already a repository.
  -i, --orgid=orgid      Organizatino ID
  -n, --orgname=orgname  Organization name

DESCRIPTION
  ...
  A fortellis repository is a directory containing API Specs and a config directory
  (/.fortellis) that holds the repo configuration file.

See code: src/commands/init.js

fortellis-cli push

Push specified file to fortellis.

USAGE
  $ fortellis-cli push

OPTIONS
  -f, --file=file
  -p, --password=password  Fortellis password
  -s, --apispec            Push API Spec file to Fortellis
  -u, --username=username  Fortellis username

DESCRIPTION
  ...
  Publish the file (spec, documentation, etc.) to Fortellis: either 
  an update of an existing file in DRAFT status, or a new version 
  in FINAL status.

  Pass in a username/password to explicitly publish with a given user. Otherwise
  the username/password configured in the enviromment (see fortellis-cli configure)
  will be used.

  A flag must be used to specify the kind of file to be pushed.
    -s --apispec

See code: src/commands/push.js

fortellis-cli status

Output the status of the fortellis repository.

USAGE
  $ fortellis-cli status

DESCRIPTION
  ...
  List all of the repository files and their status.

See code: src/commands/status.js