Docs / CLI Reference

CLI Reference

Every SlickEnv command, its usage, flags, and examples.

slickenv init

Initialise a project directory and link it to a SlickEnv project and environment.

$ slickenv init [--project <name>] [--env <environment>]
FlagDescription
--projectProject name (prompted if omitted)
--envEnvironment name, e.g. development, staging, production

slickenv push

Push local .env variables to the remote store. Creates a new version.

$ slickenv push [--message <msg>] [--force]
FlagDescription
--message, -mVersion message describing the change
--forceSkip conflict detection and overwrite remote

slickenv pull

Pull the latest version from the remote store and write it to your local .env file.

$ slickenv pull [--version <number>] [--force]
FlagDescription
--version, -vPull a specific version instead of latest
--forceOverwrite local .env without conflict check

slickenv status

Show the current sync status: whether your local .env matches the remote version.

$ slickenv status

Project:     my-project
Environment: development
Local:       14 variables
Remote:      v7 — 14 variables
Status:      ✓ In sync

slickenv versions

List all versions of the current environment with timestamps, variable counts, and messages.

$ slickenv versions [--limit <n>]

slickenv diff

Compare your local .env against the remote version. Shows added, removed, and changed variables.

$ slickenv diff

+ NEW_API_KEY=sk_live_xyz789
- OLD_API_KEY=sk_live_abc123
~ DATABASE_URL
    Local:  postgres://localhost:5432/myapp_dev
    Remote: postgres://prod-db:5432/myapp

slickenv rollback

Restore a previous version as the current local .env.

$ slickenv rollback <version>

$ slickenv rollback v5
✓ Rolled back to v5 — .env updated with 12 variables.

slickenv share

Generate a one-time share link for the current environment. The link expires after one use or after the specified duration.

$ slickenv share [--expires <duration>]

$ slickenv share --expires 1h
✓ Share link created (expires in 1 hour):
  https://slickenv.dev/s/abc123xyz
FlagDescription
--expiresExpiration duration, e.g. 1h, 24h, 7d (default: 24h)

slickenv export

Export the current environment to a file in .env, JSON, or YAML format.

$ slickenv export [--format <env|json|yaml>] [--output <path>]
FlagDescription
--format, -fOutput format: env, json, yaml (default: env)
--output, -oOutput file path (default: stdout)

slickenv login

Authenticate with SlickEnv via GitHub or Google OAuth. Opens your browser and stores the token in your system keychain.

$ slickenv login

slickenv logout

Sign out and remove stored credentials from your system keychain.

$ slickenv logout
✓ Signed out.

slickenv --help

Display help information for any command.

$ slickenv --help
$ slickenv push --help