This PR adds a minimal Lunatic cli which consists of three commands (for now).
lunatic login - manages user credentials which are used to authenticate to the Platform (located in ~/.lunatic/lunatic.toml. This command is also used to refresh credentials once the "session" expires.
lunatic app create $NAME - bootstraps the starter project on the Platform with the given name and maps the local project to the remote one.
lunatic deploy - builds the wasm and uploads it to the project which was created with the previous command, once the wasm is uploaded the application is started on the Platform.
I've c/p the whole README I've added with this PR so it easier to understand.
Lunatic platform CLI
This platform-related subset of lunatic CLI app is a command-line interface tool that allows you authenticate, manage, build and deploy programs to the lunatic platform.
Create a new account in Lunatic Cloud.
Then, login your Lunatic CLI and connect it with Your account.
lunatic login
Follow instructions displayed in Your terminal and authorize the CLI.
Create a new Lunatic Rust project (skip if you have an existing one).
# Add the WebAssemby target
rustup target add wasm32-wasi
# Create a new Rust project
cargo new hello-lunatic
cd hello-lunatic
# Initialize project for Lunatic
lunatic init
This PR adds a minimal Lunatic cli which consists of three commands (for now).
lunatic login
- manages user credentials which are used to authenticate to the Platform (located in~/.lunatic/lunatic.toml
. This command is also used to refresh credentials once the "session" expires.lunatic app create $NAME
- bootstraps the starter project on the Platform with the given name and maps the local project to the remote one.lunatic deploy
- builds the wasm and uploads it to the project which was created with the previous command, once the wasm is uploaded the application is started on the Platform.I've c/p the whole README I've added with this PR so it easier to understand.
Lunatic platform CLI
This platform-related subset of lunatic CLI app is a command-line interface tool that allows you authenticate, manage, build and deploy programs to the lunatic platform.
Getting Started
Before starting install Lunatic.
Follow instructions displayed in Your terminal and authorize the CLI.
Create a new Lunatic Rust project (skip if you have an existing one).
This will create a
lunatic.toml
configuration file with the following content.TODO's
.env
)