Skip to content

Repository files navigation

MetaCall Faas Deploy

Tool for deploying into MetaCall FaaS platform.


NPMWorkflowInstall SizeDiscord

Table of Contents

About

MetaCall Deploy provides the CLI to deploy projects on MetaCall FaaS platform. You can deploy your serverless functions, services and static files within your terminal without interacting with Dashboard.

Preview

How to install

npm i -g @metacall/deploy

If you install MetaCall, it comes with the same CLI together and it can be run with:

metacall deploy

Instead of metacall-deploy as provided by NPM.

Check Installation

metacall-deploy --help

Configuration

The configuration is stored in: - Unix: $HOME/.metacall/deploy/config.ini - Windows: %APPDATA%\metacall\deploy\config.ini

Token

The token is stored in the configuration and can be overwritten at any time with METACALL_API_KEY environment variable.

Supported arguments and commands

The metacall-deploy offers many commands for a variety of typical operations.

metacall-deploy --[args=value]
CLI ArgsDescription
--helpPrints a user manual to assist you in using the cli.
--versionPrints current version of the cli.
--workdirAccepts relative path to application directory, Defaults to cwd
--addrepoAccepts url of repository to deploy
--devAccepts boolean value: run in dev mode (deploy to local metacall/faas)
--projectNameAccepts a string indicating the name of your project
--emailAccepts email id for authentication
--passwordAccepts password for authentication
--tokenAccepts token for authentication, either pass email & password or token.
--forceAccepts boolean value: it deletes the deployment present on an existing plan and deploys again
--planAccepts type of plan: "Essential", "Standard", "Premium"
--inspectAccepts format of output : "Table", "Raw", "OpenAPIv3" and Lists out all the deployments with specifications.
--deleteAccepts boolean value: it provides you all the available deployment options to delete
--confDirAccepts relative path for changing default config directory
--serverUrlAccepts URL of the MetaCall FaaS base server to override default endpoint
--logoutAccepts boolean value: use it in order to expire your current session.
--listPlansAccepts boolean value: list all the plans that are offered in your account using it.
--envAccepts environment variable as KEY=VALUE (can be used multiple times)
--envFileAccepts path to .env file (can be used multiple times)
--ignoreAccepts pattern to ignore files (can be used multiple times)
--quietAccepts boolean value: suppresses non-essential output
--verboseAccepts boolean value: shows detailed output for debugging
--jsonAccepts boolean value: outputs CLI results in JSON format (useful for scripting)
--dryRunAccepts boolean value: shows what would be deployed without actually deploying
--logsPrint the logs of a deployment.

Ignore Files

If you don't want to deploy node modules or any other file, simply put it inside the .gitignore file as we use for ignoring files.

Exit codes and their meanings

Exit CodeDescription
0Success
1NotDirectoryRootPath
2EmptyRootPath
3NotFoundRootPath
4AccountDisabled

New to MetaCall? Create account and buy a plan

Go to https://dashboard.metacall.io, signin and buy a plan. Learn more...

Contribute

You Can Directly Start Contributing to this deployer in Cloud with ready to run, build & test the project.

Open in Gitpod

To use it on your forked repo, edit the 'Open in Gitpod' button url to https://gitpod.io/#https://github.com/<my-github-username>/deploy

License

This project is currently licensed under the Apache License version 2.0.

About

Tool for deploying into MetaCall FaaS platform.

Topics

Resources

Stars

28 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages