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

@fstore/cli

Package Overview
Dependencies
Maintainers
2
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fstore/cli

The functions.store CLI

  • 0.23.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

FStore CLI tool

The FStore Command Line Interface (CLI) Tools can be used to manage and deploy your Cloud Functions projects(workspaces) from the command line.

Installation

You can install the FStore CLI using npm or yarn. To download and install the FStore CLI, run the following command:

// install using npm
# npm install -g @fstore/cli

// install using yarn
# yarn add --global @fstore/cli

Basic usage

You can see a list with all available commands by executing fstore --help. Also, you can see more detailed help for an individual command by typing fstore <command> --help.

To execute a command just type fstore <command> [options]. Below is a brief list of the available commands and their function:

CommandDescription
loginAuthenticate to your functions.store account. (Requires access to a web browser.)
logoutSign out of the function.store CLI.
createCreate a new workspace
pushPush a workspace to function.store
lintCheck workspace for errors
function:addCreate a new function in the specified workspace
emulators:installSetup firebase emulators in the specified workspace
emulators:startStart emulators in the specified workspace
generate:functions:entrypointGenerate index.js with functions entrypoint.
circleciSetup CircleCi in the specified workspace

If a command is workspace-specific, you must either be inside a workspace project directory or specify the path to it.

Command: login

Usage: fstore login [options]

The valid options for the command are:

  • -r or --reauth: Will force reauthentication even if you're already logged in.
  • -t <token> or --token <token>: Authenticate using the specified token

This command requires access to the default web browser

Command: create

Usage: fstore create <workspace name>

  • workspace name: A valid identifier for the workspace you want to create. It must be unique and contains only letters, numbers, and underscore.

Command: lint

Usage: fstore lint <workspace>

  • workspace: The path to the folder containing a valid workspace project. If not specified, it will use the current working directory.

Command: push

Usage: fstore push <workspace>

  • workspace: The path to the folder containing a valid workspace project. If not specified, it will use the current working directory.

Command: function:add

Usage: fstore function:add <workspace>

  • workspace: The path to the folder containing a valid workspace project. If not specified, it will use the current working directory.

Command: emulators:install

Usage: fstore emulators:install <workspace>

  • workspace: The path to the folder containing a valid workspace project. If not specified, it will use the current working directory.

Command: emulators:start

Usage: fstore emulators:start [options] <workspace>

  • workspace: The path to the folder containing a valid workspace project. If not specified, it will use the current working directory.

The valid options for the command are:

  • -p <projectId> or --project <projectId>: The id of the Firebase project to use with this command.
  • --only <emulators>: Run only specific emulators. This is a comma separated list of emulator names. Valid options are: auth, functions, firestore, database, pubsub, and storage.

Command: generate:functions:entrypoint

Usage: fstore generate:functions:entrypoint <workspace>

  • workspace: The path to the folder containing a valid workspace project. If not specified, it will use the current working directory.

When your have emulators running for some workspace and you modify any function by changing its trigger, you don't have to stop emulators to get the modified function up and runnig. By executing generate:functions:entrypoint command, the indexes for all the functions will be recreated and hot-reloaded by emulators.

Command: circleci

Usage: fstore circleci <workspace>

  • workspace: The path to the folder containing a valid workspace project. If not specified, it will use the current working directory.

FAQs

Package last updated on 08 Jan 2022

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