Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get a one time login URL for any environment #61

Open
dalin- opened this issue Oct 21, 2024 · 0 comments
Open

Get a one time login URL for any environment #61

dalin- opened this issue Oct 21, 2024 · 0 comments

Comments

@dalin-
Copy link
Contributor

dalin- commented Oct 21, 2024

I have this handy script to log into any Pantheon site quickly

#!/bin/sh
# A wrapper for terminus drush <site>.<env> -- uli <args>

if (( $# < 2 )); then
  >&2 echo "A wrapper for"
  >&2 echo "  terminus drush <site>.<env> -- uli <args>"
  >&2 echo "Usage:"
  >&2 echo "  tuli <site> <env> <optional-additional-args>"
fi

SITE=$1
ENV=$2

# Get rid of those first two args
shift
shift

terminus drush "$SITE"."$ENV" -- uli "$@"

But it would be really great to have this built into FIRE. So that I could just type

fire uli pr-123

To get a login URL for this site on env pr-123. This way I don't have to think about whether the site uses Pantheon or Acquia or Platform.sh or something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant