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

faas-cli

v2.6.6

Published

faas 项目配套的命令行工具

Downloads

16

Readme

faas-cli

faas 项目配套的命令行工具

安装

npm install faas-cli -g

用法

命令

每个服务都有对应的 --help,使用 faas 或者 faas --help 可以查看帮助

faas <服务> <子命令> [选项...]
deploy

发布 FaaS 页面,默认为 alpha。

faas deploy <env>
token

token 管理类命令

faas token init <email> # 指定 eleme 邮箱获取对应的 token
faas token add <token> # 添加 token 到本机配置
faas token show # 显示本机 token 信息
faas token remove # 移除本机配置的 token
lib

FaaS Resource Lib 管理指令

faas lib create <pkg> # 创建 pkg 否则
faas lib upload <src> <filepath> # 上传 <src> 到 <filepath> 如 pkg@version/filepath,如果没有 pkg@version 则会读取 package.json
faas lib remove <filepath> # 移除服务器的指定文件 可能存在缓存(10 mins)
faas lib refresh <filepath> # 清除 <filepath> 的缓存
res

普通资源管理命令,根据配置的 faas.domain 可以上传一些页面需要的资源

faas res upload <src> <filepath> # 上传指定资源到 <filepath> 如 background.png 默认会读取 faas.domain 作为前缀 可以通过 --domain 自定义
faas res remove <filepath> # 移除远程的指定资源