Skip to content

Commit

Permalink
chore(release): 0.0.3 [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
SF-CLI-BOT committed Jun 4, 2021
1 parent 3a79a41 commit f584bd0
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.0.3](https://github.com/salesforcecli/plugin-env/compare/v0.0.2...v0.0.3) (2021-06-04)


### Features

* env open @W-9104301@ ([#31](https://github.com/salesforcecli/plugin-env/issues/31)) ([3a79a41](https://github.com/salesforcecli/plugin-env/commit/3a79a41c64cb60bbb79e542a78b1297e23924580))

### [0.0.2](https://github.com/salesforcecli/plugin-env/compare/v0.0.1...v0.0.2) (2021-05-24)


Expand Down
49 changes: 48 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ sfdx plugins

<!-- commands -->
* [`sf env:list`](#sf-envlist)
* [`sf env:open`](#sf-envopen)

## `sf env:list`

Expand All @@ -89,5 +90,51 @@ EXAMPLES
sf env list --all
```

_See code: [src/commands/env/list.ts](https://github.com/salesforcecli/plugin-env/blob/v0.0.1/src/commands/env/list.ts)_
_See code: [src/commands/env/list.ts](https://github.com/salesforcecli/plugin-env/blob/v0.0.2/src/commands/env/list.ts)_

## `sf env:open`

You can open the following types of environments in a web browser: scratch orgs, sandboxes, Dev Hubs, and production orgs.

```
USAGE
$ sf env:open
OPTIONS
-e, --target-env=target-env Environment name or alias to open.
-p, --path=path Path to append to the end of the login URL.
-r, --url-only Display the URL, but don’t launch it in a browser.
--browser=browser Browser in which to open the environment.
DESCRIPTION
If you run the command without flags, it attempts to open your default environment in your default web browser.
Each of your environments is associated with an instance URL, such as https://login.salesforce.com. To open a specific
web page at that URL, specify the portion of the URL after "<URL>/" with the --path flag, such as /apex/YourPage to
open a Visualforce page.
You can open the following types of environments in a web browser: scratch orgs, sandboxes, Dev Hubs, and production
orgs.
If you run the command without flags, it attempts to open your default environment in your default web browser.
Each of your environments is associated with an instance URL, such as https://login.salesforce.com. To open a specific
web page at that URL, specify the portion of the URL after "<URL>/" with the --path flag, such as /apex/YourPage to
open a Visualforce page.
EXAMPLES
To open your default environment, run the command without flags:
sf env open
This example opens the Visualforce page /apex/StartHere in a scratch org
with alias "test-org":
sf env open --target-env test-org --path /apex/StartHere
If you want to view the URL for the preceding command, but not launch it in a browser,
add the --url-only flag:
sf env open --target-env test-org --path /apex/StartHere --url-only
The preceding examples open the environment in your default web browser. To use
a different browser, set the --browser flag to its OS-specific name. For example,
to use Chrome on macOS:
sf env open --target-env test-org --path /apex/StartHere --browser "google chrome"
```

_See code: [src/commands/env/open.ts](https://github.com/salesforcecli/plugin-env/blob/v0.0.2/src/commands/env/open.ts)_
<!-- commandsstop -->
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@salesforce/plugin-env",
"description": "An sf plugin for logging into and interacting with different Salesforce environments.",
"version": "0.0.2",
"version": "0.0.3",
"author": "Salesforce",
"bugs": "https://github.com/forcedotcom/cli/issues",
"dependencies": {
Expand Down

0 comments on commit f584bd0

Please sign in to comment.