Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A Zsh completion file for the Salesforce CLI (and script for updating it)

License

NotificationsYou must be signed in to change notification settings

wadewegner/salesforce-cli-zsh-completion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Want auto-completion in your shell? Of course you do! You get it with this Zsh completion for the Salesforce CLI.

sfdx-cli-automation

You also command argument completion.

sfdx-cli-automation

This repo contains both the Zsh command completion for the Salesforce CLI and a script for generating it.

Dependencies

You only needjq if you plan to run the script to generate the completion file. If not, you only need the CLI. (Butjq is pretty awesome, so you probably want it anyway.)

Usage

Follow the following steps to use these Salesforce CLI completions in the Zsh.

First, clone the repo locally.

git clone git@github.com:wadewegner/salesforce-cli-zsh-completion.git

Update your.zshrc to include the following:

# add custom completion scriptsfpath=({YOURPATH}/salesforce-cli-zsh-completion $fpath)# compsys initializationautoload -U compinitcompinit

Close and open your terminal.

Update the Zsh completion file

If you want to update the_sfdx completion file, run the following script:

./generate.sh

This will create a new_sfdx file.

Run the following command to reload the completion.

unfunction _sfdx && autoload -U _sfdx

Enjoy!

Oh My Zsh

Users ofOh My Zsh can import this auto-completion as a plugin. To install it, just clone this repository into the custom plugins folder.

git clone git@github.com:wadewegner/salesforce-cli-zsh-completion.git ~/.oh-my-zsh/custom/plugins/salesforce-cli-zsh-completion

Enable it by editing~/.zshrc. Addsalesforce-cli-zsh-completion to the list of extra plugins, like this:

# ~/.zshrcplugins=(salesforce-cli-zsh-completion)

Reload your shell and enjoy.

About

A Zsh completion file for the Salesforce CLI (and script for updating it)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors3

  •  
  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp