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

add new command profile #218

Closed
wants to merge 1 commit into from
Closed

add new command profile #218

wants to merge 1 commit into from

Conversation

euledge
Copy link

@euledge euledge commented Jan 5, 2024

Resolved Issues

Details of Changes

  • add command profile
  • update README.md

note

This command executes the following gcloud and firebase commands.

skeet profile --add

  • gcloud config configurations create [profile name]
  • firebase use --add [fbProjectId] --alias [profile name]

skeet profile --use

  • gcloud config configurations activate [profile name]
  • firebase use [profile name]

this command do not switch .firebaserc and firebaseConfig.ts

Running CLI

help

$ skeet help profile
Usage: skeet profile [options]

Manage Development Profile for Google Cloud and Firebase

Options:
  -a,--add                  Create Development Profile (default: false)
  -u,--use  <profile name>  Switch Development Profile (default: false)
  -h, --help                display help for command

skeet profile --add

$ skeet profile --add
? What's your GCP Project ID skeet-test-dev
? What's your Firebase Project ID skeet-test-dev

? What's your Environment Profile Name. (ex: dev, staging, prod) dev
Created alias staging for skeet-test-dev.
Now using project skeet-test-dev

skeet profile --use

$ skeet profile --use dev
Now using alias dev (skeet-test-dev)

@euledge euledge marked this pull request as ready for review January 5, 2024 13:50
@POPPIN-FUMI
Copy link
Contributor

Switching profiles is a really nice idea!
But this commit will break a lot of parts of skeet cmds.
I am thinking of adding skeet-cloud.test.config.json to test the GCP environment.
So skeet-cli will always read the config first and change its behavior.
Let's make another PR!

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

Successfully merging this pull request may close these issues.

Add command to switch between development and production environment.
2 participants