Cargo Lambda provides several subcommands for different tasks:
The new subcommand creates Rust packages from a well defined template to help you start writing AWS Lambda functions in Rust.
The init subcommand works like the
new command but under an existent directory. Files present in that directory will be preserved as they were before running this command.
The watch subcommand boots a development server that emulates interactions with the AWS Lambda control plane. This subcommand also reloads your Rust code as you work on it.
The invoke subcommand sends requests to the control plane emulator to test and debug interactions with your Lambda functions. This command can also be used to send requests to remote functions once deployed on AWS Lambda.
The deploy subcommand uploads functions to AWS Lambda. You can use the same command to create new functions as well as update existent functions code.