question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sfdx force --version not working

See original GitHub issue

Summary

sfdx force --version is documented in the SalesforceDX Developer’s Guide as the mechanism to get CLI Version Information.

Steps To Reproduce:

  1. Install the latest CLI and force plugin.
  2. Execute sfdx force --version

Expected result

Information about the Salesforce API version used by the CLI should be displayed.

Actual result

ERROR running force: Unexpected argument: --version See more help with --help

Additional information

SFDX CLI Version(to find the version of the CLI engine run sfdx --version): sfdx-cli/7.5.0-e6ca93eee8 darwin-x64 node-v10.15.3

SFDX plugin Version(to find the version of the CLI plugin run sfdx plugins --core) @oclif/plugin-commands 1.2.2 (core) @oclif/plugin-help 2.1.6 (core) @oclif/plugin-not-found 1.2.2 (core) @oclif/plugin-plugins 1.7.8 (core) @oclif/plugin-update 1.3.9 (core) @oclif/plugin-warn-if-update-available 1.7.0 (core) @oclif/plugin-which 1.0.3 (core) @salesforce/sfdx-trust 3.0.2 (core) analytics 1.1.2 (core) generator 1.1.0 (core) salesforcedx 45.12.0 (core) ├─ force-language-services 45.10.0 (core) └─ salesforce-alm 45.15.0 (core)

sfdx-cli 7.5.0 (core)

OS and version: MacOS Mojave 10.14.4

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
VivekMChawlacommented, May 29, 2019

@clairebianchi it’s a bit of a hassle to evangelists and instructors that this command was removed.

Telling someone to type sfdx force --version to see if they got the big “DX Cloud” in their terminal was one of the best ways to make sure that someone had properly installed the CLI on their local machine.

Even worse (for me) is that I’ve used this in workbooks and videos about how to use SFDX. I’ve also seen it in DF and TDX videos (including the AppX Keynote demo I did at DF’17). Now those references (and instructions in workbooks) make no sense.

It would be great if we could get that command back. It’s a nice bit of candy to have in the CLI.

If we can’t get it back, is there another way to get the “DX Cloud” now?

0reactions
SalesforceLynxcommented, Jan 29, 2020

As per my last encounter of it today. It is working but without --verion or -v.

Although in the documentation it still says that sfdx force --version. But you’ll get the ASCII cloud with just sfdx force. It would be nice @clairebianchi if we update the documentation too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Running sfdx force:org:package commands
This is an issue reported on the GitHub repo for SFDX. The current solution is to install/downgrade to version 7.120.
Read more >
sfdx force:package:version:create -c fails with access issues
when creating a (managed) package version, the create fails with field access issues - DescribeFieldResult.isAccessible().
Read more >
New SFDX push/pull commands have changed in a breaking ...
New SFDX push/pull commands have changed in a breaking manner (issues after updating CLI) · Upgrade Salesforce CLI to most recent GA version...
Read more >
Package Errors - SFDX Unlocked Packages Guide - GitBook
When working with package commands, it's not unlikely to run into errors and issues. · The package ID or Alias ID is invalid...
Read more >
SOLVED! sfdx force:package:version:create -p error
Problem : running force:package:version:create -p to create an unlocked package for an app that has a dependency on a managed package results ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found