Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.envless.cloud/llms.txt

Use this file to discover all available pages before exploring further.

Usage

envless whoami

Calls /internal/cli-auth/me with the stored token and prints the verified profile. Use it to confirm which account a CI runner or shared shell is using before syncing secrets.

$ envless whoami
[whoami] Signed in as jane@acme.dev
[whoami] Jane Doe
[whoami] id: usr_01HZ...

Offline / cached profile

If the API is unreachable, whoami falls back to the profile cached in ~/.envless/config.json and warns that the data may be stale. The exit code is still 0 so it doesn’t break scripts that just need to surface the email.

$ envless whoami
 Could not reach the Envless API. Showing cached profile.
[whoami] jane@acme.dev
[whoami] id: usr_01HZ...

Not signed in

If no session exists locally, whoami exits with code 1 and points you to envless login.

$ envless whoami
[whoami] Not signed in. Run `envless login` to authenticate.

Invalid session

If the server rejects the token (revoked, expired, or user deleted), whoami reports the failure and exits 1. Re-authenticate with envless login.