Skip to content

Commit

Permalink
chore(release): 0.0.8 [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
SF-CLI-BOT committed Jul 11, 2021
1 parent 8b201b7 commit 2cea21e
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 64 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

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.8](https://github.com/salesforcecli/plugin-env/compare/v0.0.7...v0.0.8) (2021-07-11)


### Bug Fixes

* bump oclif ([8b201b7](https://github.com/salesforcecli/plugin-env/commit/8b201b78063a5d83602ee2fccbb31550268812ee))
* bump oclif/core ([f8f60f6](https://github.com/salesforcecli/plugin-env/commit/f8f60f656c0570bb97ce1e8c459e23dac46df463))

### [0.0.7](https://github.com/salesforcecli/plugin-env/compare/v0.0.6...v0.0.7) (2021-06-21)


Expand Down
155 changes: 92 additions & 63 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,104 +63,133 @@ sfdx plugins
## Commands

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

## `sf env:display`
## `sf env display`

Display details about a specific environment

```
USAGE
$ sf env:display
$ sf env display [--json] [-e <value>]
OPTIONS
-e, --environment=environment Environment name or alias to display.
--json format output as json
FLAGS
-e, --environment=<value> Environment name or alias to display.
GLOBAL FLAGS
--json format output as json
DESCRIPTION
Display details about a specific environment
EXAMPLES
sf env display -e my-scratch-org
sf env display -e [email protected]
```
$ sf env display -e my-scratch-org
_See code: [src/commands/env/display.ts](https://github.com/salesforcecli/plugin-env/blob/v0.0.6/src/commands/env/display.ts)_
$ sf env display -e [email protected]
```

## `sf env:list`
## `sf env list`

List the environments you’ve created or logged into.

```
USAGE
$ sf env:list
OPTIONS
-a, --all Show all environments, including inactive orgs.
-x, --extended show extra columns
--columns=columns only show provided columns (comma-separated)
--csv output is csv format [alias: --output=csv]
--filter=filter filter property by partial string matching, ex: name=foo
--json format output as json
--no-header hide table header from output
--no-truncate do not truncate output to fit screen
--output=csv|json|yaml output in a more machine friendly format
--sort=sort property to sort by (prepend '-' for descending)
$ sf env list [--json] [-a] [--columns <value> | -x] [--sort <value>] [--filter <value>] [--output
csv|json|yaml | | [--csv | --no-truncate]] [--no-header | ]
EXAMPLES
sf env list
sf env list --all
```
FLAGS
-a, --all Show all environments, including inactive orgs.
-x, --extended show extra columns
--columns=<value> only show provided columns (comma-separated)
--csv output is csv format [alias: --output=csv]
--filter=<value> filter property by partial string matching, ex: name=foo
--no-header hide table header from output
--no-truncate do not truncate output to fit screen
_See code: [src/commands/env/list.ts](https://github.com/salesforcecli/plugin-env/blob/v0.0.6/src/commands/env/list.ts)_
--output=<option> output in a more machine friendly format
<options: csv|json|yaml>
## `sf env:open`
--sort=<value> property to sort by (prepend '-' for descending)
You can open the following types of environments in a web browser: scratch orgs, sandboxes, Dev Hubs, and production orgs.
GLOBAL FLAGS
--json format output as json
```
USAGE
$ sf env:open
DESCRIPTION
List the environments you’ve created or logged into.
OPTIONS
-e, --target-env=target-env
Specify the login user or alias that’s associated with the environment. For scratch orgs, the login user is
generated by the command that created the scratch org. You can also set an alias for the scratch org when you create
it.
EXAMPLES
$ sf env list
For Dev Hubs, sandboxes, and production orgs, specify the alias you set when you logged into the org with "sf
login".
$ sf env list --all
```

-p, --path=path
Each of your environments is associated with an instance URL, such as https://<mydomian>.my.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.
## `sf env open`

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

--browser=browser
Specify a browser by its app name according to your operating system. For example, Chrome’s app name is "google
chrome" on macOS, "google-chrome" on Linux and "chrome" on Windows. So to open an environment in Chrome on macOS,
specify --browser "google chrome". If you don’t specify --browser, the environment opens in your default browser.
```
USAGE
$ sf env open [--json] [-p <value>] [-r] [-e <value>] [--browser <value>]
For convenience, "chrome", "firefox", and "edge" are mapped to the OS specific app name.
FLAGS
-e, --target-env=<value> Environment name or alias to open.
-p, --path=<value> Path to append to the end of the open URL.
-r, --url-only Display the URL, but don’t launch it in a browser.
--browser=<value> Browser in which to open the environment.
--json
format output as json
GLOBAL FLAGS
--json format output as json
DESCRIPTION
Open an environment in your web browser.
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.
EXAMPLES
To open your default environment, run the command without flags:
sf env open
$ 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
$ 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:
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.6/src/commands/env/open.ts)_
$ 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"
FLAG DESCRIPTIONS
-e, --target-env=<value> Environment name or alias to open.
Specify the login user or alias that’s associated with the environment. For scratch orgs, the login user is
generated by the command that created the scratch org. You can also set an alias for the scratch org when you create
it.
For Dev Hubs, sandboxes, and production orgs, specify the alias you set when you logged into the org with "sf
login".
-p, --path=<value> Path to append to the end of the open URL.
Each of your environments is associated with an instance URL, such as https://<mydomian>.my.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.
--browser=<value> Browser in which to open the environment.
Specify a browser by its app name according to your operating system. For example, Chrome’s app name is "google
chrome" on macOS, "google-chrome" on Linux and "chrome" on Windows. So to open an environment in Chrome on macOS,
specify --browser "google chrome". If you don’t specify --browser, the environment opens in your default browser.
For convenience, "chrome", "firefox", and "edge" are mapped to the OS specific app name.
```
<!-- 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.7",
"version": "0.0.8",
"author": "Salesforce",
"bugs": "https://github.com/forcedotcom/cli/issues",
"dependencies": {
Expand Down

0 comments on commit 2cea21e

Please sign in to comment.