@dxos/cli 2.11.5-dev.2d1bcab → 2.11.5-dev.2f699b6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -154,12 +154,12 @@ yarn build
154
154
 
155
155
  During local development there is a need for testing of a newly created / modified commands. For that purpose, any cli command could be called from the repo root via `pnpm run dx`, e.g.:
156
156
 
157
+ > **Note:** Command arguments should be separated from the command via `--` for `pnpm` to pass it to executable.
158
+
157
159
  ```
158
160
  pnpm run dx dxns resource list -- --json
159
161
  ```
160
162
 
161
- > **Note:** Command arguments should be separated from the command via `--` for `pnpm` to pass it to executable.
162
-
163
163
  If the command ought to be called from the specific path (e.g. during app deployent), an alias for the local dx binary coud be created by adding such to the shell profile:
164
164
 
165
165
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/cli",
3
- "version": "2.11.5-dev.2d1bcab",
3
+ "version": "2.11.5-dev.2f699b6",
4
4
  "description": "DXOS CLI",
5
5
  "homepage": "https://github.com/dxos/cli/tree/master/packages/cli#readme",
6
6
  "license": "AGPL-3.0",
@@ -27,7 +27,7 @@
27
27
  "verbose": false
28
28
  },
29
29
  "dependencies": {
30
- "@dxos/cli-core": "2.11.5-dev.2d1bcab",
30
+ "@dxos/cli-core": "2.11.5-dev.2f699b6",
31
31
  "@dxos/debug": "~2.19.9",
32
32
  "@dxos/random-access-multi-storage": "~2.19.2",
33
33
  "assert": "^2.0.0",
@@ -83,5 +83,5 @@
83
83
  "checkOld": "[ -d ~/.wire ] && [ ! -L ~/.dx ] && ln -s ~/.wire ~/.dx || true",
84
84
  "checkNew": "[ ! -d ~/.wire ] && [ ! -d ~/.dx ] && mkdir -p ~/.dx || true"
85
85
  },
86
- "readme": "# DXOS CLI\n\nGeneral information about DXOS CLI can be found [here](../../README.md)\n\n## Usage\n\n### Profiles\n\nTo use the CLI, a profile needs to be created and activated.\n\nThe CLI supports creating multiple profiles with different configurations from downloadable templates, and switching between them.\n\nTo create a profile from a template, pass a profile name and template URL.\n\nExample:\n\n```bash\n$ dx profile init --name enterprise --template-url https://git.io/JDeiz\n```\n\nProfiles are stored in the `~/.dx/profile` folder. To further customize a profile, edit the profile configuration file.\n\nTo activate/use a profile, do one of the following (highest to lowest precedence):\n\n1. Pass it as an argument to a command (`--profile <NAME>`), e.g. `dx --profile enterprise extension list`\n2. export `DX_PROFILE` in the shell, with the name of the profile, e.g. `export DX_PROFILE=enterprise`\n3. Set it as the default for the system, e.g. `dx profile set enterprise`\n\nNote: The first profile created automatically becomes the system default.\n\nView the name of the active profile:\n\n```bash\n$ dx profile\n```\n\nView the configuration values for the active profile:\n\n```bash\n$ dx profile config\n```\n\nView the configuration values for a given profile:\n\n```bash\n$ dx profile config <NAME>\n```\n\nView the profile used for a command (using the `--dry-run` flag):\n\n```bash\n$ dx extension list --dry-run\nProfile: /Users/ashwinp/.dx/profile/devnet.yml\n```\n\nMultiple templates can be created and shared with others to use different configuration values. Some [sample templates](./profiles/README.md) are included in the repo.\n\n### Extensions\n\nIn order to install CLI extensions, one could leverage automatic installation mechanism (for DXOS extensions only):\n\n```bash\n$ dx dxns\n```\n\n```bash\n$ dx app\n```\n\nIn order to install arbitrary extension, `dx extension install` command could be used:\n\n```\n$ dx extension install @dxos/cli-ipfs --version dev\n\n✔ Installing @dxos/cli-ipfs@dev\n```\n\nView installed extensions:\n\n```\n$ dx extension list\n\nextension command version description\n-------------- ------- ------------ -----------------------\n@dxos/cli-app app 1.0.1-beta.1 Application management.\n@dxos/cli-bot bot 1.0.1-beta.1 Bot operations.\n@dxos/cli-ipfs ipfs 1.0.1-beta.2 IPFS operations.\n```\n\nUninstall extension:\n\n```\n$ dx extension uninstall @dxos/cli-ipfs\n\nFound Extension @dxos/cli-ipfs@1.0.1-beta.2 installed, do you wish to remove it? (Yes/No): y\n✔ Uninstalling @dxos/cli-ipfs\n```\n\n#### Available Extensions\n\n| Extension |\n| :------------ |\n| [App CLI](../cli-app/README.md) |\n| [Bot CLI](../cli-bot/README.md) |\n| [Chat CLI](../cli-chat/README.md) |\n| [Console CLI](../cli-console/README.md) |\n| [Data CLI](../cli-data/README.md) |\n| [DXNS CLI](../cli-dxns/README.md) |\n| [ECHO CLI](../cli-echo/README.md) |\n| [HALO CLI](../cli-halo/README.md) |\n| [IPFS CLI](../cli-ipfs/README.md) |\n| [KUBE CLI](../cli-kube/README.md) |\n| [MDNS CLI](../cli-mdns/README.md) |\n| [Mesh CLI](../cli-mesh/README.md) |\n| [Pad CLI](../cli-pad/README.md) |\n| [Signal CLI](../cli-signal/README.md) |\n\n#### Developing CLI extensions\n\nIn order to create a new CLI extension, existing CLI extension could be used as a boilerplate. While developing a new extension out of CLI Monorepo, make sure you add `@dxos/cli` as devDependency (and `@dxos/cli-data` as well if you are planning on using DXOS SDK Client).\n\n### Certification\n\nIn order for CLI to support custom certificate authorities, one would need to import root CA certificate using `dx cert import` command. For the case of XBOX, import command would look like:\n\n```bash\n$ dx cert import --url https://kube.local/kube.pem\n```\n\n<!--TODO(egor): Host cert on .well-known endpoint?-->\n\nCorresponding certificate would be downloaded to `~/.dx/certs` and considered by CLI as \"trusted\".\n\n## Development\n\n### Dependencies\n\n- [yarn](https://yarnpkg.com/)\n- [jq](https://stedolan.github.io/jq/)\n\n### Setup\n\n```bash\n# CLI is a yarn monorepo\n\n# Install dependencies\nyarn\n\n# Build all packages\nyarn build\n```\n\n### Running commands locally\n\nDuring local development there is a need for testing of a newly created / modified commands. For that purpose, any cli command could be called from the repo root via `pnpm run dx`, e.g.:\n\n```\npnpm run dx dxns resource list -- --json\n```\n\n> **Note:** Command arguments should be separated from the command via `--` for `pnpm` to pass it to executable.\n\nIf the command ought to be called from the specific path (e.g. during app deployent), an alias for the local dx binary coud be created by adding such to the shell profile:\n\n```\nalias dx-local='node ~/path/to/cli/packages/cli/bin/dx.js'\n```\n\nThen, all commands could be called via `dx-local` in any directory, like:\n\n```\ndx-local dxns resource list --json\n```\n\n### Environment Variables\n\nWhile the usage of ENV variables is minimized, in some edge cases CLI still uses ENV variables for configuration. Those variables are mapped to the canonical structure: [ENV mapping](../cli-core/src/env-map.json)\n\nENV variables are also used to pass configuration between CLI and spawned processes, but this happens transparently for CLI user.\n\n## Troubleshooting\n\nMost of the weirdness in CLI behaviour could be caused by any combination of previously installed CLIs and extensions, especially from the beta channel;\n\nCheck latest available version:\n\n```bash\n$ yarn info @dxos/cli versions --json | jq '.data[-1]'\n```\n\nCheck installed version:\n\n```bash\n$ dx version\n```\n\nIf those outputs are different, make sure to remove old versions of `wire`.\nRemove old CLI and extensions, installed globally.\n\nFor that purpose `dx uninstall` and `dx upgrade` commands are available.\n\nTo remove CLI and all extensions:\n\n```\n$ dx uninstall --npm-client yarn\n```\n\nTo force upgrade CLI and all installed extensions to the latest:\n\n```\n$ dx upgrade --npm-client yarn --force\n```\n\n`--version` attribute could be supplied in order to upgrade/downgrade to a specific version.\n"
86
+ "readme": "# DXOS CLI\n\nGeneral information about DXOS CLI can be found [here](../../README.md)\n\n## Usage\n\n### Profiles\n\nTo use the CLI, a profile needs to be created and activated.\n\nThe CLI supports creating multiple profiles with different configurations from downloadable templates, and switching between them.\n\nTo create a profile from a template, pass a profile name and template URL.\n\nExample:\n\n```bash\n$ dx profile init --name enterprise --template-url https://git.io/JDeiz\n```\n\nProfiles are stored in the `~/.dx/profile` folder. To further customize a profile, edit the profile configuration file.\n\nTo activate/use a profile, do one of the following (highest to lowest precedence):\n\n1. Pass it as an argument to a command (`--profile <NAME>`), e.g. `dx --profile enterprise extension list`\n2. export `DX_PROFILE` in the shell, with the name of the profile, e.g. `export DX_PROFILE=enterprise`\n3. Set it as the default for the system, e.g. `dx profile set enterprise`\n\nNote: The first profile created automatically becomes the system default.\n\nView the name of the active profile:\n\n```bash\n$ dx profile\n```\n\nView the configuration values for the active profile:\n\n```bash\n$ dx profile config\n```\n\nView the configuration values for a given profile:\n\n```bash\n$ dx profile config <NAME>\n```\n\nView the profile used for a command (using the `--dry-run` flag):\n\n```bash\n$ dx extension list --dry-run\nProfile: /Users/ashwinp/.dx/profile/devnet.yml\n```\n\nMultiple templates can be created and shared with others to use different configuration values. Some [sample templates](./profiles/README.md) are included in the repo.\n\n### Extensions\n\nIn order to install CLI extensions, one could leverage automatic installation mechanism (for DXOS extensions only):\n\n```bash\n$ dx dxns\n```\n\n```bash\n$ dx app\n```\n\nIn order to install arbitrary extension, `dx extension install` command could be used:\n\n```\n$ dx extension install @dxos/cli-ipfs --version dev\n\n✔ Installing @dxos/cli-ipfs@dev\n```\n\nView installed extensions:\n\n```\n$ dx extension list\n\nextension command version description\n-------------- ------- ------------ -----------------------\n@dxos/cli-app app 1.0.1-beta.1 Application management.\n@dxos/cli-bot bot 1.0.1-beta.1 Bot operations.\n@dxos/cli-ipfs ipfs 1.0.1-beta.2 IPFS operations.\n```\n\nUninstall extension:\n\n```\n$ dx extension uninstall @dxos/cli-ipfs\n\nFound Extension @dxos/cli-ipfs@1.0.1-beta.2 installed, do you wish to remove it? (Yes/No): y\n✔ Uninstalling @dxos/cli-ipfs\n```\n\n#### Available Extensions\n\n| Extension |\n| :------------ |\n| [App CLI](../cli-app/README.md) |\n| [Bot CLI](../cli-bot/README.md) |\n| [Chat CLI](../cli-chat/README.md) |\n| [Console CLI](../cli-console/README.md) |\n| [Data CLI](../cli-data/README.md) |\n| [DXNS CLI](../cli-dxns/README.md) |\n| [ECHO CLI](../cli-echo/README.md) |\n| [HALO CLI](../cli-halo/README.md) |\n| [IPFS CLI](../cli-ipfs/README.md) |\n| [KUBE CLI](../cli-kube/README.md) |\n| [MDNS CLI](../cli-mdns/README.md) |\n| [Mesh CLI](../cli-mesh/README.md) |\n| [Pad CLI](../cli-pad/README.md) |\n| [Signal CLI](../cli-signal/README.md) |\n\n#### Developing CLI extensions\n\nIn order to create a new CLI extension, existing CLI extension could be used as a boilerplate. While developing a new extension out of CLI Monorepo, make sure you add `@dxos/cli` as devDependency (and `@dxos/cli-data` as well if you are planning on using DXOS SDK Client).\n\n### Certification\n\nIn order for CLI to support custom certificate authorities, one would need to import root CA certificate using `dx cert import` command. For the case of XBOX, import command would look like:\n\n```bash\n$ dx cert import --url https://kube.local/kube.pem\n```\n\n<!--TODO(egor): Host cert on .well-known endpoint?-->\n\nCorresponding certificate would be downloaded to `~/.dx/certs` and considered by CLI as \"trusted\".\n\n## Development\n\n### Dependencies\n\n- [yarn](https://yarnpkg.com/)\n- [jq](https://stedolan.github.io/jq/)\n\n### Setup\n\n```bash\n# CLI is a yarn monorepo\n\n# Install dependencies\nyarn\n\n# Build all packages\nyarn build\n```\n\n### Running commands locally\n\nDuring local development there is a need for testing of a newly created / modified commands. For that purpose, any cli command could be called from the repo root via `pnpm run dx`, e.g.:\n\n> **Note:** Command arguments should be separated from the command via `--` for `pnpm` to pass it to executable.\n\n```\npnpm run dx dxns resource list -- --json\n```\n\nIf the command ought to be called from the specific path (e.g. during app deployent), an alias for the local dx binary coud be created by adding such to the shell profile:\n\n```\nalias dx-local='node ~/path/to/cli/packages/cli/bin/dx.js'\n```\n\nThen, all commands could be called via `dx-local` in any directory, like:\n\n```\ndx-local dxns resource list --json\n```\n\n### Environment Variables\n\nWhile the usage of ENV variables is minimized, in some edge cases CLI still uses ENV variables for configuration. Those variables are mapped to the canonical structure: [ENV mapping](../cli-core/src/env-map.json)\n\nENV variables are also used to pass configuration between CLI and spawned processes, but this happens transparently for CLI user.\n\n## Troubleshooting\n\nMost of the weirdness in CLI behaviour could be caused by any combination of previously installed CLIs and extensions, especially from the beta channel;\n\nCheck latest available version:\n\n```bash\n$ yarn info @dxos/cli versions --json | jq '.data[-1]'\n```\n\nCheck installed version:\n\n```bash\n$ dx version\n```\n\nIf those outputs are different, make sure to remove old versions of `wire`.\nRemove old CLI and extensions, installed globally.\n\nFor that purpose `dx uninstall` and `dx upgrade` commands are available.\n\nTo remove CLI and all extensions:\n\n```\n$ dx uninstall --npm-client yarn\n```\n\nTo force upgrade CLI and all installed extensions to the latest:\n\n```\n$ dx upgrade --npm-client yarn --force\n```\n\n`--version` attribute could be supplied in order to upgrade/downgrade to a specific version.\n"
87
87
  }