Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions docs/org.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,3 @@
=========

Switch organizations.

* [`dvc org`](#dvc-org)

## `dvc org`

Select which organization to access through the API

```
USAGE
$ dvc org [--config-path <value>] [--auth-path <value>] [--repo-config-path <value>] [--client-id
<value>] [--client-secret <value>] [--project <value>] [--no-api] [--headless] [--org <value>]

FLAGS
--org=<value> The `name` of the org to sign in as (not the `display_name`)

GLOBAL FLAGS
--auth-path=<value> Override the default location to look for an auth.yml file
--client-id=<value> Client ID to use for DevCycle API Authorization
--client-secret=<value> Client Secret to use for DevCycle API Authorization
--config-path=<value> Override the default location to look for the user.yml file
--headless Disable all interactive flows and format output for easy parsing.
--no-api Disable API-based enhancements for commands where authorization is optional. Suppresses
warnings about missing credentials.
--project=<value> Project key to use for the DevCycle API requests
--repo-config-path=<value> Override the default location to look for the repo config.yml file

DESCRIPTION
Select which organization to access through the API
```

_See code: [dist/commands/org/index.ts](https://github.com/DevCycleHQ/cli/blob/v4.7.1/dist/commands/org/index.ts)_
28 changes: 28 additions & 0 deletions docs/organizations.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
List the keys of all organizations available to the current user

* [`dvc organizations list`](#dvc-organizations-list)
* [`dvc organizations select`](#dvc-organizations-select)

## `dvc organizations list`

Expand All @@ -28,3 +29,30 @@ GLOBAL FLAGS
DESCRIPTION
List the keys of all organizations available to the current user
```

## `dvc organizations select`

Select which organization to access through the API

```
USAGE
$ dvc organizations select [--config-path <value>] [--auth-path <value>] [--repo-config-path <value>] [--client-id
<value>] [--client-secret <value>] [--project <value>] [--no-api] [--headless] [--org <value>]

FLAGS
--org=<value> The `name` of the org to sign in as (not the `display_name`)

GLOBAL FLAGS
--auth-path=<value> Override the default location to look for an auth.yml file
--client-id=<value> Client ID to use for DevCycle API Authorization
--client-secret=<value> Client Secret to use for DevCycle API Authorization
--config-path=<value> Override the default location to look for the user.yml file
--headless Disable all interactive flows and format output for easy parsing.
--no-api Disable API-based enhancements for commands where authorization is optional. Suppresses
warnings about missing credentials.
--project=<value> Project key to use for the DevCycle API requests
--repo-config-path=<value> Override the default location to look for the repo config.yml file

DESCRIPTION
Select which organization to access through the API
```
24 changes: 12 additions & 12 deletions oclif.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2259,9 +2259,9 @@
},
"args": {}
},
"org": {
"id": "org",
"description": "Select which organization to access through the API",
"organizations:list": {
"id": "organizations:list",
"description": "List the keys of all organizations available to the current user",
"strict": true,
"pluginName": "@devcycle/cli",
"pluginAlias": "@devcycle/cli",
Expand Down Expand Up @@ -2340,19 +2340,13 @@
"cli",
"vs_code_extension"
]
},
"org": {
"name": "org",
"type": "option",
"description": "The `name` of the org to sign in as (not the `display_name`)",
"multiple": false
}
},
"args": {}
},
"organizations:list": {
"id": "organizations:list",
"description": "List the keys of all organizations available to the current user",
"organizations:select": {
"id": "organizations:select",
"description": "Select which organization to access through the API",
"strict": true,
"pluginName": "@devcycle/cli",
"pluginAlias": "@devcycle/cli",
Expand Down Expand Up @@ -2431,6 +2425,12 @@
"cli",
"vs_code_extension"
]
},
"org": {
"name": "org",
"type": "option",
"description": "The `name` of the org to sign in as (not the `display_name`)",
"multiple": false
}
},
"args": {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import AuthCommand from '../authCommand'

export default class SelectOrganization extends AuthCommand {
static description = 'Select which organization to access through the API'
static hidden = false
Expand Down