Getting Started
The easiest way to try out ForeverVM is using the CLI.
Authenticating
-
Sign up for an account from your terminal:
Terminal window npx forevervm signupTerminal window uvx forevervm signupTerminal window pip install forevervmforevervm signupTerminal window cargo install forevervmforevervm signup -
You’ll be prompted for an account name and email address. We’ll send you an email with your API token. Copy it and log into the CLI:
Terminal window npx forevervm loginTerminal window uvx forevervm loginTerminal window forevervm loginTerminal window forevervm login
Running code
-
Once logged in, you can open a REPL interface with a new machine:
Terminal window npx forevervm replTerminal window uvx forevervm replTerminal window forevervm replTerminal window forevervm repl -
When ForeverVM starts your machine, it gives it an ID that you can later use to reconnect to it. You can reconnect to a machine like this:
Terminal window npx forevervm repl <machine name>Terminal window uvx forevervm repl <machine name>Terminal window forevervm repl <machine name>Terminal window forevervm repl <machine name> -
You can list your machines (in reverse order of creation) like this:
Terminal window npx forevervm listTerminal window uvx forevervm listTerminal window forevervm listTerminal window forevervm list