RailwayDocs

railway functions

Manage serverless functions in your Railway project.

Usage

Aliases

  • railway function
  • railway func
  • railway fn
  • railway funcs
  • railway fns

Subcommands

SubcommandAliasesDescription
listlsList functions
newcreateAdd a new function
deleteremove, rmDelete a function
pushupPush changes to a function
pullPull changes from a linked function
linkLink a function manually

Examples

List functions

Create a new function

Create an HTTP function

Create a cron function

Push changes

Push with watch mode

Pull remote changes

Delete a function

Options for

FlagDescription
-p, --path <PATH>Path to the function file
-n, --name <NAME>Name of the function
-c, --cron <SCHEDULE>Cron schedule for the function
--httpGenerate a domain for HTTP access
-s, --serverlessEnable serverless mode (sleeping)
-w, --watchWatch for changes and deploy on save

Options for

FlagDescription
-p, --path <PATH>Path to the function
-w, --watchWatch for changes and deploy on save

Options for

FlagDescription
-f, --function <FUNCTION>ID or name of the function to delete
-y, --yesSkip confirmation dialog

Common options

FlagDescription
-e, --environment <ENV>Environment ID or name