plugin-atlas
v0.3.2
Published
A Salesforce CLI plugin to generate documentation from metadata
Downloads
40
Maintainers
Readme
Vision
Atlas is a one-stop shop documentation toolkit for your Salesforce project. It uses all the information stored in your Salesforce metadata files and outputs all that information in a structured, user-readable form, in multiple formats.
How to install
Install Node in your system. In case of doubt, go with the LTS installation.
Install the Salesforce CLI using
npm
:npm install --global @salesforce/cli
Install Atlas as a Salesforce CLI plugin:
sf plugins install plugin-atlas
How to update
Update the Salesforce CLI. It is the same command as installing it from scratch:
npm install --global @salesforce/cli
Update all the Salesforce CLI plugins:
sf plugins update
If the update fails, you can uninstall the plugin with sf plugins uninstall plugin-atlas
and then reinstall it.
Features
Currently supported output format:
- Excel spreadsheet (
xlsx
), with each metadata type (objects, fields, list views, etc) in separate tabs.
Currently supported metadata types:
- Objects
- Fields
- Record types
- Fieldsets
- Layouts
- List views
- Compact layouts
- Tabs
- Quick actions
- Validation rules
- Weblinks
- Flexipages (Lightning pages)
- Apex classes and triggers
- Visualforce pages and components
- Aura components
- Lightning web components
- Flows
- Workflow rules
- Profiles
- Roles
- Permission Sets
- Permission Set Groups
- User Access Policies
Roadmap
Features
- Additional output formats:
- Multiple spreadsheets
- Multiple CSV files
- Markdown websites
- HTML websites
- Enhance existing functionality:
- Increase the number of metadata types included in the output
- Make more information available for existing types
- Quality of life improvements:
- Choose the target file name and location
- Select which metadata types should be included
Maintenance and internal
- Increase test coverage
- Set up an automated release pipeline
- Continue to maintain
Commands
sf atlas generate csv
Generate CSV files from the contents of your local project, with a separate file for each supported metadata type.
USAGE
$ sf atlas generate csv [--json] [-d <value>]
FLAGS
-d, --output-dir=<value> [default: PROJECT_FOLDER/atlas/csv/YYYYMMDD-HHMMSS/] Folder where the CSV files will be
saved.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Generate CSV files from the contents of your local project, with a separate file for each supported metadata type.
You must run this command from within a project.
EXAMPLES
$ sf atlas generate csv
FLAG DESCRIPTIONS
-d, --output-dir=<value> Folder where the CSV files will be saved.
More information about a flag. Don't repeat the summary.
sf atlas generate xlsx
Generate an XLSX spreadsheet from the contents of your local project, with a sheet for each supported metadata type.
USAGE
$ sf atlas generate xlsx [--json] [-f <value>]
FLAGS
-f, --output-file=<value> [default: PROJECT_FOLDER/atlas/xlsx/atlas-YYYYMMDD-HHMMSS.xlsx] Name and path of the XLSX
file to be generated.
GLOBAL FLAGS
--json Format output as json.
DESCRIPTION
Generate an XLSX spreadsheet from the contents of your local project, with a sheet for each supported metadata type.
You must run this command from within a project.
EXAMPLES
$ sf atlas generate xlsx
FLAG DESCRIPTIONS
-f, --output-file=<value> Name and path of the XLSX file to be generated.
More information about a flag. Don't repeat the summary.