-
Notifications
You must be signed in to change notification settings - Fork 189
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 Shopify CLI plugin #397
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
return schema.CredentialType{ | ||
Name: credname.CLIToken, | ||
DocsURL: sdk.URL("https://shopify.dev/docs/apps/tools/cli/ci-cd#step-2-generate-a-cli-authentication-token"), | ||
ManagementURL: sdk.URL("https://partners.shopify.com/"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the management URL, the intention is to have a URL that would direct the user, if signed in, to a page where they can create a new credential for the service. This looks to be a marketing page instead, is there another link that we can use here?
func CLIToken() schema.CredentialType { | ||
return schema.CredentialType{ | ||
Name: credname.CLIToken, | ||
DocsURL: sdk.URL("https://shopify.dev/docs/apps/tools/cli/ci-cd#step-2-generate-a-cli-authentication-token"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use https://shopify.dev/docs/apps/tools/cli/ here
var defaultEnvVarMapping = map[string]sdk.FieldName{ | ||
"SHOPIFY_TOKEN": fieldname.Token, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please provide some docs on SHOPIFY_TOKEN
? I haven't been able to find this envvar anywhere in the docs.
)} | ||
} | ||
|
||
var defaultEnvVarMapping = map[string]sdk.FieldName{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: From this page
https://shopify.dev/docs/apps/tools/cli/ci-cd#step-2-generate-a-cli-authentication-token
It looks like SHOPIFY_API_KEY may also be a requirement? Not sure if the local use-case of the CLI is different than CI/CD.
Overview
Adding a shell-plugin for the Shopify CLI.
Type of change
Related Issue(s)
How To Test
shopify theme dev
Changelog
Adds the Shopify CLI plugin.