a month ago
The Railway CLI now supports a functions
[1] command which allows you to create, list, pull, push, delete and link functions. Shout-out to Milo123459 for the contribution! Here’s the list of available subcommands:
new
- creates a new function. This command can watch for changes to the local file and automatically redeploy.list
- lists all functions for a linked projectpull
- pulls the latest version of a deployed functionpush
- pushes changes to a function and deploys it. This command can watch for changes to the local file and automatically redeploy.delete
- deletes a functionlink
- you can link a function from a path to a service ID. When you switch environments, all Railway function commands will target the function in that environment.
You'll find these commands extremely handy if you’ve been using Functions and want to edit the code in your IDE instead of the Railway Dashboard.
The Railway CLI now supports Functions, enabling seamless local development, testing, and deployment of event-driven workloads without leaving your development environment.
[1] In case you’re unfamiliar, Functions are services that run a single file of TypeScript code using the Bun runtime. There’s no build step, and you can deploy code changes in seconds. Check out the documentation to learn more.
0 Threads mention this feature
0 Replies
Status changed to Completed chandrika • about 1 month ago