Command Lines for NetSuite SDF Projects

Below is a list of commonly used NetSuite SuiteCloud Development Framework (SDF) commands that are executed through the SuiteCloud CLI or VS Code extension. These commands help manage, validate, and deploy SDF projects effectively.

Project Management Commands

  • project:create
  • Creates a new SDF project with the required structure.
  • Example: suitecloud project:create --type AccountCustomization
  • project:deploy
  • Deploys the SDF project to a NetSuite account.
  • Example: suitecloud project:deploy --account sandbox
  • project:validate
  • Validates the SDF project to check for errors or issues before deployment.
  • Example: suitecloud project:validate
  • project:adddependencies
  • Analyzes the project and adds missing dependencies automatically.
  • Example: suitecloud project:adddependencies
  • project:upgrade
  • Upgrades the project to the latest SDF version.
  • Example: suitecloud project:upgrade

Object Management Commands

  • object:list
  • Lists the objects in the specified NetSuite account.
  • Example: suitecloud object:list --type script
  • object:import
  • Imports specified objects from a NetSuite account into the SDF project.
  • Example: suitecloud object:import --type customrecord --scriptid customrecord1
  • object:importfiles
  • Imports file cabinet files from NetSuite into the SDF project.
  • Example: suitecloud object:importfiles --paths /SuiteScripts/hello.js
  • object:save
  • Saves an object or file back to the NetSuite account without full deployment.
  • Example: suitecloud object:save --type script

Account Management Commands

  • account:setup
  • Sets up a connection to a NetSuite account.
  • Example: suitecloud account:setup
  • account:manageauth
  • Manages authentication settings for a NetSuite account.
  • Example: suitecloud account:manageauth
  • account:savetoken
  • Saves authentication tokens for future use.
  • Example: suitecloud account:savetoken

SuiteApp Packaging Commands

  • suiteapp:create
  • Creates a SuiteApp project structure.
  • Example: suitecloud suiteapp:create
  • suiteapp:package
  • Packages the SuiteApp for installation.
  • Example: suitecloud suiteapp:package
  • suiteapp:validate
  • Validates a SuiteApp project to ensure it meets publishing requirements.
  • Example: suitecloud suiteapp:validate

Miscellaneous Commands

  • file:upload
  • Uploads files to the NetSuite file cabinet.
  • Example: suitecloud file:upload --paths /SuiteScripts/hello.js
  • file:delete
  • Deletes files from the NetSuite file cabinet.
  • Example: suitecloud file:delete --paths /SuiteScripts/hello.js
  • file:import
  • Imports files from the NetSuite file cabinet into the SDF project.
  • Example: suitecloud file:import --paths /SuiteScripts/hello.js
  • help
  • Displays help and usage information for all commands.
  • Example: suitecloud help

These commands provide flexibility and control, making SDF an essential tool for NetSuite developers.

Leave a comment

Your email address will not be published. Required fields are marked *