# Open
# Commands
# Default
Used to open a tenant in local or in a production enviroment.
  $ glue open
| Option | Function | 
|---|---|
| -C, --consumer | Opens the tenant pointing directly to the Consumer | 
| -D, --definition | Opens the tenants Definition | 
| -I, --integration | Opens the tenant pointing to the integration env, which avoids the CDN | 
| -P, --producer | Opens the tenant pointing directly to the Producer | 
| -a, --amp | Opens the tenant in amp version | 
| -d, --deviceType=s|l|xl | [default: s] Specify a device type | 
| -p, --production | Opens in production environment | 
| -h, --help | Shows this help | 
| -s, --section=section | Open the specified section. Specify the section name or the section index. | 
| -u, --url=url | Opens the specified url from the tenant | 
# --section
 Used to open a specific section of a tenant.
- If the specified section is not available. A prompt to select another one will appear.
- You can specify the section with its index or its name ($ glue menu).
- With --ampwill open the url in amp version.
- With --envwill open the url in a specific production environment.
  $ glue open --section 5
Will open section 5 of the tenant in your local environment.
  $ glue open --section Home 
Will open section named 'Home' of the tenant in your local environment.
# <url>
 Used to open a specific url of a tenant (article/section)
- With --ampwill open the url in amp version
- With --productionwill open the url in a the production environment
  $ glue open https://www.mytenant.com/path/to/article 
Will open that article in your local environment
  $ glue open https://www.mytenant.com/section
Will open that section in your local environment
# --definition
 Opens the definition of a tenant in a specific environment.
  $ glue open --definition
Will open the tenants definition in the live enviroment.
# --consumer, --producer
 Used to open a tenant in the production environment, pointing to a specific profile.
  $ glue open --consumer
Will open the tenant in: https://hublive.marfeel.com.
  $ glue open --producer
Will open the tenant in: https://hublivep.marfeel.com.
# --integration
 Opens the tenant pointing to the integration DNS, which avoids the CDN.
- Usefull when you don't want any cached content.
  $ glue open --integration
Will open the tenant in: https://liveint.marfeel.com.
# --preview
 Opens the tenants preview. You have to be on the branch you want to preview and have created the pull request in order for it to work properly.
- Usefull when you want to open the preview for a branch that has an unusual name.
  $ glue open --preview
Will open the tenant in: https://preview-branch.live.marfeel.com. for the branch: preview/branch
# open:jenkins
Will determine in what project you are currently and open it's jenkins job or view.
- This may fail for some projects. Please notify any failed usages to the DX team.
 $ glue open:jenkins
Aliases
$ glue jenkins
| Option | Function | 
|---|---|
| -C, --CDN | Opens CDN View | 
| -d, --demos | Opens Demos View | 
| -g, --gutenberg | Opens Gutenberg View | 
| -h, --help | Shows this help | 
| -x, --marfeelXP | Opens MarfeelXP View | 
# open:repository
Will determine in what project you are currently and open it in GitHub.
 $ glue open:repository
Aliases
  $ glue repo
  $ glue git
OPTIONS -h, --help Shows this help -p, --pullRequest Opens a github view to create a PR for the current branch
# -p, --pullRequest
 Opens a github view to create a PR for the current branch.
- This will fail if you'r local branch is not pushed to remote.
$ glue open:repository --pullRequest